public class AjaxTabbedPanelTab extends AjaxDynamicElement
for details on CSS and usage
Name | Description |
---|---|
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 |
ERXDynamicElement.ContextData<T>
log
_children
_ConstructorParameters
Constructor and Description |
---|
AjaxTabbedPanelTab(String aName,
NSDictionary associations,
WOElement template) |
Modifier and Type | Method and Description |
---|---|
protected String |
_containerID(WOContext context)
Override this method and return an update container ID this element should react on.
|
WOAssociation |
accesskey() |
protected void |
addRequiredWebResources(WOResponse response,
WOContext context)
Override this method to append the needed scripts for this component.
|
void |
appendToResponse(WOResponse aResponse,
WOContext aContext)
Creates the panes.
|
WOActionResults |
handleRequest(WORequest request,
WOContext context)
The pane content is rendered when an Ajax request is received.
|
WOAssociation |
id() |
WOActionResults |
invokeAction(WORequest request,
WOContext context)
Do nothing if not visible.
|
boolean |
isSelected(WOComponent component) |
boolean |
isVisble(WOComponent component)
Returns current component's value for the isVisible binding.
|
WOAssociation |
name() |
WOAssociation |
parentId() |
Boolean |
refreshesOnSelect(WOComponent component)
Returns current component's value for the refreshOnSelect binding.
|
void |
setId(WOAssociation newID)
Sets the id association so that the AjaxTabbedPanel can provide an id if needed.
|
void |
setIsSelected(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 |
setParentId(WOAssociation aParentId) |
void |
setTabNumber(WOAssociation aTabNumber) |
String |
tabIdInComponent(WOComponent component)
If the id binding is set, then this is used for the id, otherwise the parentId and tabNumber bindings are combined
to make an id.
|
WOAssociation |
tabNumber() |
void |
takeValuesFromRequest(WORequest request,
WOContext context)
Do nothing if not visible.
|
addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, shouldHandleRequest
afterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBinding
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public AjaxTabbedPanelTab(String aName, NSDictionary associations, WOElement template)
public void appendToResponse(WOResponse aResponse, WOContext aContext)
appendToResponse
in class AjaxDynamicElement
aResponse
- the current responseaContext
- context of the transactionpublic void takeValuesFromRequest(WORequest request, WOContext context)
takeValuesFromRequest
in class com.webobjects.appserver._private.WODynamicGroup
public WOActionResults invokeAction(WORequest request, WOContext context)
invokeAction
in class AjaxDynamicElement
request
- the current requestcontext
- context of the transactionpublic boolean isSelected(WOComponent component)
component
- the component this is being rendered intrue
if this pane is the selected onepublic void setIsSelected(WOComponent component, boolean isTabSelected)
component
- the component this is being rendered inisTabSelected
- true is this is being rendered as the selected tabprotected void addRequiredWebResources(WOResponse response, WOContext context)
AjaxDynamicElement
addRequiredWebResources
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionpublic WOActionResults handleRequest(WORequest request, WOContext context)
handleRequest
in interface IAjaxElement
handleRequest
in class AjaxDynamicElement
request
- the current requestcontext
- context of the transactionprotected String _containerID(WOContext context)
AjaxDynamicElement
_containerID
in class AjaxDynamicElement
context
- WOContext response is being returned inpublic String tabIdInComponent(WOComponent component)
component
- for value lookupspublic WOAssociation id()
public void setId(WOAssociation newID)
newID
- the association to use to get the HTML id attributepublic WOAssociation name()
public Boolean refreshesOnSelect(WOComponent component)
component
- the component this is being rendered inpublic boolean isVisble(WOComponent component)
component
- the component this is being rendered inpublic WOAssociation accesskey()
public void setParentId(WOAssociation aParentId)
public WOAssociation parentId()
public void setTabNumber(WOAssociation aTabNumber)
public WOAssociation tabNumber()
Copyright © 2002 – 2024 Project Wonder.