|
|||||||||
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 javax.faces.component.UIPanel com.ibm.xsp.component.UIDataPanelBase com.ibm.xsp.component.UIPanelEx com.ibm.xsp.component.UIViewColumnHeader
public class UIViewColumnHeader
Abstract View Column Header Component used in conjunction with the viewColumn
on a viewPanel
This adds additional functionality such as sorting and checkboxes.
By default, the rendererType
property must be set to "com.ibm.xsp.ViewColumnHeader
"
This value can be changed by calling the setRendererType()
method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.faces.component.UIComponentBase |
---|
javax.faces.component.UIComponentBase.AggregatedIterator, javax.faces.component.UIComponentBase.UnmodifiableIterator |
Nested classes/interfaces inherited from class javax.faces.component.UIComponent |
---|
javax.faces.component.UIComponent.StateMap, javax.faces.component.UIComponent.StateMapEntry |
Field Summary | |
---|---|
static java.lang.String |
CHECKBOX_STYLE
|
static java.lang.String |
COMPONENT_TYPE
The standard component type for this component. |
static java.lang.String |
IMAGE_RESORTED_ASCENDING
|
static java.lang.String |
IMAGE_RESORTED_DESCENDING
|
static java.lang.String |
IMAGE_SORT_BOTH
|
static java.lang.String |
IMAGE_SORT_BOTH_ASCENDING
|
static java.lang.String |
IMAGE_SORT_BOTH_DESCENDING
|
static java.lang.String |
IMAGE_SORTED_ASCENDING
|
static java.lang.String |
IMAGE_SORTED_DESCENDING
|
static java.lang.String |
RENDERER_TYPE
|
Fields inherited from class javax.faces.component.UIPanel |
---|
COMPONENT_FAMILY |
Fields inherited from class javax.faces.component.UIComponentBase |
---|
EMPTY_ITERATOR |
Fields inherited from class javax.faces.component.UIComponent |
---|
_xspStateId |
Fields inherited from interface com.ibm.xsp.component.FacesDataProvider |
---|
DATA, DATA_CONTEXTS |
Constructor Summary | |
---|---|
UIViewColumnHeader()
Abstract View Column Header component constructor. |
Method Summary | |
---|---|
void |
buildContents(javax.faces.context.FacesContext context,
FacesComponentBuilder builder)
Build the component children and facets, the default implementation is usually: builder.buildAll(context, this, true); // includeFacets=true |
void |
encodeBegin(javax.faces.context.FacesContext context)
|
java.lang.String |
getContentType()
Return the value of the contentType property. |
java.lang.String |
getHtmlFilter()
Return the value of the htmlFilter property. |
java.lang.String |
getIconAlt()
Return the value of the iconAlt property. |
java.lang.String |
getIconSrc()
Return the value of the iconSrc property. |
boolean |
getRendersChildren()
|
java.lang.String |
getSortIcon()
Returns the URL for the current sort order for this column. |
java.lang.String |
getSortIconAltText()
Returns the alt text for the current sort order icon for this column. |
java.lang.String |
getStyle()
Return the value of the style property. |
java.lang.String |
getStyleClass()
Return the value of the styleClass property. |
java.lang.String |
getStyleKitFamily()
The styleKitFamily is basically the default themeId, to use if the "themeId" property is not set on this control instance in the XPage source. |
java.lang.Object |
getValue()
Return the value of the value property. |
boolean |
isColumnSortable()
flag indicating if this column is set to sortable |
boolean |
isRendered()
|
boolean |
isShowCheckbox()
Return the value of the showCheckbox property. |
boolean |
isSortable()
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object _state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setContentType(java.lang.String contentType)
Set the value of the contentType property. |
void |
setHtmlFilter(java.lang.String htmlFilter)
Set the value of the htmlFilter property. |
void |
setIconAlt(java.lang.String iconAlt)
Set the value of the iconAlt property. |
void |
setIconSrc(java.lang.String iconSrc)
Set the value of the iconSrc property. |
void |
setShowCheckbox(boolean hasCheckbox)
Set the value of the showCheckbox property. |
void |
setSortable(boolean sortable)
|
void |
setSortable(java.lang.String sortable)
|
void |
setStyle(java.lang.String style)
Set the value of the style property. |
void |
setStyleClass(java.lang.String styleClass)
Set the value of the styleClass property. |
void |
setValue(java.lang.Object value)
Set the value of the value property. |
Methods inherited from class com.ibm.xsp.component.UIPanelEx |
---|
_xspCleanTransientData, addAttr, addDojoAttribute, getAttrs, getDir, getDojoAttributes, getDojoType, getOnClientLoad, getOuterStyleClass, getRole, getTagName, getTitle, isDisableOutputTag, setAttrs, setDir, setDisableOutputTag, setDojoAttributes, setDojoType, setOnClientLoad, setOuterStyleClass, setRole, setTagName, setTitle |
Methods inherited from class com.ibm.xsp.component.UIDataPanelBase |
---|
addData, addDataContext, afterEncoding, beforeEncoding, broadcast, encodeEnd, getAcl, getData, getDataContexts, hasUserAccess, initAfterContents, initBeforeContents, invokeOnComponent, isAllowCreateViewPublish, isReadonly, processDecodes, processUpdates, processValidators, publishControlData, queueEvent, revokeControlData, setAcl, setReadonly, visitTree |
Methods inherited from class javax.faces.component.UIPanel |
---|
getFamily |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
_xspGetReadOnlyObj, _xspGetRendererData, _xspRemoveReadOnlyObj, _xspRemoveRendererData, _xspSetIdUnchecked, _xspSetReadOnlyObj, _xspSetRendererData, addFacesListener, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
_xspGetStateId, _xspGetStateMap, _xspRestoreAttribute, _xspRestoreState, _xspSaveState, isVisitable, markInitialState, setControlState |
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 COMPONENT_TYPE
The standard component type for this component.
public static final java.lang.String RENDERER_TYPE
public static final java.lang.String IMAGE_SORT_BOTH
public static final java.lang.String IMAGE_SORT_BOTH_ASCENDING
public static final java.lang.String IMAGE_SORT_BOTH_DESCENDING
public static final java.lang.String IMAGE_SORTED_ASCENDING
public static final java.lang.String IMAGE_RESORTED_ASCENDING
public static final java.lang.String IMAGE_SORTED_DESCENDING
public static final java.lang.String IMAGE_RESORTED_DESCENDING
public static final java.lang.String CHECKBOX_STYLE
Constructor Detail |
---|
public UIViewColumnHeader()
Method Detail |
---|
public java.lang.String getStyleKitFamily()
ThemeControl
The implementation may return different values depending on the configuration of the current control, for example the Button control returns a different value and looks different when it is configured as a cancel button.
getStyleKitFamily
in interface ThemeControl
getStyleKitFamily
in class UIPanelEx
null
themeId corresponding to the
configuration for this type of control in a theme file.public boolean getRendersChildren()
getRendersChildren
in class javax.faces.component.UIComponentBase
public void buildContents(javax.faces.context.FacesContext context, FacesComponentBuilder builder) throws javax.faces.FacesException
FacesComponent
buildContents
in interface FacesComponent
buildContents
in class UIDataPanelBase
javax.faces.FacesException
public boolean isColumnSortable()
public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException
encodeBegin
in class UIDataPanelBase
java.io.IOException
public java.lang.String getSortIcon()
public java.lang.String getSortIconAltText()
public java.lang.String getContentType()
Return the value of the contentType
property. Contents:
String value indicating the type of content to expect, currently HTML and Text are supported.
public java.lang.String getHtmlFilter()
Return the value of the htmlFilter
property. Contents:
Property indicating which Active Content Filtering processor should be used.
public boolean isRendered()
isRendered
in class UIDataPanelBase
public java.lang.String getIconAlt()
Return the value of the iconAlt
property. Contents:
Alternative text to display if the image cannot be displayed.
public java.lang.String getIconSrc()
Return the value of the iconSrc
property. Contents:
url to image, used to display an icon to the left of the column header text.
public java.lang.String getStyle()
Return the value of the style
property. Contents:
CSS style(s) to be applied to the column.
getStyle
in class UIPanelEx
public java.lang.String getStyleClass()
Return the value of the styleClass
property. Contents:
Space-separated list of CSS style class(es) to be applied to the column.
getStyleClass
in class UIPanelEx
public boolean isShowCheckbox()
Return the value of the showCheckbox
property. Contents:
Displays a check box beside the Header (will cause select all on column).
public boolean isSortable()
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object _state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class UIPanelEx
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class UIPanelEx
public void setContentType(java.lang.String contentType)
Set the value of the contentType
property.
public void setHtmlFilter(java.lang.String htmlFilter)
Set the value of the htmlFilter
property.
public void setShowCheckbox(boolean hasCheckbox)
Set the value of the showCheckbox
property.
public void setSortable(java.lang.String sortable)
public void setSortable(boolean sortable)
public void setIconAlt(java.lang.String iconAlt)
Set the value of the iconAlt
property.
public void setIconSrc(java.lang.String iconSrc)
Set the value of the iconSrc
property.
public void setStyle(java.lang.String style)
Set the value of the style
property.
setStyle
in class UIPanelEx
public void setStyleClass(java.lang.String styleClass)
Set the value of the styleClass
property.
setStyleClass
in class UIPanelEx
public java.lang.Object getValue()
Return the value of the value
property. Contents:
String that represents the title of the Column Header.
public void setValue(java.lang.Object value)
Set the value of the value
property.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |