Class marimba.gui.TableContent
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.TableContent
java.lang.Object
|
+----marimba.gui.Widget
|
+----marimba.gui.ContainerWidget
|
+----marimba.gui.GroupWidget
|
+----marimba.gui.TableContent
- public class TableContent
- extends GroupWidget
Displays the content of a TableWidget.
- Version:
- 1.30, 01/18/97
- Author:
- Klaas Waslander
-
rowsHeight
- The height of all the rows together.
-
TableContent()
-
-
findCell(Event)
- Find the coordinates of the cell in which the event took place.
-
findColumn(Event)
- Find the display index of the column in which
the event took place.
-
findRow(Event)
- Find the display index of the row in which
the event took place.
-
getChildProperties(PropertyList)
- This method gets the properties for the children of this widget.
-
getRowsHeight()
- Get the height of all the rows together.
-
handleEvent(Event)
- Handle events for selections.
-
layout()
- Layout the content and add widgets in the data to the content.
-
paint(Graphics)
- Paint the items in the content which are not widgets.
-
paintColumnLines(Graphics)
- Paint lines at the right of every column if table wants that.
-
tableFontAscent()
- Get the ascent of the table font.
-
tableFontHeight()
- Get the height of the table font.
rowsHeight
protected int rowsHeight
- The height of all the rows together.
Calculated by the layout method.
- See Also:
- getRowsHeight
TableContent
public TableContent()
getChildProperties
public void getChildProperties(PropertyList list)
- This method gets the properties for the children of this widget.
Since all data is persistified in the TableRows, nothing has to
be persistified here.
- Overrides:
- getChildProperties in class ContainerWidget
getRowsHeight
public int getRowsHeight()
- Get the height of all the rows together.
- See Also:
- rowsHeight
tableFontHeight
protected int tableFontHeight()
- Get the height of the table font.
tableFontAscent
protected int tableFontAscent()
- Get the ascent of the table font.
layout
public synchronized void layout()
- Layout the content and add widgets in the data to the content.
Calling this method is always necessary to let widgets show up
in the content.
Since layout() is adding and removing widgets during its
execution it has been made synchronized so that it is impossible
that at the same time another thread is doing the same thing.
- Overrides:
- layout in class ContainerWidget
paintColumnLines
protected void paintColumnLines(Graphics g)
- Paint lines at the right of every column if table wants that.
paint
public void paint(Graphics g)
- Paint the items in the content which are not widgets.
It will not do anything when there are only widgets in the content.
- Overrides:
- paint in class Widget
findColumn
protected int findColumn(Event evt)
- Find the display index of the column in which
the event took place.
Returns -1 if no column is found.
findRow
protected int findRow(Event evt)
- Find the display index of the row in which
the event took place.
Returns -1 if no row is found.
findCell
protected int[] findCell(Event evt)
- Find the coordinates of the cell in which the event took place.
Returns null if no cell is found.
handleEvent
public boolean handleEvent(Event evt)
- Handle events for selections.
- Overrides:
- handleEvent in class Widget
All Packages Class Hierarchy This Package Previous Next Index