Interface Control

All Superinterfaces:
Cloneable, Component, ContentElement, Copyable, DictionaryBean, LifecycleElement, Ordered, org.springframework.core.Ordered, ScriptEventSupport, Serializable, UifDictionaryBean
All Known Subinterfaces:
SelectControl, TextControl
All Known Implementing Classes:
CheckboxControl, CheckboxGroupControl, ControlBase, FileControl, GroupControl, HiddenControl, MultiValueControlBase, OptionListControl, PasswordControl, RadioGroupControl, SelectControlBase, SpinnerControl, TextAreaControl, TextControlBase, UserControl

public interface Control extends ContentElement
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)
  • Method Details

    • 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:
    • setDisabledReason

      void setDisabledReason(String disabledReason)
      Setter for the disabled reason text
      Parameters:
      disabledReason -