Class pmr.simplegraph.ObjectTable
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.simplegraph.ObjectTable
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----pmr.simplegraph.ScrollableTopLevel
|
+----pmr.simplegraph.ObjectTable
- public class ObjectTable
- extends ScrollableTopLevel
a simple table which can manage objects and numbers . Intended to
be developed further
- Author:
- (C) P. Murray-Rust, 1996
-
ObjectTable(String)
-
-
action(int, int)
- takes action when a cell is clicked.
-
addColumn(ObjectArray, String)
- add a column; checks that it is homogeneous, non-zero length and
the same size as any exisiting columns
-
addObjectArray(Panel, ObjectArray, String)
-
-
createSheet()
-
-
display(File)
-
ObjectTable
public ObjectTable(String title)
addColumn
public void addColumn(ObjectArray oa,
String title) throws InvalidArgumentsException, UnequalLengthArraysException
- add a column; checks that it is homogeneous, non-zero length and
the same size as any exisiting columns
- Throws: InvalidArgumentsException
- oa is null; or oa is zero-length; or oa is not homogeneous
- Throws: UnequalLengthArraysException
- oa does match the length of existing columns
createSheet
public void createSheet()
addObjectArray
public void addObjectArray(Panel panel,
ObjectArray oa,
String title)
action
public boolean action(int row,
int col)
- takes action when a cell is clicked. Returns false with no action if
row or column is invalid or object is null. Sets currentObject to contents
of cell;
display
public void display(File file)
All Packages Class Hierarchy This Package Previous Next Index