Interface LabelDisplayableComponent

All Superinterfaces:
Component, DepictedObject, Displayable, InfoModel, LabelModel, Model, PresentationModel, com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable
All Known Subinterfaces:
ButtonControl, LinkControl, Menu, SelectButtonControl, SelectLinkControl, ToolButtonControl
All Known Implementing Classes:
AbstractActionControl, AbstractActionValueControl, AbstractBooleanSelectActionControl, AbstractButtonControl, AbstractLinkControl, AbstractMenu, AbstractSelectActionControl, AbstractSelectActionValueControl, AccordionMenu, BooleanSelectButton, BooleanSelectLink, BooleanSelectToolButton, Button, DropMenu, HeadingLink, ImageBooleanSelectActionControl, Link, SelectButton, SelectLink, TaskStateSelectLink, Toolbar, ToolButton, ValueSelectButton, ValueSelectLink

public interface LabelDisplayableComponent extends Component
A component that allows its label to be displayed.
Author:
Garret Wilson
  • Field Details

    • ICON_DISPLAYED_PROPERTY

      static final String ICON_DISPLAYED_PROPERTY
      The bound property of whether the icon is displayed or has no representation, taking up no space.
    • LABEL_DISPLAYED_PROPERTY

      static final String LABEL_DISPLAYED_PROPERTY
      The bound property of whether the label is displayed or has no representation, taking up no space.
  • Method Details

    • isIconDisplayed

      boolean isIconDisplayed()
      Returns:
      Whether the icon is displayed.
    • setIconDisplayed

      void setIconDisplayed(boolean newIconDisplayed)
      Sets whether the icon is displayed. This is a bound property of type Boolean.
      Parameters:
      newIconDisplayed - true if the icon should be displayed, else false if the icon should not be displayed and take up no space.
      See Also:
    • isLabelDisplayed

      boolean isLabelDisplayed()
      Returns:
      Whether the label is displayed.
    • setLabelDisplayed

      void setLabelDisplayed(boolean newLabelDisplayed)
      Sets whether the label is displayed. This is a bound property of type Boolean.
      Parameters:
      newLabelDisplayed - true if the label should be displayed, else false if the label should not be displayed and take up no space.
      See Also: