Tickit::Widget::Table::Column - a column in a Ticket::Widget::Table
version 0.101
See Tickit::Widget::Table.
A column includes a single header cell, and zero or more data cells.
Instantiate a new column.
Takes the following named parameters:
table - the Tickit::Widget::Table which will hold this column
label (optional) - a label to use for the header cell, if appropriate
width (optional) - how wide we'd like to be
align (optional) - type of alignment, should be one of left, right, center|centre
format - any formatting to apply. currently a bit vague.
can_highlight - whether this column is highlightable, if not then any change to highlighting will skip this column.
Returns the new instance.
Returns the appropriate format coderef for the given string.
Currently the format can be one of:
datetime - %Y-%m-%dT%H:%M:%S
date - %Y-%m-%d
time - %H:%M:%S
Returns the format type for this column.
Formats the given value according to the requirements of this column's formatting settings.
Remove the given row from this column.
Attach the given header cell to this column.
Number of lines in this widget - since we draw indirectly via cells, this is left as 1.
Returns the number of (screen) columns we'd like to have.
What sort of width this is. Probably something like left|right|auto
The width for this column. Should probably return a number.
This returns the actual displayed width, i.e. the real number of (screen) columns used. I think.
Returns the current alignment setting.
Returns the current label for this column.
Change the displayed width.
Accessor for the containing Tickit::Widget::Table.
Adds a new Tickit::Widget::Cell to the end of this column.
Does nothing at all yet has a confusingly purposeful name.
Makes a wild guess as to how wide we should be then sets the displayed width accordingly.
Does nothing, for cases where we're attached to something as a real widget.
Our index in the containing Tickit::Widget::Table. Zero-based.
Updates the pen for all contained cells.
Returns $self.
Returns a list of all contained Tickit::Widget::Cell instances.
get_style_pen, get_style_text, get_style_values, key_focus_next_after, key_focus_next_before, on_pen_changed, parent, pen, redraw, reshape, resized, set_parent, set_pen, set_style, set_style_tag, set_window, style_classes, take_focus, window, window_gained, window_lost
action, activate, can_highlight, highlighted, is_highlighted, is_selected
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2011. Licensed under the same terms as Perl itself.
To install Tickit::Widget::Table, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tickit::Widget::Table
CPAN shell
perl -MCPAN -e shell install Tickit::Widget::Table
For more information on module installation, please visit the detailed CPAN module installation guide.