The Accidental Rubyist

invalid byte sequence in UTF-8

class Table : rough release

leave a comment »

A 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 worked on. Currently, editing is not provided, but coming in future release.

The demo (1.3 mb) shows columns being widened and narrowed, column deletion, etc.
The first screenshot shows 2 selected rows, and one focussed row.

Ruby Curses Table with row selection

Ruby Curses Table with row selection

The second screenshot is after moving a row, and narrowing the first row. Demo link.

Row moving and resizing

Row moving and resizing

Advertisements

Written by totalrecall

January 6, 2009 at 1:17 am

Posted in rbcurse, ruby

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: