|
||||||||||
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
Use the ui:tableColumn
tag to define the column cells of a table, inside a ui:table
tag. A ui:tableRowGroup
must include at least one ui:tableColumn
tag.
The ui:table
tag is
used to define the structure and actions of the table, and is a
container for ui:tableRowGroup
which define the rows of a table. The ui:tableRowGroup
tag is a container for ui:tableColumn
tags, which are used
to define the
columns of the table.
The documentation
for the
ui:table
tag
contains detailed information
about the table component. This page provides details about how
to define table columns only.
<td>
elements, which are used
to display table data cells. However, the rendering of
column headers and footers is handled by the tableRowGroup component.
The diagram shows the table layout, and
highlights the areas that are defined with the ui:tableColumn
tag. Title Bar | ||||||||||||
Action Bar (top) | ||||||||||||
|
||||||||||||
Action Bar (bottom) | ||||||||||||
Footer
|
headerText
attribute in the ui:tableColumn
tag, the default implementation of the header is rendered. You can
specify a separate component to provide column header content by using
the header
facet, which overrides the headerText
attribute.
You can add extra HTML code to the
header's rendered <td>
element with the extraHeaderHtml
attribute.ui:tableColumn
attributes can be used to
change
the appearance and behavior for sorting of the Column Header:sort
specifies a sort key and makes a column sortable.
sortIcon
specifies a theme identifier to select a different image to use as the
sort icon that is displayed in the header of a sortable column.
sortImageURL
specifies the path to an image to use as the sort icon that is
displayed in the header of a
sortable column.
descending
when set to true causes the column
to be sorted in descending order.
severity
specifies the severity of an alarm
in each cell, and causes the column to sort on the severity value
if used with the sort
attribute.
footerText
attribute in the ui:tableColumn
tag, the default
implementation of the footer is rendered. You can specify a separate
component to provide footer content by using the footer
facet, which overrides the footerText
attribute.
You can add extra HTML code to the
footer's rendered <td>
element with the extraFooterHtml
attribute.tableFooterText
attribute, the default implementation of the footer is rendered.
You can specify a separate component to provide the content for a table
column footer by
using the tableFooter
facet, which overrides the tableFooterText
attribute. You
can add extra HTML code to the table footer's rendered <td>
element with the extraTableFooterHtml
attribute.ui:tableColumn
tag can be used to set other aspects of the
table's
appearance and behavior. align
specifies the horizontal alignment
for
the cell data in the
columnalignKey
specifies a particular data element on
which to align the
cell data char
specifies a character to use for
horizontal alignment of cell datacharOff
specifies the offset of
the first
occurrence of
the alignment charactervalign
specifies the vertical alignment
for
the content of each cellscope
set
to a keyword to specify the portion of the table that this header
applies to. rowHeader
set to true to specify that the content of the column's cells applies
to the row in which the
cell is located. abbr
specifies an abbreviated form of the cell's content, to
be used when the browser has little space to render the content.embeddedActions
when set to true causes separators to be rendered
between multiple action hyperlinks.emptyCell
when
set to
true causes an unexpectedly empty cell to be
rendered with an appropriate image.spacerColumn
when
set to true causes the column to be rendered as a blank column to
enhance table spacing.
height
specifies
the height of a column's cells.
width
specifies
the width of a column's cells.
nowrap
prevents
the content of the cell from wrapping to a new line.selectId
attribute in the ui:tableColumn
tag and include a ui:checkbox
or ui:radioButton
tag as a child of the ui:tableColumn
tag, the first column is rendered
appropriately. See the Select Single
Row example for more
information. ui:tableColumn
tag supports the following facets,
which
allow you to customize the
layout of the component.Facet
Name
|
Table Item
Implemented by the Facet |
footer
|
Footer that is displayed at the bottom of the column within
the group of rows. The footer applies to the column of cells that are
defined
by the ui:tableColumn
tag. This facet can be used to replace the default footer for the
column. |
header |
Header that applies to the column of cells that are defined
by the ui:tableColumn
tag. This facet can be used to replace the default header for the
column. |
tableFooter |
Footer that is displayed at the bottom of the table, below the last group of rows, above the Action Bar and overall table footer. The table footer content should apply to the column for all the groups of rows in the table. This facet can be used to replace the default table footer for the column. |
ui:table
tag's
JavaScript documentation.
The same functions are used for the
ui:tableColumn
tag.ui:table
tag documentation. Utility
classes used in the examples are
included
in this page, after the examples.
Additional examples are shown in the ui:table
and ui:tableRowGroup
documents.ui:table
tag is contained
within an HTML <form>
element so that actions can
submit form data. Example
3: Select
Multiple Rows
Example 4: Hidden Selected Rows
ui:table
documentation. Notice that the
ui:table
tag includes the clearSortButton
attribute to enable
users to clear any sorts applied to the table.sort
attribute in ui:tableColumn
must be the proper data type
for sorting to work as expected. For example, you should not use String
objects for numeric data because the digits will be sorted according to
their ASCII values. Sorting the numbers as strings causes the number 2
to be displayed before the number 11, for example. Be sure to
sort using objects such as Number, Character, Date, Boolean, etc.addSort(SortCriteria)
method of TableRowGroup. When the table is rendered, the data is sorted
and the primary sort column is highlighted. <!-- Sortable
Table -->
<ui:table id="table1"
clearSortButton="true"
sortPanelToggleButton="true"
title="Sortable Table">
<ui:tableRowGroup id="rowGroup1"
sourceData="#{TableBean.groupB.names}"
sourceVar="name">
<ui:tableColumn id="col1"
alignKey="last"
headerText="Last Name"
rowHeader="true"
sort="last">
<ui:staticText
text="#{name.value.last}"/>
</ui:tableColumn>
<ui:tableColumn id="col2"
alignKey="first"
headerText="First Name"
sort="first">
<ui:staticText
text="#{name.value.first}"/>
</ui:tableColumn>
</ui:tableRowGroup>
</ui:table>
initAllRows()
JavaScript function whenever the state of
the radio button
changes. The initAllRows()
function is defined in select.js
shown below. The
radio button state is maintained through the selected
attribute of the
ui:tableRowGroup
tag. This example does not maintain state
across paginated
pages.com.sun.rave.web.ui.event.TableSelectPhaseListener
object
ensures that rows that are hidden from view are
deselected because the phase listener clears the selected state after
the
rendering phase. The TableSelectPhaseListener
object is used in this example in Select.java
in the ui:table
documentation. Also refer to the JavaDoc
for TableSelectPhaseListener
for more information. <!-- Single Select Row -->
<ui:table id="table1"
deselectSingleButton="true"
paginateButton="true"
paginationControls="true"
title="Select Single Row">
<ui:tableRowGroup id="rowGroup1"
selected="#{TableBean.groupA.select.selectedState}"
sourceData="#{TableBean.groupA.names}"
sourceVar="name" rows="5">
<ui:tableColumn id="col0"
onClick="setTimeout('initAllRows()', 0)"
selectId="select"
sort="#{TableBean.groupA.select.selectedState}">
<ui:radioButton id="select"
name="select"
selected="#{TableBean.groupA.select.selected}"
selectedValue="#{TableBean.groupA.select.selectedValue}"/>
</ui:tableColumn>
<ui:tableColumn id="col1"
alignKey="last"
headerText="Last Name" rowHeader="true">
<ui:staticText
text="#{name.value.last}"/>
</ui:tableColumn>
<ui:tableColumn id="col2" alignKey="first"
headerText="First Name">
<ui:staticText
text="#{name.value.first}"/>
</ui:tableColumn>
</ui:tableRowGroup>
</ui:table>
select.js
file
used in the
example above.// Use this function to initialize all rows displayed in the
table when the
// state of selected components change (i.e., checkboxes or
radiobuttons used to
// de/select rows of the table). This functionality requires the
selectId
// property of the tableColumn component to be set.
//
// Note: Use setTimeout when invoking this function. This will ensure
that
// checkboxes and radiobutton are selected immediately, instead of
waiting for
// the onClick event to complete. For example:
//
// onClick="setTimeout('initAllRows(); disableActions()', 0)"
function initAllRows() {
// Disable table actions by default.
var table = document.getElementById("form1:table1");
table.initAllRows();
}
initAllRows()
JavaScript function whenever the state of
the checkbox
changes. The initAllRows()
function is defined in select.js
in
the previous example. The checkbox state is maintained
through the selected
attribute of the
ui:tableRowGroup
tag. This example does not maintain state
across paginated
pages.com.sun.rave.web.ui.event.TableSelectPhaseListener
object
ensures that rows that are hidden from view are
deselected because the phase listener clears the selected state after
the
rendering phase. The TableSelectPhaseListener
object is used in this example in Select.java,
shown in the ui:table
documentation. Also refer to the
JavaDoc
for TableSelectPhaseListener
for more information. <!-- Select Multiple Rows -->
<ui:table id="table1"
deselectMultipleButton="true"
selectMultipleButton="true"
paginateButton="true"
paginationControls="true"
title="Select Multiple Rows">
<ui:tableRowGroup id="rowGroup1"
selected="#{TableBean.groupA.select.selectedState}"
sourceData="#{TableBean.groupA.names}"
sourceVar="name" rows="5">
<ui:tableColumn id="col0"
selectId="select"
sort="#{TableBean.groupA.select.selectedState}">
<ui:checkbox id="select"
onClick="setTimeout('initAllRows()', 0)"
selected="#{TableBean.groupA.select.selected}"
selectedValue="#{TableBean.groupA.select.selectedValue}"/>
</ui:tableColumn>
<ui:tableColumn id="col1"
alignKey="last"
headerText="Last Name" rowHeader="true">
<ui:staticText
text="#{name.value.last}"/>
</ui:tableColumn>
<ui:tableColumn id="col2" alignKey="first"
headerText="First Name">
<ui:staticText
text="#{name.value.first}"/>
</ui:tableColumn>
</ui:tableRowGroup>
</ui:table>
selected
attribute of
the
ui:tableRowGroup
tag. Dynamic row highlighting is
set by
invoking an
initAllRows()
JavaScript function whenever the state of
the checkbox
changes. The initAllRows()
function is defined in select.js
in the previous example. hiddenSelectedRows
attribute to true in
the ui:table
tag as shown in this example. The attribute
causes text to be
displayed in the table title and footer to indicate the number of
selected rows that are currently hidden from view. See the Select.java
utility class in the ui:table
documentation.
<!--
Hidden Selected Rows -->
<ui:table id="table1"
deselectMultipleButton="true"
deselectMultipleButtonOnClick="setTimeout('disableActions()', 0)"
hiddenSelectedRows="true"
paginateButton="true"
paginationControls="true"
selectMultipleButton="true"
selectMultipleButtonOnClick="setTimeout('disableActions()', 0)"
title="Hidden Selected Rows">
<ui:tableRowGroup id="rowGroup1"
binding="#{TableBean.groupA.tableRowGroup}"
selected="#{TableBean.groupA.select.selectedState}"
sourceData="#{TableBean.groupA.names}"
sourceVar="name" rows="5">
<ui:tableColumn id="col0"
selectId="select"
sort="#{TableBean.groupA.select.selectedState}">
<ui:checkbox id="select"
binding="#{TableBean.groupA.checkbox}"
onClick="setTimeout('initAllRows(); disableActions()', 0)"
selected="#{TableBean.groupA.select.selected}"
selectedValue="#{TableBean.groupA.select.selectedValue}"/>
</ui:tableColumn>
<ui:tableColumn id="col1"
alignKey="last"
headerText="Last Name" rowHeader="true">
<ui:staticText
text="#{name.value.last}"/>
</ui:tableColumn>
<ui:tableColumn id="col2" alignKey="first"
headerText="First Name">
<ui:staticText
text="#{name.value.first}"/>
</ui:tableColumn>
</ui:tableRowGroup>
<!-- Actions (Top) -->
<f:facet name="actionsTop">
<f:subview id="actionsTop">
<jsp:include
page="actionsTop.jsp"/>
</f:subview>
</f:facet>
<!-- Actions (Bottom) -->
<f:facet name="actionsBottom">
<f:subview id="actionsBottom">
<jsp:include
page="actionsBottom.jsp"/>
</f:subview>
</f:facet>
</ui:table>
ui:table
tag expand to the width of the
browser window, the two data columns might become so wide that the
properties and their values are not close together, and readability is
reduced. To solve this problem, you can add a spacer column to one side
of the table.spacerColumn
attribute set to true, and the width
attribute set to
70%. The column has no header or footer text, and no data. This column
acts to always keep
the data
of the first two columns in close proximity. If a column header
and footer are required, provide an empty string for the headerText
and
footerText
attributes. Set the width attribute to a value
that achieves the desired spacing. <!-- Spacer Column -->
<ui:table id="table1" title="Spacer Column">
<ui:tableRowGroup id="rowGroup1"
sourceData="#{TableBean.groupB.names}"
sourceVar="name">
<ui:tableColumn id="col1"
alignKey="last"
footerText="Column Footer"
headerText="Last Name"
rowHeader="true">
<ui:staticText
text="#{name.value.last}"/>
</ui:tableColumn>
<ui:tableColumn id="col2"
alignKey="first"
footerText="Column Footer"
headerText="First Name">
<ui:staticText
text="#{name.value.first}"/>
</ui:tableColumn>
<ui:tableColumn id="col3" spacerColumn="true"
width="70%"/>
</ui:tableRowGroup>
</ui:table>
emptyCell
attribute is set to
an expression that evaluates to true in every fifth row. In your
application, it is up to you to decide how to
test if the cell is truly empty. For example, you could use this
syntax: emptyCell="#{name.value.last == null}"
<!-- Empty Cells -->
<ui:table id="table1" title="Empty Cells">
<ui:tableRowGroup id="rowGroup1"
selected="#{TableBean.groupB.select.selectedState}"
sourceData="#{TableBean.groupB.names}"
sourceVar="name" rows="5">
<ui:tableColumn id="col0"
emptyCell="#{name.tableRow.rowId % 5 == 0}"
selectId="select">
<ui:checkbox id="select"
onClick="setTimeout('initAllRows()', 0)"
selected="#{TableBean.groupB.select.selected}"
selectedValue="#{TableBean.groupB.select.selectedValue}"/>
</ui:tableColumn>
<ui:tableColumn id="col1"
emptyCell="#{name.tableRow.rowId % 5 == 0}"
alignKey="last"
headerText="Last Name"
rowHeader="true">
<ui:staticText
text="#{name.value.last}"/>
</ui:tableColumn>
<ui:tableColumn id="col2"
emptyCell="#{name.tableRow.rowId % 5 == 0}"
alignKey="first"
headerText="First Name">
<ui:staticText
text="#{name.value.first}"/>
</ui:tableColumn>
</ui:tableRowGroup>
</ui:table>
ui:tableColumn
tag contains more than one tag
such as
ui:hyperlink
that a
re
used as embedded actions, you
should set the ui:tableColumn
tag's embeddedActions
attribute to
true. This attribute causes an action separator image to be displayed
between each of the rendered hyperlinks, as recommended in UI
guidelines.<!-- Embedded Actions -->
<ui:table id="table1" title="Embedded Actions">
<ui:tableRowGroup id="rowGroup1"
sourceData="#{TableBean.groupB.names}"
sourceVar="name">
<ui:tableColumn id="col0" embeddedActions="true"
headerText="Actions">
<ui:hyperlink id="action1"
action="#{TableBean.groupB.actions.action}"
text="Action
1">
<f:param name="param"
value="#{name.value.last}"/>
</ui:hyperlink>
<ui:hyperlink id="action2"
action="#{TableBean.groupB.actions.action}"
text="Action
2">
<f:param name="param"
value="#{name.tableRow.rowId}"/>
</ui:hyperlink>
</ui:tableColumn>
<ui:tableColumn id="col1"
alignKey="last"
headerText="Last Name" rowHeader="true">
<ui:staticText
text="#{name.value.last}"/>
</ui:tableColumn>
<ui:tableColumn id="col2" alignKey="first"
headerText="First Name">
<ui:staticText
text="#{name.value.first}"/>
</ui:tableColumn>
</ui:tableRowGroup>
</ui:table>
ui:tableColumn
tag includes a ui:alarm
tag to render the alarm icon. The ui:tableColumn
tag's severity
attribute is set to true, which
causes the
table data cell to appear highlighted according to level of
severity.
Note also that the column
is set to sort on the severity of the alarms. See
the TableBean
backing bean
and Name.java utlity class example in the ui:table
documentation for the model data. <!-- Alarms -->
<ui:table id="table1" title="Alarms">
<ui:tableRowGroup id="rowGroup1"
sourceData="#{TableBean.groupB.names}"
sourceVar="name">
<ui:tableColumn id="col1"
alignKey="last"
headerText="Last Name"
rowHeader="true"
sort="last">
<ui:staticText
text="#{name.value.last}"/>
</ui:tableColumn>
<ui:tableColumn id="col2"
alignKey="first"
headerText="First Name"
severity="#{name.value.severity}"
sort="alarm">
<ui:alarm id="alarm"
severity="#{name.value.severity}"/>
<ui:staticText
text="#{name.value.first}"/>
</ui:tableColumn>
</ui:tableRowGroup>
</ui:table>
ui:tableColumn
tags to create
multiple headers and footers. The third ui:tableColumn
(col3) contains four nested columns col3a, col3b, col3c, and col3d. The
column header specified in col3 spans the four nested columns.
However, not
all ui:tableColumn
attributes are supported when the
tags are nested. Typically, only the
header, footer, tableFooter, and sort would apply to a header and
spaning multiple columns. Sorting in the parent tableColumn is
supported, but for usability, sorting is recommended only for
tableColumn children. In addition, nesting of more than one level of
tableColumn components will render, but the CSS styles only support one
level of nesting.
<!-- Multiple Headers & Footers -->
<ui:table id="table1"
clearSortButton="true"
deselectMultipleButton="true"
deselectMultipleButtonOnClick="setTimeout('disableActions()', 0)"
footerText="Table Footer"
paginateButton="true"
paginationControls="true"
selectMultipleButton="true"
selectMultipleButtonOnClick="setTimeout('disableActions()', 0)"
sortPanelToggleButton="true"
title="Multiple Headers & Footers">
<ui:tableRowGroup id="rowGroup1"
binding="#{TableBean.groupA.tableRowGroup}"
rows="#{TableBean.groupA.preferences.rows}"
selected="#{TableBean.groupA.select.selectedState}"
sourceData="#{TableBean.groupA.names}"
sourceVar="name">
<ui:tableColumn id="col0"
selectId="select"
sort="#{TableBean.groupA.select.selectedState}">
<ui:checkbox id="select"
onClick="setTimeout('initAllRows(); disableActions()', 0)"
selected="#{TableBean.groupA.select.selected}"
selectedValue="#{TableBean.groupA.select.selectedValue}"/>
</ui:tableColumn>
<ui:tableColumn id="col1"
alignKey="last"
headerText="Last Name"
rowHeader="true">
<ui:staticText
text="#{name.value.last}"/>
</ui:tableColumn>
<ui:tableColumn id="col2"
alignKey="first"
headerText="First Name">
<ui:staticText
text="#{name.value.first}"/>
</ui:tableColumn>
<ui:tableColumn id="col3" headerText="Task
Status">
<!-- Nested Columns -->
<ui:tableColumn id="col3a"
headerText="A"
footerText="ColFtrA"
sort="last"
sortIcon="ALARM_CRITICAL_MEDIUM"
tableFooterText="TblFtrA">
<ui:staticText
text="a"/>
</ui:tableColumn>
<ui:tableColumn id="col3b"
headerText="B"
footerText="ColFtrB"
sort="first"
sortIcon="ALARM_MAJOR_MEDIUM"
tableFooterText="TblFtrB">
<ui:staticText
text="b"/>
</ui:tableColumn>
<ui:tableColumn id="col3c"
headerText="C"
footerText="ColFtrC"
sortIcon="ALARM_MINOR_MEDIUM"
tableFooterText="TblFtrC">
<ui:staticText
text="c"/>
</ui:tableColumn>
<ui:tableColumn id="col3d"
headerText="D"
footerText="ColFtrD"
sortIcon="ALARM_DOWN_MEDIUM"
tableFooterText="TblFtrD">
<ui:staticText
text="d"/>
</ui:tableColumn>
</ui:tableColumn>
</ui:tableRowGroup>
</ui:table>
faces_config.xml
file. <!DOCTYPE faces-config PUBLIC
'-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN'
'http://java.sun.com/dtd/web-facesconfig_1_1.dtd'>
<faces-config>
<managed-bean>
<description>The
backing bean for the table example</description>
<managed-bean-name>TableBean</managed-bean-name>
<managed-bean-class>table.TableBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
Auto-generated component class. Do NOT modify; all changes will be lost!
Constructor Summary | |
TableColumnBase()
Construct a new TableColumnBase . |
Method Summary | |
java.lang.String |
getAbbr()
An abbreviated version of the cell's content |
java.lang.String |
getAlign()
Sets the horizontal alignment (left, right, justify, center) for the cell contents |
java.lang.Object |
getAlignKey()
Use the alignKey attribute to specify the FieldKey id or FieldKey
to be used as an identifier for a specific data element on which to align the
table cell data in the column. |
java.lang.String |
getAxis()
Provides a method for categorizing cells |
java.lang.String |
getBgColor()
|
java.lang.String |
getChar()
|
java.lang.String |
getCharOff()
|
int |
getColSpan()
The number of columns spanned by a cell |
java.lang.String |
getExtraFooterHtml()
Extra HTML code to be appended to the <td> HTML element that
is rendered for the column footer. |
java.lang.String |
getExtraHeaderHtml()
Extra HTML code to be appended to the <th> HTML element that
is rendered for the column header. |
java.lang.String |
getExtraTableFooterHtml()
Extra HTML code to be appended to the <td> HTML element that
is rendered for the table column footer. |
java.lang.String |
getFamily()
Return the family for this component. |
java.lang.String |
getFooterText()
The text to be displayed in the column footer. |
java.lang.String |
getHeaders()
Space separated list of header cell ID values |
java.lang.String |
getHeaderText()
The text to be displayed in the column header. |
java.lang.String |
getHeight()
Set the cell height in pixels (deprecated in HTML 4.0) |
java.lang.String |
getOnClick()
Scripting code executed when a mouse click occurs over this component. |
java.lang.String |
getOnDblClick()
Scripting code executed when a mouse double click occurs over this component. |
java.lang.String |
getOnKeyDown()
Scripting code executed when the user presses down on a key while the component has focus. |
java.lang.String |
getOnKeyPress()
Scripting code executed when the user presses and releases a key while the component has focus. |
java.lang.String |
getOnKeyUp()
Scripting code executed when the user releases a key while the component has focus. |
java.lang.String |
getOnMouseDown()
Scripting code executed when the user presses a mouse button while the mouse pointer is on the component. |
java.lang.String |
getOnMouseMove()
Scripting code executed when the user moves the mouse pointer while over the component. |
java.lang.String |
getOnMouseOut()
Scripting code executed when a mouse out movement occurs over this component. |
java.lang.String |
getOnMouseOver()
Scripting code executed when the user moves the mouse pointer into the boundary of this component. |
java.lang.String |
getOnMouseUp()
Scripting code executed when the user releases a mouse button while the mouse pointer is on the component. |
int |
getRowSpan()
The number of rows spanned by a cell |
java.lang.String |
getScope()
Indicates that information in a cell is also acting as a header |
java.lang.String |
getSelectId()
Use the selectId attribute in select columns, which contain
checkboxes or radio buttons for selecting table rows. |
java.lang.String |
getSeverity()
Use the severity attribute when including the ui:alarm
component in a column, to match the severity of the alarm. |
java.lang.Object |
getSort()
Use the sort attribute to specify a FieldKey id or SortCriteria
that defines the criteria to use for sorting the contents of a
TableDataProvider. |
java.lang.String |
getSortIcon()
The theme identifier to use for the sort button that is displayed in the column header. |
java.lang.String |
getSortImageURL()
Absolute or relative URL to the image used for the sort button that is displayed in the column header. |
java.lang.String |
getStyle()
CSS style(s) to be applied when this component is rendered. |
java.lang.String |
getStyleClass()
CSS style class(es) to be applied when this component is rendered. |
java.lang.String |
getTableFooterText()
The text to be displayed in the table column footer. |
java.lang.String |
getToolTip()
Display the text as a tooltip for this component |
java.lang.String |
getValign()
Vertical alignment (top, middle, bottom) for the content of each cell in the column |
java.lang.String |
getWidth()
Set the width of the column in either pixels or percent(deprecated in HTML 4.0) |
boolean |
isDescending()
Use the descending attribute to specify that the first
user-applied sort is descending. |
boolean |
isEmbeddedActions()
Set the embeddedActions attribute to true when the column includes
more than one embedded action. |
boolean |
isEmptyCell()
Use the emptyCell attribute to cause a theme-specific image to be
displayed when the content of a table cell is not applicable or is unexpectedly
empty. |
boolean |
isNoWrap()
Disable word wrapping (deprecated in HTML 4.0) |
boolean |
isRowHeader()
Use the rowHeader attribute to specify that the cells of the
column are acting as row headers. |
boolean |
isSpacerColumn()
Use the spacerColumn attribute to use the column as a blank column
to enhance spacing in two or three column tables. |
boolean |
isVisible()
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. |
void |
restoreState(javax.faces.context.FacesContext _context,
java.lang.Object _state)
Restore the state of this component. |
java.lang.Object |
saveState(javax.faces.context.FacesContext _context)
Save the state of this component. |
void |
setAbbr(java.lang.String abbr)
An abbreviated version of the cell's content |
void |
setAlign(java.lang.String align)
Sets the horizontal alignment (left, right, justify, center) for the cell contents |
void |
setAlignKey(java.lang.Object alignKey)
Use the alignKey attribute to specify the FieldKey id or FieldKey
to be used as an identifier for a specific data element on which to align the
table cell data in the column. |
void |
setAxis(java.lang.String axis)
Provides a method for categorizing cells |
void |
setBgColor(java.lang.String bgColor)
|
void |
setChar(java.lang.String _char)
|
void |
setCharOff(java.lang.String charOff)
|
void |
setColSpan(int colSpan)
The number of columns spanned by a cell |
void |
setDescending(boolean descending)
Use the descending attribute to specify that the first
user-applied sort is descending. |
void |
setEmbeddedActions(boolean embeddedActions)
Set the embeddedActions attribute to true when the column includes
more than one embedded action. |
void |
setEmptyCell(boolean emptyCell)
Use the emptyCell attribute to cause a theme-specific image to be
displayed when the content of a table cell is not applicable or is unexpectedly
empty. |
void |
setExtraFooterHtml(java.lang.String extraFooterHtml)
Extra HTML code to be appended to the <td> HTML element that
is rendered for the column footer. |
void |
setExtraHeaderHtml(java.lang.String extraHeaderHtml)
Extra HTML code to be appended to the <th> HTML element that
is rendered for the column header. |
void |
setExtraTableFooterHtml(java.lang.String extraTableFooterHtml)
Extra HTML code to be appended to the <td> HTML element that
is rendered for the table column footer. |
void |
setFooterText(java.lang.String footerText)
The text to be displayed in the column footer. |
void |
setHeaders(java.lang.String headers)
Space separated list of header cell ID values |
void |
setHeaderText(java.lang.String headerText)
The text to be displayed in the column header. |
void |
setHeight(java.lang.String height)
Set the cell height in pixels (deprecated in HTML 4.0) |
void |
setNoWrap(boolean noWrap)
Disable word wrapping (deprecated in HTML 4.0) |
void |
setOnClick(java.lang.String onClick)
Scripting code executed when a mouse click occurs over this component. |
void |
setOnDblClick(java.lang.String onDblClick)
Scripting code executed when a mouse double click occurs over this component. |
void |
setOnKeyDown(java.lang.String onKeyDown)
Scripting code executed when the user presses down on a key while the component has focus. |
void |
setOnKeyPress(java.lang.String onKeyPress)
Scripting code executed when the user presses and releases a key while the component has focus. |
void |
setOnKeyUp(java.lang.String onKeyUp)
Scripting code executed when the user releases a key while the component has focus. |
void |
setOnMouseDown(java.lang.String onMouseDown)
Scripting code executed when the user presses a mouse button while the mouse pointer is on the component. |
void |
setOnMouseMove(java.lang.String onMouseMove)
Scripting code executed when the user moves the mouse pointer while over the component. |
void |
setOnMouseOut(java.lang.String onMouseOut)
Scripting code executed when a mouse out movement occurs over this component. |
void |
setOnMouseOver(java.lang.String onMouseOver)
Scripting code executed when the user moves the mouse pointer into the boundary of this component. |
void |
setOnMouseUp(java.lang.String onMouseUp)
Scripting code executed when the user releases a mouse button while the mouse pointer is on the component. |
void |
setRowHeader(boolean rowHeader)
Use the rowHeader attribute to specify that the cells of the
column are acting as row headers. |
void |
setRowSpan(int rowSpan)
The number of rows spanned by a cell |
void |
setScope(java.lang.String scope)
Indicates that information in a cell is also acting as a header |
void |
setSelectId(java.lang.String selectId)
Use the selectId attribute in select columns, which contain
checkboxes or radio buttons for selecting table rows. |
void |
setSeverity(java.lang.String severity)
Use the severity attribute when including the ui:alarm
component in a column, to match the severity of the alarm. |
void |
setSort(java.lang.Object sort)
Use the sort attribute to specify a FieldKey id or SortCriteria
that defines the criteria to use for sorting the contents of a
TableDataProvider. |
void |
setSortIcon(java.lang.String sortIcon)
The theme identifier to use for the sort button that is displayed in the column header. |
void |
setSortImageURL(java.lang.String sortImageURL)
Absolute or relative URL to the image used for the sort button that is displayed in the column header. |
void |
setSpacerColumn(boolean spacerColumn)
Use the spacerColumn attribute to use the column as a blank column
to enhance spacing in two or three column tables. |
void |
setStyle(java.lang.String style)
CSS style(s) to be applied when this component is rendered. |
void |
setStyleClass(java.lang.String styleClass)
CSS style class(es) to be applied when this component is rendered. |
void |
setTableFooterText(java.lang.String tableFooterText)
The text to be displayed in the table column footer. |
void |
setToolTip(java.lang.String toolTip)
Display the text as a tooltip for this component |
void |
setValign(java.lang.String valign)
Vertical alignment (top, middle, bottom) for the content of each cell in the column |
void |
setVisible(boolean visible)
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. |
void |
setWidth(java.lang.String width)
Set the width of the column in either pixels or percent(deprecated in HTML 4.0) |
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 |
Constructor Detail |
public TableColumnBase()
Construct a new TableColumnBase
.
Method Detail |
public java.lang.String getFamily()
Return the family for this component.
public java.lang.String getAbbr()
An abbreviated version of the cell's content
public void setAbbr(java.lang.String abbr)
An abbreviated version of the cell's content
getAbbr()
public java.lang.String getAlign()
Sets the horizontal alignment (left, right, justify, center) for the cell contents
public void setAlign(java.lang.String align)
Sets the horizontal alignment (left, right, justify, center) for the cell contents
getAlign()
public java.lang.Object getAlignKey()
Use the alignKey
attribute to specify the FieldKey id or FieldKey
to be used as an identifier for a specific data element on which to align the
table cell data in the column. If alignKey
specifies a
FieldKey, the FieldKey is used as is; otherwise, a FieldKey is created using
the alignKey
value that you specify. Alignment is based on
the object type of the data element. For example, Date and Number objects are
aligned "right", Character and String objects are aligned "left", and Boolean
objects are aligned "center". All columns, including select columns, are
aligned "left" by default. Note that the align property overrides this value.
public void setAlignKey(java.lang.Object alignKey)
Use the alignKey
attribute to specify the FieldKey id or FieldKey
to be used as an identifier for a specific data element on which to align the
table cell data in the column. If alignKey
specifies a
FieldKey, the FieldKey is used as is; otherwise, a FieldKey is created using
the alignKey
value that you specify. Alignment is based on
the object type of the data element. For example, Date and Number objects are
aligned "right", Character and String objects are aligned "left", and Boolean
objects are aligned "center". All columns, including select columns, are
aligned "left" by default. Note that the align property overrides this value.
getAlignKey()
public java.lang.String getAxis()
Provides a method for categorizing cells
public void setAxis(java.lang.String axis)
Provides a method for categorizing cells
getAxis()
public java.lang.String getBgColor()
public void setBgColor(java.lang.String bgColor)
public java.lang.String getChar()
public void setChar(java.lang.String _char)
public java.lang.String getCharOff()
public void setCharOff(java.lang.String charOff)
public int getColSpan()
The number of columns spanned by a cell
public void setColSpan(int colSpan)
The number of columns spanned by a cell
getColSpan()
public boolean isDescending()
Use the descending
attribute to specify that the first
user-applied sort is descending. By default, the first time a user clicks a
column's sort button or column header, the sort is ascending. Note that this
not an initial sort. The data is initially displayed unsorted.
public void setDescending(boolean descending)
Use the descending
attribute to specify that the first
user-applied sort is descending. By default, the first time a user clicks a
column's sort button or column header, the sort is ascending. Note that this
not an initial sort. The data is initially displayed unsorted.
isDescending()
public boolean isEmbeddedActions()
Set the embeddedActions
attribute to true when the column includes
more than one embedded action. This attribute causes a separator image to be
displayed between the action links. This attribute is overridden by the
emptyCell
attribute.
public void setEmbeddedActions(boolean embeddedActions)
Set the embeddedActions
attribute to true when the column includes
more than one embedded action. This attribute causes a separator image to be
displayed between the action links. This attribute is overridden by the
emptyCell
attribute.
isEmbeddedActions()
public boolean isEmptyCell()
Use the emptyCell
attribute to cause a theme-specific image to be
displayed when the content of a table cell is not applicable or is unexpectedly
empty. You should not use this attribute for a value that is truly null, such
as an empty alarm cell or a comment field that is blank. In addition, the image
should not be used for cells that contain user interface elements such as
checkboxes or drop-down lists when these elements are not applicable. Instead,
the elements should simply not be displayed so the cell is left empty.
public void setEmptyCell(boolean emptyCell)
Use the emptyCell
attribute to cause a theme-specific image to be
displayed when the content of a table cell is not applicable or is unexpectedly
empty. You should not use this attribute for a value that is truly null, such
as an empty alarm cell or a comment field that is blank. In addition, the image
should not be used for cells that contain user interface elements such as
checkboxes or drop-down lists when these elements are not applicable. Instead,
the elements should simply not be displayed so the cell is left empty.
isEmptyCell()
public java.lang.String getExtraFooterHtml()
Extra HTML code to be appended to the <td>
HTML element that
is rendered for the column footer. Use only code that is valid in an HTML
<td>
element. The code you specify is inserted in the HTML
element, and is not checked for validity. For example, you might set this
attribute to "nowrap=`nowrap'"
.
public void setExtraFooterHtml(java.lang.String extraFooterHtml)
Extra HTML code to be appended to the <td>
HTML element that
is rendered for the column footer. Use only code that is valid in an HTML
<td>
element. The code you specify is inserted in the HTML
element, and is not checked for validity. For example, you might set this
attribute to "nowrap=`nowrap'"
.
getExtraFooterHtml()
public java.lang.String getExtraHeaderHtml()
Extra HTML code to be appended to the <th>
HTML element that
is rendered for the column header. Use only code that is valid in an HTML
<td>
element. The code you specify is inserted in the HTML
element, and is not checked for validity. For example, you might set this
attribute to "nowrap=`nowrap'"
.
public void setExtraHeaderHtml(java.lang.String extraHeaderHtml)
Extra HTML code to be appended to the <th>
HTML element that
is rendered for the column header. Use only code that is valid in an HTML
<td>
element. The code you specify is inserted in the HTML
element, and is not checked for validity. For example, you might set this
attribute to "nowrap=`nowrap'"
.
getExtraHeaderHtml()
public java.lang.String getExtraTableFooterHtml()
Extra HTML code to be appended to the <td>
HTML element that
is rendered for the table column footer. Use only code that is valid in an HTML
<td>
element. The code you specify is inserted in the HTML
element, and is not checked for validity. For example, you might set this
attribute to "nowrap=`nowrap'"
.
public void setExtraTableFooterHtml(java.lang.String extraTableFooterHtml)
Extra HTML code to be appended to the <td>
HTML element that
is rendered for the table column footer. Use only code that is valid in an HTML
<td>
element. The code you specify is inserted in the HTML
element, and is not checked for validity. For example, you might set this
attribute to "nowrap=`nowrap'"
.
getExtraTableFooterHtml()
public java.lang.String getFooterText()
The text to be displayed in the column footer.
public void setFooterText(java.lang.String footerText)
The text to be displayed in the column footer.
getFooterText()
public java.lang.String getHeaderText()
The text to be displayed in the column header.
public void setHeaderText(java.lang.String headerText)
The text to be displayed in the column header.
getHeaderText()
public java.lang.String getHeaders()
Space separated list of header cell ID values
public void setHeaders(java.lang.String headers)
Space separated list of header cell ID values
getHeaders()
public java.lang.String getHeight()
Set the cell height in pixels (deprecated in HTML 4.0)
public void setHeight(java.lang.String height)
Set the cell height in pixels (deprecated in HTML 4.0)
getHeight()
public boolean isNoWrap()
Disable word wrapping (deprecated in HTML 4.0)
public void setNoWrap(boolean noWrap)
Disable word wrapping (deprecated in HTML 4.0)
isNoWrap()
public java.lang.String getOnClick()
Scripting code executed when a mouse click occurs over this component.
public void setOnClick(java.lang.String onClick)
Scripting code executed when a mouse click occurs over this component.
getOnClick()
public java.lang.String getOnDblClick()
Scripting code executed when a mouse double click occurs over this component.
public void setOnDblClick(java.lang.String onDblClick)
Scripting code executed when a mouse double click occurs over this component.
getOnDblClick()
public java.lang.String getOnKeyDown()
Scripting code executed when the user presses down on a key while the component has focus.
public void setOnKeyDown(java.lang.String onKeyDown)
Scripting code executed when the user presses down on a key while the component has focus.
getOnKeyDown()
public java.lang.String getOnKeyPress()
Scripting code executed when the user presses and releases a key while the component has focus.
public void setOnKeyPress(java.lang.String onKeyPress)
Scripting code executed when the user presses and releases a key while the component has focus.
getOnKeyPress()
public java.lang.String getOnKeyUp()
Scripting code executed when the user releases a key while the component has focus.
public void setOnKeyUp(java.lang.String onKeyUp)
Scripting code executed when the user releases a key while the component has focus.
getOnKeyUp()
public java.lang.String getOnMouseDown()
Scripting code executed when the user presses a mouse button while the mouse pointer is on the component.
public void setOnMouseDown(java.lang.String onMouseDown)
Scripting code executed when the user presses a mouse button while the mouse pointer is on the component.
getOnMouseDown()
public java.lang.String getOnMouseMove()
Scripting code executed when the user moves the mouse pointer while over the component.
public void setOnMouseMove(java.lang.String onMouseMove)
Scripting code executed when the user moves the mouse pointer while over the component.
getOnMouseMove()
public java.lang.String getOnMouseOut()
Scripting code executed when a mouse out movement occurs over this component.
public void setOnMouseOut(java.lang.String onMouseOut)
Scripting code executed when a mouse out movement occurs over this component.
getOnMouseOut()
public java.lang.String getOnMouseOver()
Scripting code executed when the user moves the mouse pointer into the boundary of this component.
public void setOnMouseOver(java.lang.String onMouseOver)
Scripting code executed when the user moves the mouse pointer into the boundary of this component.
getOnMouseOver()
public java.lang.String getOnMouseUp()
Scripting code executed when the user releases a mouse button while the mouse pointer is on the component.
public void setOnMouseUp(java.lang.String onMouseUp)
Scripting code executed when the user releases a mouse button while the mouse pointer is on the component.
getOnMouseUp()
public boolean isRowHeader()
Use the rowHeader
attribute to specify that the cells of the
column are acting as row headers. Row headers are cells that "label" the row.
For example, consider a table where the first column contains checkboxes, and
the second column contains user names. The third and subsequent columns contain
attributes of those users. The content of the cells in the user name column are
acting as row headers. The ui:tableColumn
tag for the user name
column should set the rowHeader
attribute to true. If a table
contains, for example, a system log with time stamp and log entry columns,
neither column is acting as a row header, so the rowHeader
attribute should not be set.
By default, most column cells are rendered by the table component with HTML
<td scope="col">
elements. The exceptions are columns that
contain checkboxes or radio buttons and spacer columns, all of which are
rendered as <td>
elements without a scope property.
When you set the rowHeader
attribute, the column cells are
rendered as <th scope="row">
elements, which enables
adaptive technologies such as screen readers to properly read the table to
indicate that the contents of these cells are headers for the rows.
public void setRowHeader(boolean rowHeader)
Use the rowHeader
attribute to specify that the cells of the
column are acting as row headers. Row headers are cells that "label" the row.
For example, consider a table where the first column contains checkboxes, and
the second column contains user names. The third and subsequent columns contain
attributes of those users. The content of the cells in the user name column are
acting as row headers. The ui:tableColumn
tag for the user name
column should set the rowHeader
attribute to true. If a table
contains, for example, a system log with time stamp and log entry columns,
neither column is acting as a row header, so the rowHeader
attribute should not be set.
By default, most column cells are rendered by the table component with HTML
<td scope="col">
elements. The exceptions are columns that
contain checkboxes or radio buttons and spacer columns, all of which are
rendered as <td>
elements without a scope property.
When you set the rowHeader
attribute, the column cells are
rendered as <th scope="row">
elements, which enables
adaptive technologies such as screen readers to properly read the table to
indicate that the contents of these cells are headers for the rows.
isRowHeader()
public int getRowSpan()
The number of rows spanned by a cell
public void setRowSpan(int rowSpan)
The number of rows spanned by a cell
getRowSpan()
public java.lang.String getScope()
Indicates that information in a cell is also acting as a header
public void setScope(java.lang.String scope)
Indicates that information in a cell is also acting as a header
getScope()
public java.lang.String getSelectId()
Use the selectId
attribute in select columns, which contain
checkboxes or radio buttons for selecting table rows. The value of
selectId
must match the id
attribute of the checkbox
or radioButton component that is a child of the tableColumn component. A fully
qualified ID based on the tableColumn component ID and the
selectId
for the current row will be dynamically created for the
<input>
element that is rendered for the checkbox or radio
button. The selectId
is required for functionality that supports
the toggle buttons for selecting rows. The selectId
also
identifies the column as a select column, for which the table component
uses different CSS styles.
public void setSelectId(java.lang.String selectId)
Use the selectId
attribute in select columns, which contain
checkboxes or radio buttons for selecting table rows. The value of
selectId
must match the id
attribute of the checkbox
or radioButton component that is a child of the tableColumn component. A fully
qualified ID based on the tableColumn component ID and the
selectId
for the current row will be dynamically created for the
<input>
element that is rendered for the checkbox or radio
button. The selectId
is required for functionality that supports
the toggle buttons for selecting rows. The selectId
also
identifies the column as a select column, for which the table component
uses different CSS styles.
getSelectId()
public java.lang.String getSeverity()
Use the severity
attribute when including the ui:alarm
component in a column, to match the severity of the alarm. Valid values are
described in the ui:alarm
documentation. When the
severity
attribute is set in the tableColumn, the table
component renders sort tool tips to indicate that the column will be sorted
least/most severe first, and the table cell appears hightlighted according to
the level of severity. This functionality is overridden by the
emptyCell
attribute.
public void setSeverity(java.lang.String severity)
Use the severity
attribute when including the ui:alarm
component in a column, to match the severity of the alarm. Valid values are
described in the ui:alarm
documentation. When the
severity
attribute is set in the tableColumn, the table
component renders sort tool tips to indicate that the column will be sorted
least/most severe first, and the table cell appears hightlighted according to
the level of severity. This functionality is overridden by the
emptyCell
attribute.
getSeverity()
public java.lang.Object getSort()
Use the sort
attribute to specify a FieldKey id or SortCriteria
that defines the criteria to use for sorting the contents of a
TableDataProvider. If SortCriteria is provided, the object is used for sorting
as is. If an id is provided, a FieldIdSortCriteria is created for sorting. In
addition, a value binding can also be used to sort on an object that is
external to TableDataProvider, such as the selected state of a checkbox or
radiobutton. When a value binding is used, a ValueBindingSortCriteria object
is created for sorting. All sorting is based on the object type associated with
the data element (for example, Boolean, Character, Comparator, Date, Number,
and String). If the object type cannot be determined, the object is compared as
a String. The sort
attribute is required for a column to be shown
as sortable.
public void setSort(java.lang.Object sort)
Use the sort
attribute to specify a FieldKey id or SortCriteria
that defines the criteria to use for sorting the contents of a
TableDataProvider. If SortCriteria is provided, the object is used for sorting
as is. If an id is provided, a FieldIdSortCriteria is created for sorting. In
addition, a value binding can also be used to sort on an object that is
external to TableDataProvider, such as the selected state of a checkbox or
radiobutton. When a value binding is used, a ValueBindingSortCriteria object
is created for sorting. All sorting is based on the object type associated with
the data element (for example, Boolean, Character, Comparator, Date, Number,
and String). If the object type cannot be determined, the object is compared as
a String. The sort
attribute is required for a column to be shown
as sortable.
getSort()
public java.lang.String getSortIcon()
The theme identifier to use for the sort button that is displayed in the column header. Use this attribute to override the default image.
public void setSortIcon(java.lang.String sortIcon)
The theme identifier to use for the sort button that is displayed in the column header. Use this attribute to override the default image.
getSortIcon()
public java.lang.String getSortImageURL()
Absolute or relative URL to the image used for the sort button that is displayed in the column header.
public void setSortImageURL(java.lang.String sortImageURL)
Absolute or relative URL to the image used for the sort button that is displayed in the column header.
getSortImageURL()
public boolean isSpacerColumn()
Use the spacerColumn
attribute to use the column as a blank column
to enhance spacing in two or three column tables. When the
spacerColumn
attribute is true, the CSS styles applied to the
column make it appear as if the columns are justified. If a column header and
footer are required, provide an empty string for the headerText
and footerText
attributes. Set the width
attribute to
justify columns accordingly.
public void setSpacerColumn(boolean spacerColumn)
Use the spacerColumn
attribute to use the column as a blank column
to enhance spacing in two or three column tables. When the
spacerColumn
attribute is true, the CSS styles applied to the
column make it appear as if the columns are justified. If a column header and
footer are required, provide an empty string for the headerText
and footerText
attributes. Set the width
attribute to
justify columns accordingly.
isSpacerColumn()
public java.lang.String getStyle()
CSS style(s) to be applied when this component is rendered.
public void setStyle(java.lang.String style)
CSS style(s) to be applied when this component is rendered.
getStyle()
public java.lang.String getStyleClass()
CSS style class(es) to be applied when this component is rendered.
public void setStyleClass(java.lang.String styleClass)
CSS style class(es) to be applied when this component is rendered.
getStyleClass()
public java.lang.String getTableFooterText()
The text to be displayed in the table column footer. The table column footer is displayed once per table, and is especially useful in tables with multiple groups of rows.
public void setTableFooterText(java.lang.String tableFooterText)
The text to be displayed in the table column footer. The table column footer is displayed once per table, and is especially useful in tables with multiple groups of rows.
getTableFooterText()
public java.lang.String getToolTip()
Display the text as a tooltip for this component
public void setToolTip(java.lang.String toolTip)
Display the text as a tooltip for this component
getToolTip()
public java.lang.String getValign()
Vertical alignment (top, middle, bottom) for the content of each cell in the column
public void setValign(java.lang.String valign)
Vertical alignment (top, middle, bottom) for the content of each cell in the column
getValign()
public boolean isVisible()
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, visible is set to true, so HTML for the component HTML is included and visible to the user. If the component is not visible, it can still be processed on subsequent form submissions because the HTML is present.
public void setVisible(boolean visible)
Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page. If set to false, the HTML code for the component is present in the page, but the component is hidden with style attributes. By default, visible is set to true, so HTML for the component HTML is included and visible to the user. If the component is not visible, it can still be processed on subsequent form submissions because the HTML is present.
isVisible()
public java.lang.String getWidth()
Set the width of the column in either pixels or percent(deprecated in HTML 4.0)
public void setWidth(java.lang.String width)
Set the width of the column in either pixels or percent(deprecated in HTML 4.0)
getWidth()
public void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
Restore the state of this component.
public java.lang.Object saveState(javax.faces.context.FacesContext _context)
Save the state of this component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |