Project Wonder 5.0

er.ajax
Class AjaxTabbedPanel

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.AjaxTabbedPanel
All Implemented Interfaces:
IAjaxElement

public class AjaxTabbedPanel
extends AjaxDynamicElement

This implements the tabs and the main control of a tabbed panel display as an unordered list (UL and LI elements). The tab contents go in AjaxTabbedPanel components contained within this component. The tab contents are loaded on demand so only the selected tab is rendered when the page is displayed. If tabs can take a while to load, a hidden div containing a "working" message can temporarily replace the panel content while it loads.

CSS Classes Used by AjaxTabbedPanel and AjaxTabbedPanelTab

Class Name Used For
ajaxTabbedPanel The UL containing the tabs.
ajaxTabbedPanelTab-selected The LI representing the selected tab and the A element that is the clickable title.
ajaxTabbedPanelTab-unselected The LI representing the selected tab(s) and the A element that is the clickable title.
ajaxTabbedPanelPanes The UL containing the panels (panes).
ajaxTabbedPanelPane-selected The LI representing the selected panel.
ajaxTabbedPanelPane-unselected The LI representing the unselected panel(s).

Author:
Chuck Hill
Bindings
id required, String the id of the UL that wraps the tabs
           
busyDiv optional, String the id of a div that should be shown when a tab is loading
           
onLoad optional, String JavaScript to execute after the whole tabbed panel loads
           
onSelect optional, String JavaScript to execute after a different tab is selected. This will not get called when this is first rendered. Use onLoad if you need that.
           

Field Summary
 
Fields inherited from class er.ajax.AjaxDynamicElement
log
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
AjaxTabbedPanel(java.lang.String name, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement template)
           
 
Method Summary
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 response, com.webobjects.appserver.WOContext context)
          Creates the tabs and pane control.
 com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
          Override this method to return the response for an Ajax request.
 
Methods inherited from class er.ajax.AjaxDynamicElement
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, invokeAction, setValueForBinding, shouldHandleRequest, stringValueForBinding, takeValuesFromRequest, 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

AjaxTabbedPanel

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

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse response,
                             com.webobjects.appserver.WOContext context)
Creates the tabs and pane control.

Overrides:
appendToResponse in class AjaxDynamicElement

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)
Description copied from class: AjaxDynamicElement
Override this method to return the response for an Ajax request.

Specified by:
handleRequest in interface IAjaxElement
Specified by:
handleRequest in class AjaxDynamicElement

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

Copyright © 2002 – 2007 Project Wonder.