Project Wonder 5.0

er.ajax
Class AjaxTabbedPanelTab

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by er.ajax.AjaxDynamicElement
                  extended by er.ajax.AjaxTabbedPanelTab
All Implemented Interfaces:
IAjaxElement

public class AjaxTabbedPanelTab
extends AjaxDynamicElement

This implements the tab contents of a tabbed panel display as an unordered list (UL and LI elements). This is to be used inside of a AjaxTabbedPanel. The contents can be anything.

See Also:
for details on CSS and usage
Author:
Chuck Hill
Bindings
name required, String the text shown in the tab that is clicked on to select the tab
           
isSelected optional, boolean true if this tab is initially selected when the page is first rendered, defaults to false. If present and can be set, is set to true when this tab is selected and to false when it is no longer the selected tab
           
id optional, String the id attribute of the A element selecting this panel, [id]_panel is the id of LI element implementing this tab
           
refreshOnSelect optional, if true the tab content will reload each time the tab is selected. Defaults to false
           
onLoad optional, String JavaScript to execute after the tab loads
           
isVisible optional, default is true, indicates if tab and panel should be displayed
           
accesskey optional, The accesskey for this tab
           

Field Summary
 
Fields inherited from class er.ajax.AjaxDynamicElement
log
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
AjaxTabbedPanelTab(java.lang.String aName, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement template)
           
 
Method Summary
protected  java.lang.String _containerID(com.webobjects.appserver.WOContext context)
           
 com.webobjects.appserver.WOAssociation accesskey()
           
protected  void addRequiredWebResources(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
          Override this method to append the needed scripts for this component.
 void appendToResponse(com.webobjects.appserver.WOResponse aResponse, com.webobjects.appserver.WOContext aContext)
          Creates the panes.
 com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          The pane content is rendered when an Ajax request is received.
 com.webobjects.appserver.WOAssociation id()
           
 com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          Do nothing if not visible.
 boolean isSelected(com.webobjects.appserver.WOComponent component)
           
 boolean isVisble(com.webobjects.appserver.WOComponent component)
          Returns current component's value for the isVisible binding.
 com.webobjects.appserver.WOAssociation name()
           
 java.lang.Boolean refreshesOnSelect(com.webobjects.appserver.WOComponent component)
          Returns current component's value for the refreshOnSelect binding.
 void setId(com.webobjects.appserver.WOAssociation newID)
          Sets the id association so that the AjaxTabbedPanel can provide an id if needed.
 void setIsSelected(com.webobjects.appserver.WOComponent component, boolean isTabSelected)
          If present and settable, sets the isSelected association to true for this tab when it selected and to false when it is no longer the selected tab.
 void takeValuesFromRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          Do nothing if not visible.
 
Methods inherited from class er.ajax.AjaxDynamicElement
addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, setValueForBinding, shouldHandleRequest, stringValueForBinding, valueForBinding, valueForBinding
 
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AjaxTabbedPanelTab

public AjaxTabbedPanelTab(java.lang.String aName,
                          com.webobjects.foundation.NSDictionary associations,
                          com.webobjects.appserver.WOElement template)
Method Detail

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse aResponse,
                             com.webobjects.appserver.WOContext aContext)
Creates the panes.

Overrides:
appendToResponse in class AjaxDynamicElement

takeValuesFromRequest

public void takeValuesFromRequest(com.webobjects.appserver.WORequest request,
                                  com.webobjects.appserver.WOContext context)
Do nothing if not visible.

Overrides:
takeValuesFromRequest in class AjaxDynamicElement

invokeAction

public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest request,
                                                             com.webobjects.appserver.WOContext context)
Do nothing if not visible.

Overrides:
invokeAction in class AjaxDynamicElement

isSelected

public boolean isSelected(com.webobjects.appserver.WOComponent component)
Parameters:
component - the component this is being rendered in
Returns:
true if this pane is the selected one

setIsSelected

public void setIsSelected(com.webobjects.appserver.WOComponent component,
                          boolean isTabSelected)
If present and settable, sets the isSelected association to true for this tab when it selected and to false when it is no longer the selected tab.

Parameters:
component - the component this is being rendered in
isTabSelected - true is this is being rendered as the selected tab

addRequiredWebResources

protected void addRequiredWebResources(com.webobjects.appserver.WOResponse response,
                                       com.webobjects.appserver.WOContext context)
Description copied from class: AjaxDynamicElement
Override this method to append the needed scripts for this component.

Specified by:
addRequiredWebResources in class AjaxDynamicElement

handleRequest

public com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request,
                                                              com.webobjects.appserver.WOContext context)
The pane content is rendered when an Ajax request is received.

Specified by:
handleRequest in interface IAjaxElement
Specified by:
handleRequest in class AjaxDynamicElement
Returns:
the children rendered as HTML

_containerID

protected java.lang.String _containerID(com.webobjects.appserver.WOContext context)
Overrides:
_containerID in class AjaxDynamicElement
Parameters:
context - WOContext response is being returned in
Returns:
ID to cache this Ajax response under

id

public com.webobjects.appserver.WOAssociation id()
Returns:
association for HTML id attribute

setId

public void setId(com.webobjects.appserver.WOAssociation newID)
Sets the id association so that the AjaxTabbedPanel can provide an id if needed.

Parameters:
newID - the association to use to get the HTML id attribute

name

public com.webobjects.appserver.WOAssociation name()
Returns:
association for HTML id attribute.

refreshesOnSelect

public java.lang.Boolean refreshesOnSelect(com.webobjects.appserver.WOComponent component)
Returns current component's value for the refreshOnSelect binding.

Parameters:
component - the component this is being rendered in
Returns:
Boolean value for refreshOnSelect binding, Boolean.FALSE if unset

isVisble

public boolean isVisble(com.webobjects.appserver.WOComponent component)
Returns current component's value for the isVisible binding.

Parameters:
component - the component this is being rendered in
Returns:
Boolean value for isVisible binding, Boolean.TRUE if unset

accesskey

public com.webobjects.appserver.WOAssociation accesskey()
Returns:
WOAssociation for the accesskey binding

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.