|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.acuity.ui.PresentationObject
com.ge.research.acuity.ui.IndependentDisplayPO
com.ge.research.acuity.ui.TablePO
An independent display object representing a Table of information
| Constructor Summary | |
TablePO()
Calls the default constructor with argument null. |
|
TablePO(java.lang.String title)
Default constructor. |
|
| Method Summary | |
void |
addColumnInfo(TableColumnInfo column)
Adds a TableColumnInfo object to the list of columns in the table, ordered by the value fo the TableColumnInfo's displayOrder. |
boolean |
alternateRowShading()
Returns the row shading setting. |
TableColumnInfo |
getColumn(int index)
Returns the TableColumnInfo object from the list of contained columns, at the specified index |
java.util.List |
getColumns()
Returns the list of TableColumnInfo objects containing the meta-information for each column within the table |
java.util.List |
getData()
Returns the contents of the table |
java.lang.String |
getTitle()
Returns the label to be used as the title of the table |
boolean |
isInputTable()
Returns the value of the flag indicating whether or not the table is an editable table. |
protected void |
needsSort()
Method used by this class and its TableColumnInfo objects
to set the sorting flag, when there is a change to the data or column sort parameters,
requiring the data to be re-examined for sorting. |
boolean |
processAsSingleEvent()
Returns the value of the flag indicating whether or not the entire set of table data is set to be processed on update, or if each row is sent individually to be processed on update. |
boolean |
processUnmodifiedData()
Returns the value of the flag indicating whether or not only modified row data is processed on update, or the entire table daa is processed on update. |
boolean |
processWithOldValues()
Returns the value of the flag indicating whether or not table updates need the original row data along with the modified row data, when doing an update. |
void |
removeColumn(int index)
Removes the TableColumnInfo, at the specified index, from the list of contained columns |
void |
removeColumn(TableColumnInfo column)
Removes the specified column information from the list of contained columns |
void |
removeColumns()
Removes all TableColumnInfo from the list of columns in this table |
void |
removeData()
Removes the table contents |
void |
setAlternateRowShading(boolean value)
Sets the row shading setting. |
void |
setData(java.util.List data)
Sets the contents of the table. |
void |
setHasPresentationNature(java.lang.String string)
Overrides setHasPresentationNature in PresentationObject. |
void |
setIsInputTable()
Sets the value of the flag indicating whether or not the table is an editable table to true, meaning the table is editable and should be treated as an input table. |
void |
setProcessAsSingleEvent(boolean processAsSingleEvent)
Sets the value of the flag indicating whether or not the entire set of table data is set to be processed on update, or if each row is sent individually to be processed on update. |
void |
setProcessUnmodifiedData(boolean processUnmodifiedData)
Sets the value of the flag indicating whether or not only modified row data is processed on update, or the entire table daa is processed on update. |
void |
setProcessWithOldValues(boolean processWithOldValues)
Sets the value of the flag indicating whether or not table updates need the original row data along with the modified row data, when doing an update. |
void |
setTitle(java.lang.String title)
Sets the title for the table |
void |
sortTheTable()
Sorts the contents of the table based upon the meta information contained within the TableColumnInfo objects, using
the TableSortComparator |
| Methods inherited from class com.ge.research.acuity.ui.IndependentDisplayPO |
canBeRemoved, displayBanner, getHeight, getIdentifierTitle, getWidth, getXPos, getYPos, getZOrder, setCanBeRemoved, setDisplayBanner, setHeight, setIdentifier, setIdentifierTitle, setPos, setPos, setPos, setPos, setWidth, setXPos, setYPos, setZOrder |
| Methods inherited from class com.ge.research.acuity.ui.PresentationObject |
addLookupInfo, getHasPresentationNature, getIdentifier, getLookupInfo, getSubject, hasSubject, isDisplayed, isEditable, setEditability, setIsDisplayed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TablePO()
public TablePO(java.lang.String title)
PresentationNatureConstants.TABLE
Sets the editability of the presentation nature to false
Sets the title of the table
title - the title for the tablePresentationObject.PresentationObject(),
PresentationObject.setHasPresentationNature(java.lang.String),
PresentationObject.setEditability(java.lang.String, boolean),
setTitle(java.lang.String)| Method Detail |
public void addColumnInfo(TableColumnInfo column)
column - the column information to add to the tablepublic boolean alternateRowShading()
true if alternate rows of the table are to be shaded; false otherwise.
public TableColumnInfo getColumn(int index)
throws java.lang.IndexOutOfBoundsException
index - index of the columns list to extract (zero based)
java.lang.IndexOutOfBoundsException - If the index argument is negative or greater than or equal to the number of columns in this tablepublic java.util.List getColumns()
TableColumnInfo objects containing the meta-information for each column within the table
TableColumnInfo objects contained in this tablepublic java.util.List getData()
List, each element of which represents the column value for that row.public java.lang.String getTitle()
public final boolean isInputTable()
true if the table is an editable table; false otherwise.public final boolean processAsSingleEvent()
true if the entire table data is sent once to be processed on update;
false if each row's data is sent individually to be processed on update.public final boolean processUnmodifiedData()
true if all table data is sent to be processed on update;
false if only modified row data is sent to be processed on update.public final boolean processWithOldValues()
true true if the original row values are required along with the modified row values when processing an update;
false if only modified row data is sent to be processed on update.
public void removeColumn(int index)
throws java.lang.IndexOutOfBoundsException
TableColumnInfo, at the specified index, from the list of contained columns
index - index of the column info list to remove (zero based)
java.lang.IndexOutOfBoundsException - If the index argument is negative or greater than or equal to the number of columns contained by this tablepublic void removeColumn(TableColumnInfo column)
column - the column information to remove from the list of columns in the tablepublic void removeColumns()
TableColumnInfo from the list of columns in this table
public void removeData()
public void setAlternateRowShading(boolean value)
value - true if alternate rows of the table are to be shaded; false otherwise.public void setData(java.util.List data)
List, representing the column values for that row.
Also sets an internal flag, indicating that the table data should be inspected for needing to be sorted.
data - a list, each element of which represents a row of data in the table.
Each list element is itself a List, each element of which represents the column value for that row.public void setHasPresentationNature(java.lang.String string)
PresentationNatureConstants.TABLE
setHasPresentationNature in class PresentationObjectstring - IGNORED. The presentation nature is not editable for a TablePOPresentationNatureConstants.isPresentationNature(java.lang.String)public final void setProcessAsSingleEvent(boolean processAsSingleEvent)
com.ge.research.acuity.ui.TablePO#isTableInput().
processAsSingleEvent - true if the entire table data is sent once to be processed on update;
false if each row's data is sent individually to be processed on update.- See Also:
setIsInputTable()public final void setProcessUnmodifiedData(boolean processUnmodifiedData)
com.ge.research.acuity.ui.TablePO#isTableInput().
processUnmodifiedData - true if all table data is sent to be processed on update;
false if only modified row data is sent to be processed on update.- See Also:
setIsInputTable()public final void setProcessWithOldValues(boolean processWithOldValues)
com.ge.research.acuity.ui.TablePO#isTableInput().
processWithOldValues - true if the original row values are required along with the modified row values when processing an update;
false if only modified row data is sent to be processed on update.- See Also:
setIsInputTable()public void setTitle(java.lang.String title)
title - the new label for the table titlepublic void sortTheTable()
TableColumnInfo objects, using
the TableSortComparator
protected final void needsSort()
TableColumnInfo objects
to set the sorting flag, when there is a change to the data or column sort parameters,
requiring the data to be re-examined for sorting.
public final void setIsInputTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||