|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tonbeller.wcf.tabbed.TabbedHandler
A NodeHandler
that is associated with a <tabbed> element
and manages visibility of its <panel> children.
Constructor Summary | |
TabbedHandler()
|
Method Summary | |
void |
addPanelChangedListener(PanelChangeListener l)
|
void |
destroy(javax.servlet.http.HttpSession session)
|
protected void |
fireChanged(org.w3c.dom.Element currentPanel)
|
NodeHandler |
getPanelHandler(java.lang.String panelId)
returns the NodeHandler for the panel or null if there was no NodeHandler. |
void |
initialize(RequestContext context,
XmlComponent comp,
org.w3c.dom.Element tabbed)
initializes the handler |
void |
removePanelChangedListener(PanelChangeListener l)
|
void |
render(RequestContext context)
does nothing |
void |
request(RequestContext context)
notified by a Dispatcher for specific HTTP Requests |
void |
setCurrentPanel(RequestContext context,
org.w3c.dom.Element newCurrentPanel)
sets the current panel. |
void |
setHidden(RequestContext context,
org.w3c.dom.Element panel,
boolean hidden)
hides or unhides the panel with panelId. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TabbedHandler()
Method Detail |
public void initialize(RequestContext context, XmlComponent comp, org.w3c.dom.Element tabbed)
NodeHandler
initialize
in interface NodeHandler
context
- the current requesttabbed
- the element that this handler is responsible forpublic void destroy(javax.servlet.http.HttpSession session)
destroy
in interface NodeHandler
public void request(RequestContext context) throws java.lang.Exception
RequestListener
request
in interface RequestListener
context
- the current request
java.lang.Exception
public void render(RequestContext context) throws java.lang.Exception
render
in interface NodeHandler
java.lang.Exception
public void addPanelChangedListener(PanelChangeListener l)
public void removePanelChangedListener(PanelChangeListener l)
protected void fireChanged(org.w3c.dom.Element currentPanel)
public void setCurrentPanel(RequestContext context, org.w3c.dom.Element newCurrentPanel)
context
- public void setHidden(RequestContext context, org.w3c.dom.Element panel, boolean hidden)
role
attribute, the call
is ignored unless the current user is a member of that role.
context
- public NodeHandler getPanelHandler(java.lang.String panelId)
handler
attribute in the
XML file describing the form.
panelId
- id attribute of the panel element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |