Package rma.swing

Class RmaJCheckBoxList

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, Modifiable, EditableComponent, FormManagementListener

public class RmaJCheckBoxList extends RmaJList
See Also:
  • Constructor Details

    • RmaJCheckBoxList

      public RmaJCheckBoxList()
    • RmaJCheckBoxList

      public RmaJCheckBoxList(Vector listData)
      Construct a RMAJCheckBoxList that displays the elements in the specified Vector.
    • RmaJCheckBoxList

      public RmaJCheckBoxList(Object[] listData)
      Construct a RMAJCheckBoxList that displays the elements in the specified array.
  • Method Details

    • init

      protected void init(CheckableListItem[] data)
    • toggle

      public void toggle(int index)
    • setSelected

      public void setSelected(int index, boolean selected)
      set a checkbox selected or not at the specified index
    • isSelectedValue

      public boolean isSelectedValue(int index)
      returns whether the checkbox for index is selected or not
    • isSelectedValue

      public boolean isSelectedValue(Object obj)
      check to see if obj is in the list and is checked.
    • getValueAt

      public Object getValueAt(int index)
      Description copied from class: RmaJList
      get the Value in the list at index idx
      Overrides:
      getValueAt in class RmaJList
      Parameters:
      index - the index to get the value at
      Returns:
      the value at idx or null if idx isn't a valid index
    • contains

      public boolean contains(Object obj)
      check to see if the list contains the Object obj.
    • removeValueAt

      public Object removeValueAt(int index)
    • insertValueAt

      public void insertValueAt(Object obj, int index)
    • spinUp

      public boolean spinUp(int index)
      move an object up in the list
      Returns:
      whether a move took place
    • spinDown

      public boolean spinDown(int index)
      move and object down in the list
      Returns:
      whether a move took place
    • getSelectedValue

      public Object getSelectedValue()
      Overrides:
      getSelectedValue in class JList
    • getSelectedValues

      public Object[] getSelectedValues()
      Overrides:
      getSelectedValues in class JList
    • getCheckedValues

      public Object[] getCheckedValues()
    • getCheckedIndexes

      public int[] getCheckedIndexes()
    • setModel

      public void setModel()
      overriden to a no-op
    • setListData

      public void setListData(Vector listData)
      Overrides:
      setListData in class JList
    • setListData

      public void setListData(Object[] listData)
      Overrides:
      setListData in class JList
    • addItem

      public void addItem(Object listItem)
    • fireCheckBoxToggled

      protected void fireCheckBoxToggled(int index, boolean selected)
    • addCheckBoxToggleListener

      public void addCheckBoxToggleListener(CheckBoxToggleListener l)
      adds a CheckBoxToggleListener to the List
    • removeCheckBoxToggleListener

      public void removeCheckBoxToggleListener(CheckBoxToggleListener l)
      removes a CheckBoxToggleListener from the list
    • setEnabled

      public void setEnabled(boolean b)
      Overrides:
      setEnabled in class JComponent