|
||||||||||
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.UICommand
com.mycompany.jsf.component.UITabLabel
This class is a JSF component that represents a clickable tab control label. It must be used as a facet named "label" of a component representing a tab within a UIPanel with a "com.mycompany.jsf.TabbedRenderer". The component is rendered by the "javax.faces.Link" renderer type by default, using its child components as the link element body. It handles the ActionEvent it fires itself by setting the "rendered" property for its parent "true" and to "false" for the parents siblings.
Nested Class Summary |
Nested classes inherited from class javax.faces.component.UIComponentBase |
|
Field Summary | |
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
Fields inherited from class javax.faces.component.UICommand |
|
Fields inherited from class javax.faces.component.UIComponentBase |
|
Constructor Summary | |
UITabLabel()
Creates an instance and sets the renderer type to "javax.faces.Link". |
Method Summary | |
void |
addActionListener(javax.faces.event.ActionListener listener)
Throws "UnsupportedOperationException" to disable the use of ActionListener instances. |
void |
broadcast(javax.faces.event.FacesEvent event)
Disables all standard UICommand event handling and calls processAction() to process the event if it's an ActionEvent. |
javax.faces.el.MethodBinding |
getAction()
Returns "null", because this component can't be configured with an action method. |
javax.faces.el.MethodBinding |
getActionListener()
Returns "null", because this component can't be configured with an action listener method. |
javax.faces.event.ActionListener[] |
getActionListeners()
Returns an empty array, because this component can't be configured with ActionListener instances. |
java.lang.String |
getFamily()
Returns the COMPONENT_TYPE value. |
private void |
processAction(javax.faces.event.ActionEvent event)
Locates the component's grandparent (holding all components acting as tabs), gets all its children (the tab components), and sets the "rendered" property to "true" for this component's parenent and to "false" for all others. |
void |
removeActionListener(javax.faces.event.ActionListener listener)
Throws "UnsupportedOperationException" to disable the use of ActionListener instances. |
void |
setAction(javax.faces.el.MethodBinding action)
Throws "UnsupportedOperationException" to disable the use of an action method. |
void |
setActionListener(javax.faces.el.MethodBinding actionListener)
Throws "UnsupportedOperationException" to disable the use of an action listener method. |
Methods inherited from class javax.faces.component.UICommand |
getValue, isImmediate, queueEvent, restoreState, saveState, setImmediate, setValue |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, 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, 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 |
Field Detail |
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
Constructor Detail |
public UITabLabel()
Method Detail |
public java.lang.String getFamily()
public void broadcast(javax.faces.event.FacesEvent event)
public javax.faces.el.MethodBinding getAction()
public void setAction(javax.faces.el.MethodBinding action)
public javax.faces.el.MethodBinding getActionListener()
public void setActionListener(javax.faces.el.MethodBinding actionListener)
public void addActionListener(javax.faces.event.ActionListener listener)
public javax.faces.event.ActionListener[] getActionListeners()
public void removeActionListener(javax.faces.event.ActionListener listener)
private void processAction(javax.faces.event.ActionEvent event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |