|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.html.HtmlOutputText
org.apache.shale.usecases.rolodex.HeaderSorter
public class HeaderSorter
| Field Summary |
|---|
| Fields inherited from class javax.faces.component.html.HtmlOutputText |
|---|
COMPONENT_TYPE |
| Fields inherited from class javax.faces.component.UIOutput |
|---|
COMPONENT_FAMILY |
| Constructor Summary | |
|---|---|
HeaderSorter()
Sets the renderer type to "org.apache.shale.HeaderSorter". |
|
| Method Summary | |
|---|---|
String |
getAscImage()
Returns the acending image resource location that is relative to the context root. |
String |
getDescImage()
Returns the decending image resource location that is relative to the context root. |
String |
getFamily()
Sets the family to "org.apache.shale.Sorter". |
String |
getSortBy()
Returns a comma delimited list of properties to sort by. |
boolean |
isSortAscending()
Returns true if the model data is sorted in ascending order
defined by the sortBy property. |
void |
restoreState(javax.faces.context.FacesContext facescontext,
Object obj)
Restores the component's state. |
Object |
saveState(javax.faces.context.FacesContext facescontext)
Saves the component's state. |
void |
setAscImage(String string)
Sets the acending image resource location that is relative to the context root. |
void |
setDescImage(String string)
Sets the decending image resource location that is relative to the context root. |
void |
setSortAscending(boolean b)
This setter toggles the collating sequence from ascending to descending. |
void |
setSortBy(String s)
Sets a comma delimited list of properties to sort by. |
boolean |
wasSelected()
Returns true if the component was selected. |
| Methods inherited from class javax.faces.component.html.HtmlOutputText |
|---|
getStyle, getStyleClass, getTitle, isEscape, setEscape, setStyle, setStyleClass, setTitle |
| Methods inherited from class javax.faces.component.UIOutput |
|---|
getConverter, getLocalValue, getValue, setConverter, setValue |
| 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 HeaderSorter()
Sets the renderer type to "org.apache.shale.HeaderSorter".
| Method Detail |
|---|
public String getFamily()
Sets the family to "org.apache.shale.Sorter".
getFamily in class javax.faces.component.UIOutputpublic boolean wasSelected()
Returns true if the component was selected.
public void restoreState(javax.faces.context.FacesContext facescontext,
Object obj)
Restores the component's state.
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.html.HtmlOutputTextpublic Object saveState(javax.faces.context.FacesContext facescontext)
Saves the component's state.
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.html.HtmlOutputTextpublic String getSortBy()
Returns a comma delimited list of properties to sort by. The property names are defined in the bean collection contained by the UIData model.
public void setSortBy(String s)
Sets a comma delimited list of properties to sort by. The property names are defined in the bean collection contained by the UIData model.
public boolean isSortAscending()
Returns true if the model data is sorted in ascending order
defined by the sortBy property.
public void setSortAscending(boolean b)
This setter toggles the collating sequence from ascending to descending.
public String getAscImage()
Returns the acending image resource location that is relative to the context root.
public String getDescImage()
Returns the decending image resource location that is relative to the context root.
public void setAscImage(String string)
Sets the acending image resource location that is relative to the context root.
public void setDescImage(String string)
Sets the decending image resource location that is relative to the context root.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||