Tom Molesworth > Tickit-Widget-Table > Tickit::Widget::Table::Highlight

Download:
Tickit-Widget-Table-0.101.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.101   Source  

NAME ^

VERSION ^

version 0.101 Tickit::Widget::Table::Highlight - highlight functionality for cells, rows and columns in a table

DESCRIPTION ^

This is a mixin which allows various classes under Tickit::Widget::Table to provide a common interface for highlighting.

METHODS ^

highlighted

Get or set highlight status for this item.

Only one item can be highlighted at a time.

is_highlighted

Returns true if this item is highlighted.

is_selected

Returns true if this item is selected.

action

Get or set the action for this item. An "action" is a coderef called when the item is activated, typically by clicking or hitting enter when the item is highlighted and the table is in the appropriate highlight_mode.

activate

Call this to trigger the appropriate activation logic.

Returns $self.

can_highlight

Returns true if this instance has the ability to be highlighted.

Will be false for 'hidden' columns/rows/cells, in which case we'd expect the highlighting logic to skip right over them as if they never existed.

AUTHOR ^

Tom Molesworth <cpan@entitymodel.com>

LICENSE ^

Copyright Tom Molesworth 2011. Licensed under the same terms as Perl itself.

syntax highlighting: