abstract class Tablo::Cell
- Tablo::Cell
- Reference
- Object
Overview
Cell is an abstract class representing a single cell inside a Table. Derived concrete cells are : TextCell and DataCell
Included Modules
Direct Known Subclasses
Defined in:
cell.crInstance Method Summary
- #alignment
- #apply_formatter
- #apply_styler(content : String, line_index : Int32)
-
#formatted_content
Returns the formatted value of the Cell, after applying the formatter for this Column (but without applying any wrapping or the styler).
- #formatter
-
#left_padding
Common attributes of TextCell and DataCell
-
#line_count
returns the number of subcells in a cell ie, the number of lines a cell contains
-
#memoized_formatted_content : String | Nil
Instance variables used for memoization, dynamically initialized later
-
#memoized_formatted_content=(memoized_formatted_content : String | Nil)
Instance variables used for memoization, dynamically initialized later
- #memoized_rendered_subcells : Array(String) | Nil
- #memoized_rendered_subcells=(memoized_rendered_subcells : Array(String) | Nil)
-
#padded_truncated_subcells(line_count_max)
returns an array of formatted and styled subcells, ready to print, adding a truncator characted at the end of the last line, replacing the first character of right padding, if line count is > than iheader_wrap or body_wrap.
-
#padding_character
Common attributes of TextCell and DataCell
- #real_alignment
-
#right_padding
Common attributes of TextCell and DataCell
- #styler
- #truncation_indicator
-
#value
Common attributes of TextCell and DataCell
- #width
- #width=(width)
- #wrap_mode
Instance Method Detail
Returns the formatted value of the Cell, after applying the formatter for this Column (but without applying any wrapping or the styler).
returns the number of subcells in a cell ie, the number of lines a cell contains
This method is the entry point for all cell computations (formatting, aligning and styling !)
Instance variables used for memoization, dynamically initialized later
Instance variables used for memoization, dynamically initialized later
returns an array of formatted and styled subcells, ready to print, adding a truncator characted at the end of the last line, replacing the first character of right padding, if line count is > than iheader_wrap or body_wrap.
called from table.format_row