Class SelectBoxGroupDisplay<K,T,G>

java.lang.Object
name.matthewgreet.strutscommons.view.SelectBoxGroupDisplay<K,T,G>
Type Parameters:
K - Unique identifier for instance of T.
T - Unformatted record.
G - Unformatted group that instances of T can be a member, which can even be String.

public class SelectBoxGroupDisplay<K,T,G> extends Object

Aids creation of OPTION tags in JSPs for SELECT elements by formatting group headers for display. It may optionally contain group header data.

  • Constructor Details

    • SelectBoxGroupDisplay

      public SelectBoxGroupDisplay()
    • SelectBoxGroupDisplay

      public SelectBoxGroupDisplay(String text)
    • SelectBoxGroupDisplay

      public SelectBoxGroupDisplay(String text, G data)
  • Method Details

    • setModel

      public void setModel(String text)
    • setModel

      public void setModel(String text, G data)
    • getText

      public String getText()
      Returns text displayed in web page.
    • setText

      public void setText(String value)
    • getData

      public G getData()
      Returns raw model group header that is being formatted for display.
    • setData

      public void setData(G value)
    • getChildren

      public List<SelectBoxItemDisplay2<K,T>> getChildren()
    • setChildren

      public void setChildren(List<SelectBoxItemDisplay2<K,T>> children)