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

Variable Index

 o rowsHeight
The height of all the rows together.

Constructor Index

 o TableContent()

Method Index

 o findCell(Event)
Find the coordinates of the cell in which the event took place.
 o findColumn(Event)
Find the display index of the column in which the event took place.
 o findRow(Event)
Find the display index of the row in which the event took place.
 o getChildProperties(PropertyList)
This method gets the properties for the children of this widget.
 o getRowsHeight()
Get the height of all the rows together.
 o handleEvent(Event)
Handle events for selections.
 o layout()
Layout the content and add widgets in the data to the content.
 o paint(Graphics)
Paint the items in the content which are not widgets.
 o paintColumnLines(Graphics)
Paint lines at the right of every column if table wants that.
 o tableFontAscent()
Get the ascent of the table font.
 o tableFontHeight()
Get the height of the table font.

Variables

 o rowsHeight
  protected int rowsHeight
The height of all the rows together. Calculated by the layout method.
See Also:
getRowsHeight

Constructors

 o TableContent
  public TableContent()

Methods

 o 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
 o getRowsHeight
  public int getRowsHeight()
Get the height of all the rows together.
See Also:
rowsHeight
 o tableFontHeight
  protected int tableFontHeight()
Get the height of the table font.
 o tableFontAscent
  protected int tableFontAscent()
Get the ascent of the table font.
 o 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
 o paintColumnLines
  protected void paintColumnLines(Graphics g)
Paint lines at the right of every column if table wants that.
 o 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
 o 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.
 o 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.
 o 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.
 o handleEvent
  public boolean handleEvent(Event evt)
Handle events for selections.
Overrides:
handleEvent in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index