Project Wonder 5.0

er.coolcomponents
Class CCTabPanel

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by com.webobjects.woextensions.WOTabPanel
              extended by er.extensions.components.ERXTabPanel
                  extended by er.coolcomponents.CCTabPanel
All Implemented Interfaces:
WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
Direct Known Subclasses:
CCAjaxTabPanel

public class CCTabPanel
extends ERXTabPanel

Tab panel that uses CCSubmitLinkButtons. Allows denial of tab switching. Useful when validation failures occur.

See Also:
Serialized Form
Bindings
tabs a list of objects representing the tabs
           
tabNameKey a string containing a key to apply to tabs to get the title of the tab
           
selectedTab contains the selected tab
           
tabClass CSS class to use for the selected tab
           
nonSelectedTabClass CSS class to use for the unselected tabs
           
submitActionName if this binding is non null, tabs will contain a submit button instead of a regular hyperlink and the action
           
useFormSubmit true, if the form should be submitted before switching, allows denial of switches
           
id CSS id for the wrapper div
           

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
WOComponent._EventLoggingEnabler, WOComponent.Event
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
 
Fields inherited from class com.webobjects.woextensions.WOTabPanel
_nonSelectedBgColor, _selectedTab, _submitActionName, _tabNameKey, _tabs, _undefinedMarker, bgcolor, currentTab
 
Fields inherited from class com.webobjects.appserver.WOComponent
_Extension, _IsEventLoggingEnabled, _keyAssociations
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSValidation
_CLASS
 
Constructor Summary
CCTabPanel(WOContext context)
           
 
Method Summary
 void appendToResponse(WOResponse response, WOContext context)
           
 boolean clickToOpenEnabled(WOResponse response, WOContext context)
          Returns whether or not click-to-open should be enabled for this component.
 boolean dontSubmitForm()
           
 Object nonSelectedTabClass()
           
 Object tabClass()
           
 
Methods inherited from class er.extensions.components.ERXTabPanel
cellTabClass, cellTabImageContainerClass, currentTabNameWithoutSpaces, leftTabImage, nonSelectedTabImageContainerClass, rightTabImage, selectedTabIdentifier, submitString, switchSubmitTab, tabImageContainerClass, tabImageFramework, useLinkForTabSwitch
 
Methods inherited from class com.webobjects.woextensions.WOTabPanel
contentColSpan, currentTabName, hasSubmitAction, isCellShaded, nonSelectedBgColor, rowSpan, selectedTab, selectedTabName, submitActionName, switchTab, synchronizesVariablesWithBindings, tabBgColor, tabNameKey, tabs
 
Methods inherited from class com.webobjects.appserver.WOComponent
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CCTabPanel

public CCTabPanel(WOContext context)
Method Detail

dontSubmitForm

public boolean dontSubmitForm()

nonSelectedTabClass

public Object nonSelectedTabClass()
Overrides:
nonSelectedTabClass in class ERXTabPanel

tabClass

public Object tabClass()
Overrides:
tabClass in class ERXTabPanel

appendToResponse

public void appendToResponse(WOResponse response,
                             WOContext context)
Overrides:
appendToResponse in class ERXTabPanel

clickToOpenEnabled

public boolean clickToOpenEnabled(WOResponse response,
                                  WOContext context)
Returns whether or not click-to-open should be enabled for this component. By default this returns ERXClickToOpenSupport.isEnabled().

Parameters:
response - the response
context - the context
Returns:
whether or not click-to-open is enabled for this component

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.