Methods Summary |
---|
public void | addActionListener(javax.faces.event.ActionListener listener)Throws "UnsupportedOperationException" to disable the use
of ActionListener instances.
throw new UnsupportedOperationException();
|
public 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.
if (event instanceof ActionEvent) {
processAction((ActionEvent) event);
}
|
public javax.faces.el.MethodBinding | getAction()Returns "null", because this component can't be configured
with an action method.
return null;
|
public javax.faces.el.MethodBinding | getActionListener()Returns "null", because this component can't be configured
with an action listener method.
return null;
|
public javax.faces.event.ActionListener[] | getActionListeners()Returns an empty array, because this component can't be
configured with ActionListener instances.
return new ActionListener[0];
|
public java.lang.String | getFamily()Returns the COMPONENT_TYPE value.
return COMPONENT_FAMILY;
|
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.
UIComponent parent = getParent();
UIComponent panelTabbed = parent.getParent();
Iterator i = panelTabbed.getChildren().iterator();
while (i.hasNext()) {
UIComponent tab = (UIComponent) i.next();
if (tab.equals(parent)) {
tab.setRendered(true);
}
else {
tab.setRendered(false);
}
}
|
public void | removeActionListener(javax.faces.event.ActionListener listener)Throws "UnsupportedOperationException" to disable the use
of ActionListener instances.
throw new UnsupportedOperationException();
|
public void | setAction(javax.faces.el.MethodBinding action)Throws "UnsupportedOperationException" to disable the use
of an action method.
throw new UnsupportedOperationException();
|
public void | setActionListener(javax.faces.el.MethodBinding actionListener)Throws "UnsupportedOperationException" to disable the use
of an action listener method.
throw new UnsupportedOperationException();
|