Bean Builder

com.adventnet.beans.table
Class BaseTable

com.adventnet.beans.table.BaseTable
Direct Known Subclasses:
PropertyTable

public class BaseTable

BaseTable is the base class for property and event table and it extends Sorttable.

Since:
1.0
Version:
1.0
Author:
meerav
See Also:
SortTable

Field Summary
protected  java.lang.String[] colMapNames
           
protected  java.lang.String[] colNames
          variable colNames holds the array of column header names.
protected  SortTableModel tblModel
           
 
Constructor Summary
BaseTable()
          Creates a new BaseTable instance.
 
Method Summary
 void addObjectAtRow(java.lang.Object[] obj, java.util.Properties prop)
          addObjectAtRow method adds objectarray as row to the table.
 java.lang.String[] getColumnNames()
          getColumnNames method gets the column headers specified.
 boolean getExtraProperty()
          getExtraProperty method returns true if extra property is to be set,else returns false.
 void setColumnNames(java.lang.String[] colAndMapNamesArg)
           
 void setExtraProperty(boolean b)
          setExtraProperty method sets the extra property by calling the set last column method.
 void tableMousePressedEvent(java.awt.event.MouseEvent me)
          tableMousePressedEvent method shows the extra frame of properties if invoked.
 

Field Detail

tblModel

protected SortTableModel tblModel

colNames

protected java.lang.String[] colNames
variable colNames holds the array of column header names.

colMapNames

protected java.lang.String[] colMapNames
Constructor Detail

BaseTable

public BaseTable()
Creates a new BaseTable instance.
Method Detail

setColumnNames

public void setColumnNames(java.lang.String[] colAndMapNamesArg)

getColumnNames

public java.lang.String[] getColumnNames()
getColumnNames method gets the column headers specified.
Returns:
a Properties value

addObjectAtRow

public void addObjectAtRow(java.lang.Object[] obj,
                           java.util.Properties prop)
addObjectAtRow method adds objectarray as row to the table. Also it sets the properties at the last column of each row if extra property is true.
Parameters:
obj - an Object[] value
prop - a Properties value

setExtraProperty

public void setExtraProperty(boolean b)
setExtraProperty method sets the extra property by calling the set last column method.
Parameters:
b - a boolean value

getExtraProperty

public boolean getExtraProperty()
getExtraProperty method returns true if extra property is to be set,else returns false.
Returns:
a boolean value

tableMousePressedEvent

public void tableMousePressedEvent(java.awt.event.MouseEvent me)
tableMousePressedEvent method shows the extra frame of properties if invoked.
Parameters:
me - a MouseEvent value

Bean Builder

© 2001 - 2002 AdventNet Inc. Visit us at: http://www.adventnet.com