|
||||||||||
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.UIInput
com.sun.webui.jsf.component.WebuiInput
com.sun.webui.jsf.component.TabSet
public class TabSet
A set of one or more tabs. A TabSet is a naming container which should contain
only Tab
components. The currently selected tab is specified via the
selected
property, which may be bound to a model value. Action listeners
may be registered individually with a Tab; or, an action listener may be
registered with the containing tabSet, in which case it is notified of all tab
selection actions.
TabSet implements EditableValueHolder
, but it
diverges significantly from the behavior of a typical editable value holder. Note
that the selected
property is an alias for the value
property.
Field Summary |
---|
Fields inherited from class javax.faces.component.UIInput |
---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
TabSet()
Create a new TabSet. |
Method Summary | |
---|---|
Tab |
findChildTab(java.lang.String tabId)
Returns the tab with the id specified that is a child of this tabSet. |
static Tab |
findChildTab(Tab tab,
java.lang.String tabId)
Returns the tab with the id specified that is a child of the tab specified. |
javax.el.MethodExpression |
getActionListenerExpression()
Get the method expression that identifies a method that handles the action event fired when one of this tab set's tabs is used to submit the page. |
javax.faces.convert.Converter |
getConverter()
|
java.lang.String |
getFamily()
|
java.lang.String |
getSelected()
The id of the selected tab. |
Tab |
getSelectedTab()
Returns this tab set's tab descendant with id equal to the value of the selected property. |
java.lang.String |
getStyle()
CSS style(s) to be applied to the outermost HTML element when this component is rendered. |
java.lang.String |
getStyleClass()
CSS style class(es) to be applied to the outermost HTML element when this component is rendered. |
javax.el.MethodExpression |
getValidatorExpression()
Get the validatorExpression . |
java.lang.Object |
getValue()
The current value of this component. |
javax.el.ValueExpression |
getValueExpression(java.lang.String name)
|
boolean |
isLastSelectedChildSaved()
Returns true if the tabs in this tab set should remember which of their tab children was last selected. |
boolean |
isLite()
Returns true if the tabs should render in a visually lighter style, with reduced shading and bolding. |
boolean |
isMini()
Set this attribute to true in a first level tab set, to create tabs that have the smaller "mini" tab style. |
boolean |
isRequired()
|
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 |
setActionListenerExpression(javax.el.MethodExpression actionListenerExpression)
Set the method expression that identifies a method that handles the action event fired when one of this tab set's tabs is used to submit the page. |
void |
setLastSelectedChildSaved(boolean lastSelectedChildSaved)
Set to true if the tabs in this tab set should remember which of their tab children was last selected. |
void |
setLite(boolean lite)
Set to true to render the tabs in a visually lighter style, with reduced shading and bolding. |
void |
setMini(boolean mini)
Set this attribute to true in a first level tab set, to create tabs that have the smaller "mini" tab style. |
void |
setSelected(java.lang.String selected)
The id of the selected tab. |
void |
setStyle(java.lang.String style)
CSS style(s) to be applied to the outermost HTML element when this component is rendered. |
void |
setStyleClass(java.lang.String styleClass)
CSS style class(es) to be applied to the outermost HTML element when this component is rendered. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
|
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 |
validate(javax.faces.context.FacesContext context)
Marks this tab set as valid only if all input component children of the currently selected tab are valid. |
Methods inherited from class com.sun.webui.jsf.component.WebuiInput |
---|
broadcast, getValidator, getValueChangeListener, getValueChangeListenerExpression, processDecodes, processUpdates, processValidators, setConverter, setId, setImmediate, setRendered, setRequired, setValidatorExpression, setValueChangeListenerExpression |
Methods inherited from class javax.faces.component.UIInput |
---|
addValidator, addValueChangeListener, decode, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidatorMessage, getValidators, getValueChangeListeners, isImmediate, isLocalValueSet, isValid, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setLocalValueSet, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel |
Methods inherited from class javax.faces.component.UIOutput |
---|
getLocalValue |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setParent, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getContainerClientId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.ValueHolder |
---|
getLocalValue |
Constructor Detail |
---|
public TabSet()
Method Detail |
---|
public java.lang.String getFamily()
getFamily
in class javax.faces.component.UIInput
public javax.el.ValueExpression getValueExpression(java.lang.String name)
getValueExpression
in class javax.faces.component.UIComponentBase
public void setValueExpression(java.lang.String name, javax.el.ValueExpression binding)
setValueExpression
in class javax.faces.component.UIComponentBase
public javax.faces.convert.Converter getConverter()
getConverter
in interface javax.faces.component.ValueHolder
getConverter
in class javax.faces.component.UIOutput
public boolean isRequired()
isRequired
in interface javax.faces.component.EditableValueHolder
isRequired
in class javax.faces.component.UIInput
public javax.el.MethodExpression getValidatorExpression()
WebuiInput
Get the validatorExpression
.
The corresponding validator will be called from the
validateValue
method.
getValidatorExpression
in class WebuiInput
public java.lang.Object getValue()
getValue
in interface javax.faces.component.ValueHolder
getValue
in class javax.faces.component.UIOutput
public javax.el.MethodExpression getActionListenerExpression()
public void setActionListenerExpression(javax.el.MethodExpression actionListenerExpression)
MethodExpressionActionListener.processAction(javax.faces.event.ActionEvent)
. The class that
defines the method must implement the java.io.Serializable
interface or javax.faces.component.StateHolder
interface.
public boolean isLastSelectedChildSaved()
public void setLastSelectedChildSaved(boolean lastSelectedChildSaved)
public boolean isLite()
public void setLite(boolean lite)
public boolean isMini()
public void setMini(boolean mini)
public java.lang.String getSelected()
public void setSelected(java.lang.String selected)
getSelected()
public Tab getSelectedTab()
public java.lang.String getStyle()
public void setStyle(java.lang.String style)
getStyle()
public java.lang.String getStyleClass()
public void setStyleClass(java.lang.String styleClass)
getStyleClass()
public boolean isVisible()
public void setVisible(boolean visible)
isVisible()
public void validate(javax.faces.context.FacesContext context)
validate
in class javax.faces.component.UIInput
public void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class WebuiInput
public java.lang.Object saveState(javax.faces.context.FacesContext _context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class WebuiInput
public Tab findChildTab(java.lang.String tabId)
public static Tab findChildTab(Tab tab, java.lang.String tabId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |