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

Constructor Index

 o ObjectTable(String)

Method Index

 o action(int, int)
takes action when a cell is clicked.
 o addColumn(ObjectArray, String)
add a column; checks that it is homogeneous, non-zero length and the same size as any exisiting columns
 o addObjectArray(Panel, ObjectArray, String)
 o createSheet()
 o display(File)

Constructors

 o ObjectTable
  public ObjectTable(String title)

Methods

 o 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
 o createSheet
  public void createSheet()
 o addObjectArray
  public void addObjectArray(Panel panel,
                             ObjectArray oa,
                             String title)
 o 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;
 o display
  public void display(File file)

All Packages  Class Hierarchy  This Package  Previous  Next  Index