Package hec.gui

Class MoverPanel2<T>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Modifiable

public class MoverPanel2<T> extends RmaJPanel
See Also:
  • Field Details

    • SELECTION_0_TO_1

      public static final int SELECTION_0_TO_1
      See Also:
    • SELECTION_0_TO_MANY

      public static final int SELECTION_0_TO_MANY
      See Also:
    • MOVER_DIALOG

      public static final int MOVER_DIALOG
      flags indicating whether this is a move or copy dialog mover dialog is the default
      See Also:
    • COPY_DIALOG

      public static final int COPY_DIALOG
      See Also:
    • _tablePanel

      protected JPanel _tablePanel
    • _availableTable

      protected RmaJTable _availableTable
    • _selectedTable

      protected RmaJTable _selectedTable
    • _filterAvailableTxt

      protected JTextField _filterAvailableTxt
    • _filterSelectedTxt

      protected JTextField _filterSelectedTxt
    • _availableTableModel

      protected RmaTableModel _availableTableModel
    • _selectedTableModel

      protected RmaTableModel _selectedTableModel
  • Constructor Details

    • MoverPanel2

      public MoverPanel2()
    • MoverPanel2

      public MoverPanel2(LayoutManager layoutManager)
    • MoverPanel2

      public MoverPanel2(LayoutManager layoutManager, boolean isDoubleBuffered)
  • Method Details

    • actionAdd

      protected void actionAdd()
      Description of the Method
    • updateMoverButtons

      protected void updateMoverButtons()
    • filterTable

      protected void filterTable(RmaJTable table, String filter)
    • clearForm

      public void clearForm()
    • setSelectionType

      public void setSelectionType(int type)
      Sets this dialog's selection mode to 0..1 or 0..n
    • setDesc

      public void setDesc(String txt)
      Set's the textarea's text.
      Parameters:
      txt - The new Desc value
    • setDescVisible

      public void setDescVisible(boolean b)
      Controls whether the textarea is visible.
      Parameters:
      b - The new DescVisible value
    • setMoveUpDownVisible

      public void setMoveUpDownVisible(boolean b)
    • setData

      public void setData(List<T> avail, List<T> selected)
      Fills the lists with argument data. Prunes the selected items from the available items.
      Parameters:
      avail - The new Data value
      selected - The new Data value
    • setSelectedListLabel

      public void setSelectedListLabel(String label)
      Sets the SelectedListLabel attribute of the MoverPanel2 object
      Parameters:
      label - The new SelectedListLabel value
    • setAvailableListLabel

      public void setAvailableListLabel(String label)
      Sets the AvailableListLabel attribute of the MoverPanel2 object
      Parameters:
      label - The new AvailableListLabel value
    • getSelectedObjects

      public Object[] getSelectedObjects()
      Gets the selected objects in the selected table as an array.
      Returns:
      an array of selected objects
    • getSelectedObjectsList

      public List<T> getSelectedObjectsList()
      Gets the selected objects in a vector.
      Returns:
      a vector containing the selected objects.
    • getAvailableObjects

      public T[] getAvailableObjects()
      Gets the available objects as an array.
      Returns:
      an array of available objects.
    • getAvailableObjectsList

      public List<T> getAvailableObjectsList()
      Gets the available objects in a vector.
      Returns:
      a vector containing the available objects.
    • saveForm

      public boolean saveForm()
      Saves the data from the form
      Returns:
      Description of the Returned Value
    • addTopPanel

      public void addTopPanel(JPanel panel)
      Adds a feature to the TopPanel attribute of the MoverPanel2 object
      Parameters:
      panel - The feature to be added to the TopPanel attribute
    • getCaseInsensitiveSort

      public boolean getCaseInsensitiveSort()
    • setCaseInsensitiveSort

      public void setCaseInsensitiveSort(boolean caseInsensitiveSort)
    • actionRemove

      protected void actionRemove()
      remove an item from the selected list and put them in the available list
    • setSortEnabled

      public void setSortEnabled(boolean sorted)
      set whether the Lists are sorted or not. Default is that they are sorted
      Parameters:
      sorted - false to turn off sorting
    • setListsEnabled

      public void setListsEnabled(boolean enabled)
    • setDialogType

      public void setDialogType(int type)
      set the dialog type. One of:
      MOVER_DIALOG or
      COPY_DIALOG
      Parameters:
      type - the new dialog type
    • getDialogType

      public int getDialogType()
      get the dialog type. Returns one of:
      MOVER_DIALOG or
      COPY_DIALOG
      Returns:
      the dialog type