org.kuali.rice.krad.uif.control
Class ControlBase

java.lang.Object
  extended by org.kuali.rice.krad.uif.core.ComponentBase
      extended by org.kuali.rice.krad.uif.control.ControlBase
All Implemented Interfaces:
Serializable, Control, Component, ScriptEventSupport, org.springframework.core.Ordered
Direct Known Subclasses:
CheckboxControl, FileControl, HiddenControl, MultiValueControlBase, TextAreaControl, TextControl

public abstract class ControlBase
extends ComponentBase
implements Control

Base class for all Control implementations

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Control, Serialized Form

Field Summary
private static long serialVersionUID
           
private  int tabIndex
           
 
Fields inherited from interface org.kuali.rice.krad.uif.core.Ordered
INITIAL_ORDER_VALUE
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ControlBase()
           
 
Method Summary
 String getComponentTypeName()
          The name for the component type
 boolean getSupportsOnBlur()
          Indicates whether the component supports the onBlur event
 boolean getSupportsOnChange()
          Indicates whether the component supports the onChange event
 boolean getSupportsOnClick()
          Indicates whether the component supports the onClick event
 boolean getSupportsOnDblClick()
          Indicates whether the component supports the onDblClick event
 boolean getSupportsOnFocus()
          Indicates whether the component supports the onFocus event
 int getTabIndex()
          Unique index of the control within the tab order
 void setTabIndex(int tabIndex)
           
 
Methods inherited from class org.kuali.rice.krad.uif.core.ComponentBase
addStyleClass, appendToStyle, getAlign, getBaseId, getColSpan, getComponentModifiers, getComponentOptions, getComponentOptionsJSString, getConditionalColSpan, getConditionalReadOnly, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getConditionalRender, getConditionalRequired, getConditionalRowSpan, getContext, getEventCode, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getNestedComponents, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertiesForReferenceCopy, getPropertyExpressions, getPropertyReplacers, getRefreshWhenChanged, getRefreshWhenChangedControlNames, getRenderOutput, getRequired, getRowSpan, getStyle, getStyleClasses, getStyleClassesAsString, getSupportsOnClose, getSupportsOnDocumentReady, getSupportsOnKeyDown, getSupportsOnKeyPress, getSupportsOnKeyUp, getSupportsOnLoad, getSupportsOnMouseDown, getSupportsOnMouseMove, getSupportsOnMouseOut, getSupportsOnMouseOver, getSupportsOnMouseUp, getSupportsOnSubmit, getSupportsOnUnload, getTemplate, getTitle, getValign, getWidth, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefresh, isRender, isSelfRendered, isSkipInTabOrder, performApplyModel, performFinalize, performInitialization, pushObjectToContext, setAlign, setBaseId, setColSpan, setComponentModifiers, setComponentOptions, setConditionalColSpan, setConditionalReadOnly, setConditionalRefresh, setConditionalRender, setConditionalRequired, setConditionalRowSpan, setContext, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setHidden, setId, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyExpressions, setPropertyReplacers, setReadOnly, setRefresh, setRefreshWhenChanged, setRender, setRender, setRenderOutput, setRequired, setRowSpan, setSelfRendered, setSkipInTabOrder, setStyle, setStyleClasses, setTemplate, setTitle, setValign, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.uif.core.Component
addStyleClass, appendToStyle, getBaseId, getColSpan, getComponentModifiers, getComponentOptions, getConditionalReadOnly, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getConditionalRender, getContext, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getNestedComponents, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertiesForReferenceCopy, getPropertyReplacers, getRefreshWhenChanged, getRefreshWhenChangedControlNames, getRenderOutput, getRequired, getRowSpan, getStyle, getStyleClasses, getTemplate, getTitle, isHidden, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefresh, isRender, isSelfRendered, performApplyModel, performFinalize, performInitialization, pushObjectToContext, setBaseId, setColSpan, setComponentModifiers, setComponentOptions, setConditionalReadOnly, setConditionalRefresh, setConditionalRender, setContext, setHidden, setId, setOrder, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefresh, setRefreshWhenChanged, setRender, setRenderOutput, setRequired, setRowSpan, setSelfRendered, setStyle, setStyleClasses, setTemplate, setTitle
 
Methods inherited from interface org.kuali.rice.krad.uif.core.ScriptEventSupport
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getSupportsOnClose, getSupportsOnDocumentReady, getSupportsOnKeyDown, getSupportsOnKeyPress, getSupportsOnKeyUp, getSupportsOnLoad, getSupportsOnMouseDown, getSupportsOnMouseMove, getSupportsOnMouseOut, getSupportsOnMouseOver, getSupportsOnMouseUp, getSupportsOnSubmit, getSupportsOnUnload, setOnBlurScript
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

tabIndex

private int tabIndex
Constructor Detail

ControlBase

public ControlBase()
Method Detail

getComponentTypeName

public final String getComponentTypeName()
Description copied from interface: Component
The name for the component type

This is used within the rendering layer to pass the component instance into the template. The component instance is exported under the name given by this method.

Specified by:
getComponentTypeName in interface Component
Returns:
String type name
See Also:
Component.getComponentTypeName()

getTabIndex

public int getTabIndex()
Description copied from interface: Control
Unique index of the control within the tab order

Tab index provides a way to set the order users will tab through the controls. The control with index 1 will receive focus when the page is rendered. Tabing from the field will then take the user to the control with index 2, then index 3, and so on.

Specified by:
getTabIndex in interface Control
Returns:
int the tab index for the control

setTabIndex

public void setTabIndex(int tabIndex)

getSupportsOnChange

public boolean getSupportsOnChange()
Description copied from interface: ScriptEventSupport
Indicates whether the component supports the onChange event

Specified by:
getSupportsOnChange in interface ScriptEventSupport
Overrides:
getSupportsOnChange in class ComponentBase
Returns:
boolean true if event is supported, false if the event is not supported
See Also:
ScriptEventSupport.getSupportsOnChange()

getSupportsOnBlur

public boolean getSupportsOnBlur()
Description copied from interface: ScriptEventSupport
Indicates whether the component supports the onBlur event

Specified by:
getSupportsOnBlur in interface ScriptEventSupport
Overrides:
getSupportsOnBlur in class ComponentBase
Returns:
boolean true if event is supported, false if the event is not supported
See Also:
ScriptEventSupport.getSupportsOnBlur()

getSupportsOnClick

public boolean getSupportsOnClick()
Description copied from interface: ScriptEventSupport
Indicates whether the component supports the onClick event

Specified by:
getSupportsOnClick in interface ScriptEventSupport
Overrides:
getSupportsOnClick in class ComponentBase
Returns:
boolean true if event is supported, false if the event is not supported
See Also:
ScriptEventSupport.getSupportsOnClick()

getSupportsOnDblClick

public boolean getSupportsOnDblClick()
Description copied from interface: ScriptEventSupport
Indicates whether the component supports the onDblClick event

Specified by:
getSupportsOnDblClick in interface ScriptEventSupport
Overrides:
getSupportsOnDblClick in class ComponentBase
Returns:
boolean true if event is supported, false if the event is not supported
See Also:
ScriptEventSupport.getSupportsOnDblClick()

getSupportsOnFocus

public boolean getSupportsOnFocus()
Description copied from interface: ScriptEventSupport
Indicates whether the component supports the onFocus event

Specified by:
getSupportsOnFocus in interface ScriptEventSupport
Overrides:
getSupportsOnFocus in class ComponentBase
Returns:
boolean true if event is supported, false if the event is not supported
See Also:
ScriptEventSupport.getSupportsOnFocus()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.