Class FWFormOption

java.lang.Object
net.simplace.pipe.formcomponents.choice.FWFormOption

public class FWFormOption extends Object
A selectable option of a FWChoiceFormComponent and its subcomponents: id, value, displayed text, optional image and optional jumper.
Author:
ckunze
  • Constructor Details

    • FWFormOption

      public FWFormOption(String aId, String aValue, ImageIcon aImageIcon, String aText)
      Parameters:
      aId - id-attribute of the option
      aValue - value of the option (the component's value if selected)
      aImageIcon - icon to be displayed next to the option's text, or null
      aText - text shown to the user in the list or combo
    • FWFormOption

      public FWFormOption(String aId, String aJumper, String aValue, ImageIcon aImageIcon, String aText)
      Parameters:
      aId - id-attribute of the option
      aJumper - jumper of the option (e.g. the function to go on with)
      aValue - value of the option (the component's value if selected)
      aImageIcon - icon to be displayed next to the option's text, or null
      aText - text shown to the user in the list or combo
  • Method Details

    • getId

      public String getId()
      Returns:
      the id of the option
    • setId

      public void setId(String aId)
      Parameters:
      aId - the id of the option
    • getValue

      public String getValue()
      Returns:
      the value of the option
    • getImage

      public ImageIcon getImage()
      Returns:
      the icon, or null
    • setImage

      public void setImage(ImageIcon aImage)
      Parameters:
      aImage - icon to be displayed next to the text, or null
    • getText

      public String getText()
      Returns:
      the displayed text
    • getHTMLText

      public String getHTMLText()
      Returns:
      the displayed text wrapped in <html> tags
    • setText

      public void setText(String aText)
      Parameters:
      aText - the displayed text
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      the text that is displayed to the user
    • getJumper

      public String getJumper()
      Returns:
      the jumper of the option, or null
    • setJumper

      public void setJumper(String aJumper)
      Parameters:
      aJumper - the jumper of the option