Class ListBox

All Implemented Interfaces:
Click

public class ListBox extends ScrollPanel implements Click
  • Constructor Details

    • ListBox

      public ListBox()
  • Method Details

    • update

      public void update(int idx, String text)
    • add

      public void add(String item)
    • add

      public void add(int idx, String item)
    • add

      public void add(Component item)
      Description copied from class: Container
      Add component to end of components.
      Overrides:
      add in class Container
    • add

      public void add(int idx, Component item)
      Description copied from class: Container
      Add component at index.
      Overrides:
      add in class Container
    • init

      public void init()
      Description copied from class: Component
      Perform any initialization with the client. Containers should call init() on all sub-components.
      Overrides:
      init in class Panel
    • getSelectedIndex

      public int getSelectedIndex()
    • getSelectedCount

      public int getSelectedCount()
    • getSelectedIndices

      public int[] getSelectedIndices()
    • getSelectedItem

      public String getSelectedItem()
    • getSelectedComponent

      public Component getSelectedComponent()
    • setSelectedIndex

      public void setSelectedIndex(int selidx)
    • onClick

      public void onClick(MouseEvent me, Component cmp)
      Specified by:
      onClick in interface Click