org.kuali.rice.krad.uif.control
Interface Control
- All Superinterfaces:
- Component, Configurable, org.springframework.core.Ordered, ScriptEventSupport, Serializable
- All Known Implementing Classes:
- CheckboxControl, CheckboxGroupControl, ControlBase, FileControl, GroupControl, HiddenControl, MultiValueControlBase, RadioGroupControl, SelectControl, SpinnerControl, TextAreaControl, TextControl, UserControl
public interface Control
- extends Component
Represents an interactive element in the UI (typically an HTML control)
Each control that can be rendered in the UIF should be an implement the
Control
interface. The control is a regular component, thus has
a corresponding template that will render the control for the UI. Controls
provide the mechanism for gathering data from the User or for the User to
initiate an action. HTML controls must be rendered within a Form
element.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Method Summary |
String |
getDisabledReason()
If the control is disabled, gives a reason for why which will be displayed as a tooltip
on the control |
int |
getTabIndex()
Unique index of the control within the tab order |
boolean |
isDisabled()
Indicates whether the control is disabled (doesn't allow input) |
void |
setDisabled(boolean disabled)
Setter for the disabled indicator |
void |
setDisabledReason(String disabledReason)
Setter for the disabled reason text |
void |
setTabIndex(int tabIndex)
Setter for the controls tab order index |
Methods inherited from interface org.kuali.rice.krad.uif.component.Component |
addStyleClass, appendToStyle, getColSpan, getComponentModifiers, getComponentOptions, getComponentOptionsJSString, getComponentPrototypes, getComponentSecurity, getComponentsForLifecycle, getComponentTypeName, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getFactoryId, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshWhenChanged, getRefreshWhenChangedControlNames, getRenderOutput, getRequired, getRowSpan, getStyle, getStyleClasses, getTemplate, getTitle, isHidden, isPersistInSession, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefresh, isRefreshedByAction, isRender, isResetDataOnRefresh, isSelfRendered, performApplyModel, performFinalize, performInitialization, pushAllToContext, pushObjectToContext, setColSpan, setComponentModifiers, setComponentOptions, setComponentOptionsJSString, setComponentSecurity, setConditionalRefresh, setContext, setFactoryId, setHidden, setId, setOrder, setPersistInSession, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefresh, setRefreshedByAction, setRefreshWhenChanged, setRender, setRenderOutput, setRequired, setResetDataOnRefresh, setRowSpan, setSelfRendered, setStyle, setStyleClasses, setTemplate, setTitle |
Methods inherited from interface org.kuali.rice.krad.uif.component.ScriptEventSupport |
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getSupportsOnBlur, getSupportsOnChange, getSupportsOnClick, getSupportsOnClose, getSupportsOnDblClick, getSupportsOnDocumentReady, getSupportsOnFocus, getSupportsOnKeyDown, getSupportsOnKeyPress, getSupportsOnKeyUp, getSupportsOnLoad, getSupportsOnMouseDown, getSupportsOnMouseMove, getSupportsOnMouseOut, getSupportsOnMouseOver, getSupportsOnMouseUp, getSupportsOnSubmit, getSupportsOnUnload, setOnBlurScript, setOnDocumentReadyScript, setOnLoadScript |
getTabIndex
int getTabIndex()
- 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.
- Returns:
- int the tab index for the control
setTabIndex
void setTabIndex(int tabIndex)
- Setter for the controls tab order index
- Parameters:
tabIndex
-
isDisabled
boolean isDisabled()
- Indicates whether the control is disabled (doesn't allow input)
- Returns:
- boolean true if the control is disabled, false if not
setDisabled
void setDisabled(boolean disabled)
- Setter for the disabled indicator
- Parameters:
disabled
-
getDisabledReason
String getDisabledReason()
- If the control is disabled, gives a reason for why which will be displayed as a tooltip
on the control
- Returns:
- String disabled reason text
- See Also:
#isDisabled()}
setDisabledReason
void setDisabledReason(String disabledReason)
- Setter for the disabled reason text
- Parameters:
disabledReason
-
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.