I decided to start doing a small app to test out the widgets (VIDEO). More real life than the eye-candy I’ve been posting till now. Its a TODO like app which will actually manage my TODO, FIXME, DONE list that I am using for this. The base is a YAML file – not the best [...]
Archive for January, 2009
First real app with Ruby-Curses (rbcurse)
January 18, 2009Editable Multi-column tables
January 13, 2009Quite excited to share that I’ve just got editable tables coded and running. String, numeric, checkboxes (for boolean) and combolists. That sort of covers the minimum requirements of an editable table. Also see earlier post with a non-edit table that allowed column moving, resizing etc.
A quicktime file demos this 2.6 MB). Updated on Jan [...]
Editable lists: Fields, Checkboxes, ComboBoxes
January 11, 2009Thanks to CellRenderers and CellEditors, we may edit existing lists with just this line added:
cell_editing_allowed true
If you want row selectors to be shown:
show_selector true
The selector itself may be changed, the default is a gt sign: “>”
Since the rows are selectable, therefore you can make a [...]
Big internal changes amiss
January 8, 2009Some major changes (internal)
### firing property change
1. In order not to repaint the entire form each time, we must only repaint a widget when modified. However, as can be seen, widgets are being modified by other widgets. Thus whenever a property is changed, we need a flag to be set that repainting [...]
Those alternating rows everyone craves
January 7, 2009Just thought i’d override the TableCellRenderer and set it, and voila, those alternating colored rows some folks want.
testtable.rb contains various column manipulations, as well as a sample of editing table cells using an external field.
class Table : rough release
January 6, 2009A wip release of Table, tabular data based on the MVC architecture. Default models and listeners and created and can be manipulated for specific behaviour. CellRenderers are used for columns and headers which may be set or modified.
Besides selection of rows, and scrolling, column add/delete/move/resizing are supported. Listeners on selection and change are to be [...]
Recent Comments