Class FooterArea

java.lang.Object
org.eclipse.nebula.widgets.opal.dialog.DialogArea
org.eclipse.nebula.widgets.opal.dialog.FooterArea

public class FooterArea
extends DialogArea
Instances of this class are message areas
  • Field Details

  • Constructor Details

    • FooterArea

      public FooterArea​(Dialog parent)
      Constructor
      Parameters:
      parent - dialog that is composed of this footer area
  • Method Details

    • addCheckBox

      public FooterArea addCheckBox​(java.lang.String label, boolean selection)
      Add a check box
      Parameters:
      label - label to display
      selection - default value of the check box
      Returns:
      this footer area
    • render

      void render()
      Description copied from class: DialogArea
      Render the content of an area
      Specified by:
      render in class DialogArea
      See Also:
      DialogArea.render()
    • getIcon

      public org.eclipse.swt.graphics.Image getIcon()
      Returns:
      the icon
    • setIcon

      public FooterArea setIcon​(org.eclipse.swt.graphics.Image icon)
      Parameters:
      icon - the icon to set
      Returns:
      this footer area
    • getFooterText

      public java.lang.String getFooterText()
      Returns:
      the text
    • setFooterText

      public FooterArea setFooterText​(java.lang.String text)
      Parameters:
      text - the text to set
      Returns:
      this footer area
    • getButtonLabels

      public java.util.List<java.lang.String> getButtonLabels()
      Returns:
      the button labels
    • setButtonLabels

      public FooterArea setButtonLabels​(java.util.List<java.lang.String> buttonLabels)
      Parameters:
      buttonLabels - the button labels to set
      Returns:
      this footer area
    • setButtonLabels

      public FooterArea setButtonLabels​(java.lang.String... buttonLabels)
      Parameters:
      buttonLabels - the button labels to set
      Returns:
      this footer area
    • addFooterAction

      public FooterArea addFooterAction​(java.util.function.Supplier<java.lang.String> label, java.util.function.Consumer<Dialog> action, org.eclipse.swt.graphics.Image... images)
      Parameters:
      action - Runnable to be called when pressed.
      label - label of the footer action
      images - Images Array [active, highlight, inactive]
      Returns:
    • getDefaultButtonIndex

      public int getDefaultButtonIndex()
      Returns:
      the default button index
    • setDefaultButtonIndex

      public FooterArea setDefaultButtonIndex​(int defaultButtonIndex)
      Parameters:
      defaultButtonIndex - the default button index to set
      Returns:
      this footer area
    • getTimer

      public int getTimer()
      Returns:
      the timer value
    • setTimer

      public FooterArea setTimer​(int timer)
      Parameters:
      timer - the timer value to set
      Returns:
      this footer area
    • getTimerIndexButton

      public int getTimerIndexButton()
      Returns:
      the timer index button
    • setTimerIndexButton

      public FooterArea setTimerIndexButton​(int timerIndexButton)
      Parameters:
      timerIndexButton - the timer index button to set
      Returns:
      this footer area
    • getSelectedButton

      int getSelectedButton()
      Returns:
      the selected button
    • getCollapsedLabelText

      public java.lang.String getCollapsedLabelText()
      Returns:
      the collapsed label text
    • setCollapsedLabelText

      public FooterArea setCollapsedLabelText​(java.lang.String collapsedLabelText)
      Parameters:
      collapsedLabelText - the collapsed label text to set
      Returns:
      this footer area
    • getExpandedLabelText

      public java.lang.String getExpandedLabelText()
      Returns:
      the expanded label text
    • setExpandedLabelText

      public FooterArea setExpandedLabelText​(java.lang.String expandedLabelText)
      Parameters:
      expandedLabelText - the expanded label text to set
      Returns:
      this footer area
    • isExpanded

      public boolean isExpanded()
      Returns:
      the expanded flag
    • setExpanded

      public FooterArea setExpanded​(boolean expanded)
      Parameters:
      expanded - the expanded flag to set
      Returns:
      this footer area
    • getDetailText

      public java.lang.String getDetailText()
      Returns:
      the detail text
    • setDetailText

      public FooterArea setDetailText​(java.lang.String detailText)
      Parameters:
      detailText - the detail text to set
      Returns:
      this footer area
    • getCheckBoxValue

      public boolean getCheckBoxValue()
      Returns:
      the check box vqlue