|
||||||||||
| 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.TableColumnInfo
TableColumnInfo contains information about the display name for the column,
as well as information regarding how this column should be sorted within a TablePO,
and a mapping of this meta information to a column in the TablePO data list, so that
the meta-information is correctly applied to the proper information.
TableColumnInfo are not renderable PresentationObjects. They only provide useful
display information for the TablePO in which they are contained.
| Constructor Summary | |
TableColumnInfo()
The default constructor. |
|
| Method Summary | |
void |
addCellLevelIAO(java.lang.String key,
InteractionObject iao)
Adds a new interaction object to the list of available IAOs for the column values. |
void |
addDecorator(java.lang.String key,
CellDecorator decorator)
Adds a new decorator to the list of available decorators for the column values. |
void |
addHighlightInformation(HighlightRegionColumnInfo hlrci)
Adds highlight region information associated with this column of a table. |
boolean |
copyValueOnRowDuplication()
Returns the value of the cell value copy flag indicating whether or not the cell value within this column should be copied to a dynamically inserted row in the table. |
boolean |
descendingSort()
Returns the value of the sort flag indicating whether or not this column should be sorted in DESCending fashion or not. |
protected void |
finalize()
Makes sure to dereference any parent Table it might be linked to |
InteractionObject |
getCellLevelIAO(java.lang.String key)
Returns the interaction object identifed by the key value |
java.util.Set |
getCellLevelIAOs()
Returns the set of IAOs that apply to this column's values, along with their identifying keys. |
CellDecorator |
getDecorator(java.lang.String key)
Returns the decorator identifed by the key value |
java.util.Set |
getDecorators()
Returns the set of decorators that apply to this column's values, along with their identifying keys. |
int |
getDisplayOrder()
Returns the display order for this column, from left to right, 1-n. |
java.lang.String |
getFormatPattern()
Returns the formatting pattern to apply to column values during the rendering process. |
java.text.Format |
getFormatter(java.lang.Class datatype)
Returns the formatter object to use to format a column value. |
HighlightRegionColumnInfo[] |
getHighlightInformation()
Gets the highlight region information associated with this column of a table. |
java.lang.String |
getHorizontalAlignment()
Returns the horizontal alignment associated with the column, if one exists. |
InteractionObject |
getInteractionObject()
Returns the interaction object associated with the column, if one exists. |
protected TablePO |
getParent()
Returns the reference to the parent table of this column |
int |
getRowsetColumn()
Returns the column index of the TablePO data
to which this meta-information applies. |
int |
getRowSpanGroupingRowsetColumn()
Returns the column identifier of the rowspan flag indicating whether or not sequential rows with duplicate values should be rendered individually or as a spanning cell. |
int |
getSortPriority()
Returns the sort position of this column. |
java.lang.String |
getTitle()
Returns the label to be used as the column heading |
java.lang.String |
getValueName()
Returns the external reference identifier for this column |
java.lang.String |
getVerticalAlignment()
Returns the vertical alignment associated with the column, if one exists. |
void |
removeCellLevelIAO(InteractionObject iao)
Removes the argument IAO from the list of available IAOs for the column. |
void |
removeCellLevelIAO(java.lang.String key)
Removes the IAO identified by the argument key from the list of available IAOs for the column. |
void |
removeCellLevelIAOs()
Removes all IAOs from the column |
void |
removeDecorator(CellDecorator decorator)
Removes the argument decorator from the list of available decorators for the column. |
void |
removeDecorator(java.lang.String key)
Removes the decorator identified by the argument key from the list of available decorators for the column. |
void |
removeDecorators()
Removes all decorators from the column |
protected void |
removeHighlightInformation(HighlightRegionColumnInfo hlrci)
Removes highlight region information associated with this column of a table. |
protected void |
removeParentReference()
Removes the reference to the parent table that this column info object belongs to. |
void |
setCopyValueOnRowDuplication(boolean copyValueOnRowDuplication)
Sets the value of the cell value copy flag indicating whether or not the cell value within this column should be copied to a dynamically inserted row in the table. |
void |
setDescendingSort(boolean descendingSort)
Sets the value of the sort flag indicating whether or not this column should be sorted in DESCending fashion or not. |
void |
setDisplayOrder(int index)
Sets the display order for this column, from left to right, 1-n. |
void |
setFormatPattern(java.lang.String pattern)
Sets the formatting pattern to apply to column values during the rendering process. |
void |
setHasPresentationNature(java.lang.String string)
Overrides setHasPresentationNature in PresentationObject. |
void |
setHorizontalAlignment(java.lang.String horizontalAlignment)
Sets the horizontal alignment for this column |
void |
setInteractionObject(InteractionObject iao)
Sets the interaction object associated with the column. |
void |
setIsDisplayed(boolean b)
Sets the state of the isDisplayed flag. |
protected void |
setParentReference(TablePO parent)
Sets the reference to the parent table that this column info object belongs to. |
void |
setRowsetColumn(int i)
Sets the column index of the TablePO data
to which this meta-information should be applied. |
void |
setRowSpanGroupingRowsetColumn(int rowSpanGroupingRowsetColumn)
Sets the column identifier of the rowspan flag indicating whether or not sequential rows with duplicate values should be rendered individually or as a spanning cell. |
void |
setSortPriority(int sortPriority)
Sets the sort position of this column. |
void |
setTitle(java.lang.String title)
Sets the label to be used as the column heading |
void |
setValueName(java.lang.String string)
Sets the external reference identifier for this column |
void |
setVerticalAlignment(java.lang.String verticalAlignment)
Sets the vertical alignment for this column |
| Methods inherited from class com.ge.research.acuity.ui.PresentationObject |
addLookupInfo, getHasPresentationNature, getIdentifier, getLookupInfo, getSubject, hasSubject, isDisplayed, isEditable, setEditability, setIdentifier |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableColumnInfo()
PresentationNatureConstants.TABLECOL
Sets the editability of the presentation nature to false
PresentationObject.PresentationObject(),
PresentationObject.setHasPresentationNature(java.lang.String),
PresentationObject.setEditability(java.lang.String, boolean)| Method Detail |
public void addCellLevelIAO(java.lang.String key,
InteractionObject iao)
key is the unique identifier for this IAO.
key - the unique identifier for this decoratoriao - the InteractionObject to be applied to cells referencing the key value
public void addDecorator(java.lang.String key,
CellDecorator decorator)
key is the unique identifier for this decorator.
key - the unique identifier for this decoratordecorator - the set of decoration attributes to be applied to cells referencing the key valuepublic void addHighlightInformation(HighlightRegionColumnInfo hlrci)
hlrci - the highlight region information for this column of a tablepublic boolean copyValueOnRowDuplication()
true if the cell value of the column should be copied on insertion;
false if the newly inserted cell should be blank.public boolean descendingSort()
true if this column is marked for sorting in DESCending fashion;
false if this column is marked for sorting in ASCending fashion.public InteractionObject getCellLevelIAO(java.lang.String key)
key value
key - the IAO identifier
public java.util.Set getCellLevelIAOs()
public CellDecorator getDecorator(java.lang.String key)
key value
key - the decorator identifier
public java.util.Set getDecorators()
public int getDisplayOrder()
TablePO the order in which to display its column data.
public java.text.Format getFormatter(java.lang.Class datatype)
datatype - the class representing the type of data to format
null if a formatter could not be created from the supplied informationpublic java.lang.String getFormatPattern()
public HighlightRegionColumnInfo[] getHighlightInformation()
public java.lang.String getHorizontalAlignment()
public final InteractionObject getInteractionObject()
public int getRowsetColumn()
TablePO data
to which this meta-information applies.
public int getRowSpanGroupingRowsetColumn()
public int getSortPriority()
TablePO to be sorted on multiple columns.
Tells the TablePO when to apply table data sorting based upon values of this column.
A sortPriority of 1 means the first column by which to be sorted,
2 is for the second, and so on. Values smaller than 1 are ignored.
public java.lang.String getTitle()
public java.lang.String getValueName()
public java.lang.String getVerticalAlignment()
public void removeCellLevelIAO(java.lang.String key)
key from the list of available IAOs for the column.
key - the IAO identifier to removepublic void removeCellLevelIAO(InteractionObject iao)
iao - the IAO to remove from the available listpublic void removeCellLevelIAOs()
public void removeDecorator(java.lang.String key)
key from the list of available decorators for the column.
key - the decorator identifier to removepublic void removeDecorator(CellDecorator decorator)
decorator - the decorator to remove from the available listpublic void removeDecorators()
public void setCopyValueOnRowDuplication(boolean copyValueOnRowDuplication)
copyValueOnRowDuplication - true if the cell value of the column should be copied on insertion;
false if the newly inserted cell should be blank.public void setDescendingSort(boolean descendingSort)
descendingSort - true if this column should be marked for sorting in DESCending fashion;
false if this column should be marked for sorting in ASCending fashion.public void setDisplayOrder(int index)
TablePO the order in which to display its column data.
index - the order within the list of columns for the TablePO, to display this columnpublic void setFormatPattern(java.lang.String pattern)
pattern - the formatting pattern to apply to column values during the rendering processpublic void setHasPresentationNature(java.lang.String string)
PresentationNatureConstants.TABLECOL
setHasPresentationNature in class PresentationObjectstring - IGNORED. The presentation nature is not editable for a TableColumnInfoPresentationNatureConstants.isPresentationNature(java.lang.String)public void setHorizontalAlignment(java.lang.String horizontalAlignment)
horizontalAlignment - the external reference identifier for this columnpublic final void setInteractionObject(InteractionObject iao)
iao - The interaction object to associate with the columnTablePO.setIsInputTable()public void setIsDisplayed(boolean b)
PresentationObject
setIsDisplayed in class PresentationObjectb - true if this presentation object should be rendered by a client application;
false if this presentation object should not be made visible in a client application.public void setRowsetColumn(int i)
TablePO data
to which this meta-information should be applied.
i - the TablePO data column to which this table column info should be appliedpublic void setRowSpanGroupingRowsetColumn(int rowSpanGroupingRowsetColumn)
rowSpanGroupingRowsetColumn - the column identifier that controls row span grouping for this column.public void setSortPriority(int sortPriority)
TablePO to be sorted on multiple columns.
Tells the TablePO when to apply table data sorting based upon values of this column.
A sortPriority of 1 means the first column by which to be sorted,
2 is for the second, and so on. Values smaller than 1 are ignored.
sortPriority - the ordered sort priority of this columnpublic void setTitle(java.lang.String title)
title - the label for the column headingpublic void setValueName(java.lang.String string)
string - the external reference identifier for this columnpublic void setVerticalAlignment(java.lang.String verticalAlignment)
verticalAlignment - the external reference identifier for this column
protected void finalize()
throws java.lang.Throwable
java.lang.Throwableprotected final TablePO getParent()
protected final void removeHighlightInformation(HighlightRegionColumnInfo hlrci)
protected final void removeParentReference()
protected final void setParentReference(TablePO parent)
parent - the table that this series belongs to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||