|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase com.sun.rave.web.ui.component.TableColumnBase com.sun.rave.web.ui.component.TableColumn
Component that represents a table column.
The tableColumn component provides a layout mechanism for displaying columns of data. UI guidelines describe specific behavior that can applied to the rows and columns of data such as sorting, filtering, pagination, selection, and custom user actions. In addition, UI guidelines also define sections of the table that can be used for titles, row group headers, and placement of pre-defined and user defined actions.
Note: Column headers and footers are rendered by TableRowGroupRenderer. Table column footers are rendered by TableRenderer.
Note: To see the messages logged by this class, set the following global defaults in your JDK's "jre/lib/logging.properties" file.
java.util.logging.ConsoleHandler.level = FINE com.sun.rave.web.ui.component.TableColumn.level = FINE
See TLD docs for more information.
Field Summary | |
static java.lang.String |
COLUMN_FOOTER_FACET
The facet name for the column footer. |
static java.lang.String |
COLUMN_FOOTER_ID
The component id for the column footer. |
static java.lang.String |
COLUMN_HEADER_FACET
The facet name for the column header. |
static java.lang.String |
COLUMN_HEADER_ID
The component id for the column header. |
static java.lang.String |
EMBEDDED_ACTION_SEPARATOR_ICON_FACET
The facet name for the embedded action separator icon. |
static java.lang.String |
EMBEDDED_ACTION_SEPARATOR_ICON_ID
The component id for the embedded action separator icon. |
static java.lang.String |
EMPTY_CELL_ICON_FACET
The facet name for the empty cell icon. |
static java.lang.String |
EMPTY_CELL_ICON_ID
The component id for the empty cell icon. |
static java.lang.String |
FOOTER_FACET
The facet name for the footer area. |
static java.lang.String |
HEADER_FACET
The facet name for the header area. |
static java.lang.String |
TABLE_COLUMN_FOOTER_FACET
The facet name for the table column footer. |
static java.lang.String |
TABLE_COLUMN_FOOTER_ID
The component id for the table column footer. |
static java.lang.String |
TABLE_FOOTER_FACET
The facet name for the table footer area. |
Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
Constructor Summary | |
TableColumn()
Default constructor |
Method Summary | |
java.lang.String |
getAlign()
Get the horizontal alignment for the cell. |
int |
getColumnCount()
Get the number of columns found for this component that have a rendered property of true. |
javax.faces.component.UIComponent |
getColumnFooter()
Get column footer. |
javax.faces.component.UIComponent |
getColumnHeader()
Get column header. |
javax.faces.component.UIComponent |
getEmbeddedActionSeparatorIcon()
Get separator icon for embedded actions. |
javax.faces.component.UIComponent |
getEmptyCellIcon()
Get the icon used to display inapplicable or unexpectedly empty cells. |
com.sun.data.provider.SortCriteria |
getSortCriteria()
Get SortCriteria used for sorting the contents of a TableDataProvider. |
java.lang.String |
getSortToolTipAugment(boolean descending)
Get sort tool tip augment based on the value given to the align property of the tableColumn component. |
Table |
getTableAncestor()
Get the closest Table ancestor that encloses this component. |
TableColumn |
getTableColumnAncestor()
Get the closest TableColumn ancestor that encloses this component. |
java.util.Iterator |
getTableColumnChildren()
Get an Iterator over the TableColumn children found for this component. |
javax.faces.component.UIComponent |
getTableColumnFooter()
Get table column footer. |
TableRowGroup |
getTableRowGroupAncestor()
Get the closest TableRowGroup ancestor that encloses this component. |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COLUMN_FOOTER_ID
public static final java.lang.String COLUMN_FOOTER_FACET
public static final java.lang.String COLUMN_HEADER_ID
public static final java.lang.String COLUMN_HEADER_FACET
public static final java.lang.String HEADER_FACET
public static final java.lang.String EMBEDDED_ACTION_SEPARATOR_ICON_ID
public static final java.lang.String EMBEDDED_ACTION_SEPARATOR_ICON_FACET
public static final java.lang.String EMPTY_CELL_ICON_ID
public static final java.lang.String EMPTY_CELL_ICON_FACET
public static final java.lang.String FOOTER_FACET
public static final java.lang.String TABLE_COLUMN_FOOTER_ID
public static final java.lang.String TABLE_COLUMN_FOOTER_FACET
public static final java.lang.String TABLE_FOOTER_FACET
Constructor Detail |
public TableColumn()
Method Detail |
public Table getTableAncestor()
public TableColumn getTableColumnAncestor()
public java.util.Iterator getTableColumnChildren()
public int getColumnCount()
public TableRowGroup getTableRowGroupAncestor()
public javax.faces.component.UIComponent getColumnFooter()
public javax.faces.component.UIComponent getColumnHeader()
public javax.faces.component.UIComponent getTableColumnFooter()
public java.lang.String getAlign()
Note: If the align property is specified, it is returned as is. However, if the alignKey property is provided, alignment is based on the object type of the data element. For example, Date and Number objects are aligned using "right", Character and String objects are aligned using "left", and Boolean objects are aligned using "center". Note that select columns are aligned using "center" by default.
getAlign
in class TableColumnBase
public javax.faces.component.UIComponent getEmptyCellIcon()
Note: UI guidelines suggest not to use this for a value that is truly null, such as an empty alarm cell or a comment field which is blank, neither of which should have the dash image. Further, it is recomended not to use the dash image for cells that contain user interface elements such as checkboxes or drop-down lists when these elements are not applicable. Instead, simply do not display the user interface element.
public javax.faces.component.UIComponent getEmbeddedActionSeparatorIcon()
public com.sun.data.provider.SortCriteria getSortCriteria()
Note: If the sortKey attribute resolves to a SortCriteria object, it is returned as is. However, if there is a value binding, and it's not null, a ValueBindingSortCriteria object is created. If there is no value binding, a FieldIdSortCriteria object is created.
public java.lang.String getSortToolTipAugment(boolean descending)
descending
- Flag indicating descending sort.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |