|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.faces.component.UIComponent
oracle.adf.view.faces.component.UIXComponent
oracle.adf.view.faces.component.UIXComponentBase
oracle.adf.view.faces.component.UIXColumn
oracle.adf.view.faces.component.core.data.CoreColumn
The immediate children of a Table component must all be
<af:column> components. Each visible ADF Column
component creates a separate column in the Table.
Use the "header" facet on a Column to create the column header. The following example creates a two-column table with the column headers - "Firstname" and "Lastname":
<af:table>
<af:column>
<f:facet name="header">
<af:outputText value="Firstname"/>
</f:facet>
...
</af:column>
<af:column>
<f:facet name="header">
<af:outputText value="Lastname"/>
</f:facet>
...
</af:column>
</af:table>The child components of each Column display the data for each row in that column. The Column does not create child components per row; instead, each child is repeatedly rendered (stamped) once per row. Because of this stamping behavior, only certain types of components are supported as children inside a Column. Supported components include all components with no behavior and most components that implement the EditableValueHolder or ActionSource interfaces.
As each row is stamped, the data for the current row ( see
getRowData() on the Table)
is copied into an EL reachable property.
The name of this property is defined by the var
property on the Table. Once the Table has completed rendering, this
property is removed (or reverted back to its previous value). In
the following example, the data for each row is placed under the EL
property "row". Each Column displays the data for each row by getting
further properties from the "row" property:
<af:table var="row" value="#{myBean.employees}">
<af:column>
<af:outputText value="#{row.firstname}"/>
</af:column>
<af:column>
af:outputText value="#{row.lastname}"/>
</af:column>
</af:table>The Column component supports the following attributes related to formatting:
In order to make this Column sortable, set the "sortable"
property to true and set "sortProperty" to the name of the
model that this column will sort. Sorting can be programatically
turned on with the setSortCritiera() method on the\
table.
<af:column> tags can be nested to produce
groups of columns. The header of a column group spans across
all the columns it contains. The following example creates
a column group that has the header "Name" and contains
two sub columns with headers "First" and "Last":
<af:table var="row" value="#{myBean.employees}">
<af:column>
<f:facet name="header">
<af:outputText value="Name"/>
</f:facet>
<af:column>
<f:facet name="header">
<af:outputText value="First"/>
</f:facet>
<af:outputText value="#{row.firstname}"/>
</af:column>
<af:column>
<f:facet name="header">
<af:outputText value="Last"/>
</f:facet>
af:outputText value="#{row.lastname}"/>
</af:column>
</af:column>
</af:table>
| Field Summary | |
static java.lang.String |
BANDING_SHADE_DARK
Enumerated value indicating that dark shading should be used. |
static PropertyKey |
BANDING_SHADE_KEY
|
static java.lang.String |
BANDING_SHADE_LIGHT
Enumerated value indicating that light shading should be used. |
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
FORMAT_TYPE_ICON
Enumerated value indicating that the column should be formatted for icons. |
static PropertyKey |
FORMAT_TYPE_KEY
|
static java.lang.String |
FORMAT_TYPE_NUMBER
Enumerated value indicating that the column should be formatted for numbers. |
static java.lang.String |
FORMAT_TYPE_TEXT
Enumerated value indicating that the column should be formatted for text. |
static PropertyKey |
GRID_VISIBLE_KEY
|
static PropertyKey |
HEADER_NO_WRAP_KEY
|
static PropertyKey |
HEADER_TEXT_KEY
|
static PropertyKey |
INLINE_STYLE_KEY
|
static PropertyKey |
NO_WRAP_KEY
|
static PropertyKey |
ONCLICK_KEY
|
static PropertyKey |
ONDBLCLICK_KEY
|
static PropertyKey |
ONKEYDOWN_KEY
|
static PropertyKey |
ONKEYPRESS_KEY
|
static PropertyKey |
ONKEYUP_KEY
|
static PropertyKey |
ONMOUSEDOWN_KEY
|
static PropertyKey |
ONMOUSEMOVE_KEY
|
static PropertyKey |
ONMOUSEOUT_KEY
|
static PropertyKey |
ONMOUSEOVER_KEY
|
static PropertyKey |
ONMOUSEUP_KEY
|
static PropertyKey |
PARTIAL_TRIGGERS_KEY
|
static PropertyKey |
ROW_HEADER_KEY
|
static PropertyKey |
SEPARATE_ROWS_KEY
|
static PropertyKey |
SHORT_DESC_KEY
|
static PropertyKey |
SORTABLE_KEY
|
static PropertyKey |
STYLE_CLASS_KEY
|
static FacesBean.Type |
TYPE
|
static PropertyKey |
WIDTH_KEY
|
| Fields inherited from class oracle.adf.view.faces.component.UIXColumn |
FOOTER_FACET, HEADER_FACET, SORT_PROPERTY_KEY |
| Fields inherited from class oracle.adf.view.faces.component.UIXComponentBase |
BINDING_KEY, ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY |
| Constructor Summary | |
|
CoreColumn()
Construct an instance of the CoreColumn. |
protected |
CoreColumn(java.lang.String rendererType)
Construct an instance of the CoreColumn. |
| Method Summary | |
java.lang.String |
getBandingShade()
Gets the background color to use for this column. |
protected FacesBean.Type |
getBeanType()
|
java.lang.String |
getFamily()
|
java.lang.String |
getFormatType()
Gets the type of formatting to use for this column. |
java.lang.String |
getHeaderText()
Gets text to display in the header of the column. |
java.lang.String |
getInlineStyle()
Gets the inline CSS style for this element |
java.lang.String |
getOnclick()
Gets an onclick Javascript handler. |
java.lang.String |
getOndblclick()
Gets an ondblclick Javascript handler. |
java.lang.String |
getOnkeydown()
Gets an onkeydown Javascript handler. |
java.lang.String |
getOnkeypress()
Gets an onkeypress Javascript handler. |
java.lang.String |
getOnkeyup()
Gets an onkeyup Javascript handler. |
java.lang.String |
getOnmousedown()
Gets an onmousedown Javascript handler. |
java.lang.String |
getOnmousemove()
Gets an onmousemove Javascript handler. |
java.lang.String |
getOnmouseout()
Gets an onmouseout Javascript handler. |
java.lang.String |
getOnmouseover()
Gets an onmouseover Javascript handler. |
java.lang.String |
getOnmouseup()
Gets an onmouseup Javascript handler. |
java.lang.String[] |
getPartialTriggers()
Gets the IDs of the components that should trigger a partial update. |
java.lang.String |
getShortDesc()
Gets the short description of the bean. |
java.lang.String |
getStyleClass()
Gets the CSS style class of the bean. |
java.lang.String |
getWidth()
Gets the preferred width of this column, e.g., "30%", "100px". |
boolean |
isGridVisible()
Gets whether or not to display a grid line before the column's content (to the left in a left-to-right locale). |
boolean |
isHeaderNoWrap()
Gets whether or not the column header should be allowed to wrap |
boolean |
isNoWrap()
Gets whether or not the column contents should be allowed to wrap |
boolean |
isRowHeader()
Gets Whether or not this column is a row header column. |
boolean |
isSeparateRows()
Gets whether or not the children of this column should be rendered on separate rows. |
boolean |
isSortable()
Gets whether or not the column is sortable. |
void |
setBandingShade(java.lang.String bandingShade)
Sets the background color to use for this column. |
void |
setFormatType(java.lang.String formatType)
Sets the type of formatting to use for this column. |
void |
setGridVisible(boolean gridVisible)
Sets whether or not to display a grid line before the column's content (to the left in a left-to-right locale). |
void |
setHeaderNoWrap(boolean headerNoWrap)
Sets whether or not the column header should be allowed to wrap |
void |
setHeaderText(java.lang.String headerText)
Sets text to display in the header of the column. |
void |
setInlineStyle(java.lang.String inlineStyle)
Sets the inline CSS style for this element |
void |
setNoWrap(boolean noWrap)
Sets whether or not the column contents should be allowed to wrap |
void |
setOnclick(java.lang.String onclick)
Sets an onclick Javascript handler. |
void |
setOndblclick(java.lang.String ondblclick)
Sets an ondblclick Javascript handler. |
void |
setOnkeydown(java.lang.String onkeydown)
Sets an onkeydown Javascript handler. |
void |
setOnkeypress(java.lang.String onkeypress)
Sets an onkeypress Javascript handler. |
void |
setOnkeyup(java.lang.String onkeyup)
Sets an onkeyup Javascript handler. |
void |
setOnmousedown(java.lang.String onmousedown)
Sets an onmousedown Javascript handler. |
void |
setOnmousemove(java.lang.String onmousemove)
Sets an onmousemove Javascript handler. |
void |
setOnmouseout(java.lang.String onmouseout)
Sets an onmouseout Javascript handler. |
void |
setOnmouseover(java.lang.String onmouseover)
Sets an onmouseover Javascript handler. |
void |
setOnmouseup(java.lang.String onmouseup)
Sets an onmouseup Javascript handler. |
void |
setPartialTriggers(java.lang.String[] partialTriggers)
Sets the IDs of the components that should trigger a partial update. |
void |
setRowHeader(boolean rowHeader)
Sets Whether or not this column is a row header column. |
void |
setSeparateRows(boolean separateRows)
Sets whether or not the children of this column should be rendered on separate rows. |
void |
setShortDesc(java.lang.String shortDesc)
Sets the short description of the bean. |
void |
setSortable(boolean sortable)
Sets whether or not the column is sortable. |
void |
setStyleClass(java.lang.String styleClass)
Sets the CSS style class of the bean. |
void |
setWidth(java.lang.String width)
Sets the preferred width of this column, e.g., "30%", "100px". |
| Methods inherited from class oracle.adf.view.faces.component.UIXColumn |
getFooter, getHeader, getSortProperty, processDecodes, processUpdates, processValidators, setFooter, setHeader, setSortProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String FORMAT_TYPE_TEXT
public static final java.lang.String FORMAT_TYPE_ICON
public static final java.lang.String FORMAT_TYPE_NUMBER
public static final java.lang.String BANDING_SHADE_DARK
public static final java.lang.String BANDING_SHADE_LIGHT
public static final FacesBean.Type TYPE
public static final PropertyKey FORMAT_TYPE_KEY
public static final PropertyKey GRID_VISIBLE_KEY
public static final PropertyKey WIDTH_KEY
public static final PropertyKey HEADER_TEXT_KEY
public static final PropertyKey BANDING_SHADE_KEY
public static final PropertyKey NO_WRAP_KEY
public static final PropertyKey HEADER_NO_WRAP_KEY
public static final PropertyKey SORTABLE_KEY
public static final PropertyKey SEPARATE_ROWS_KEY
public static final PropertyKey ROW_HEADER_KEY
public static final PropertyKey SHORT_DESC_KEY
public static final PropertyKey PARTIAL_TRIGGERS_KEY
public static final PropertyKey ONCLICK_KEY
public static final PropertyKey ONDBLCLICK_KEY
public static final PropertyKey ONMOUSEDOWN_KEY
public static final PropertyKey ONMOUSEUP_KEY
public static final PropertyKey ONMOUSEOVER_KEY
public static final PropertyKey ONMOUSEMOVE_KEY
public static final PropertyKey ONMOUSEOUT_KEY
public static final PropertyKey ONKEYPRESS_KEY
public static final PropertyKey ONKEYDOWN_KEY
public static final PropertyKey ONKEYUP_KEY
public static final PropertyKey STYLE_CLASS_KEY
public static final PropertyKey INLINE_STYLE_KEY
public static final java.lang.String COMPONENT_FAMILY
public static final java.lang.String COMPONENT_TYPE
| Constructor Detail |
public CoreColumn()
protected CoreColumn(java.lang.String rendererType)
| Method Detail |
public final java.lang.String getFormatType()
public final void setFormatType(java.lang.String formatType)
public final boolean isGridVisible()
public final void setGridVisible(boolean gridVisible)
public final java.lang.String getWidth()
public final void setWidth(java.lang.String width)
public final java.lang.String getHeaderText()
public final void setHeaderText(java.lang.String headerText)
public final java.lang.String getBandingShade()
public final void setBandingShade(java.lang.String bandingShade)
public final boolean isNoWrap()
public final void setNoWrap(boolean noWrap)
public final boolean isHeaderNoWrap()
public final void setHeaderNoWrap(boolean headerNoWrap)
public final boolean isSortable()
public final void setSortable(boolean sortable)
public final boolean isSeparateRows()
public final void setSeparateRows(boolean separateRows)
public final boolean isRowHeader()
public final void setRowHeader(boolean rowHeader)
public final java.lang.String getShortDesc()
public final void setShortDesc(java.lang.String shortDesc)
public final java.lang.String[] getPartialTriggers()
public final void setPartialTriggers(java.lang.String[] partialTriggers)
public final java.lang.String getOnclick()
public final void setOnclick(java.lang.String onclick)
public final java.lang.String getOndblclick()
public final void setOndblclick(java.lang.String ondblclick)
public final java.lang.String getOnmousedown()
public final void setOnmousedown(java.lang.String onmousedown)
public final java.lang.String getOnmouseup()
public final void setOnmouseup(java.lang.String onmouseup)
public final java.lang.String getOnmouseover()
public final void setOnmouseover(java.lang.String onmouseover)
public final java.lang.String getOnmousemove()
public final void setOnmousemove(java.lang.String onmousemove)
public final java.lang.String getOnmouseout()
public final void setOnmouseout(java.lang.String onmouseout)
public final java.lang.String getOnkeypress()
public final void setOnkeypress(java.lang.String onkeypress)
public final java.lang.String getOnkeydown()
public final void setOnkeydown(java.lang.String onkeydown)
public final java.lang.String getOnkeyup()
public final void setOnkeyup(java.lang.String onkeyup)
public final java.lang.String getStyleClass()
public final void setStyleClass(java.lang.String styleClass)
public final java.lang.String getInlineStyle()
public final void setInlineStyle(java.lang.String inlineStyle)
public java.lang.String getFamily()
getFamily in class UIXColumnprotected FacesBean.Type getBeanType()
getBeanType in class UIXColumn
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||