2011年9月21日 星期三

The usage of Table/TableLayout

TableLayout.register(Actor):
Save to HashMap nameToWidget.

Actor: UI component (widgets), such as Swing JTextField / Android Button.

Window extend Table and contains a TableLayout.

Window.add:
Save to HashMap widgetToCell.

What's the difference?

TableLayout.parse(FileHandle):
Parse a table info and adds the widgets and cells to the table from file.