Package weka.gui
Class JListHelper
java.lang.Object
weka.gui.JListHelper
A helper class for JList GUI elements with DefaultListModel or
derived models.
- Version:
- $Revision: 8034 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canMoveDown
(JList list) checks whether the selected items can be moved downstatic boolean
checks whether the selected items can be moved upstatic void
moveBottom
(JList list) moves the selected items to the endstatic void
moves the selected item down by 1static void
moves the selected items to the topstatic void
moves the selected items up by 1
-
Field Details
-
MOVE_UP
public static final int MOVE_UPmoves items up- See Also:
-
MOVE_DOWN
public static final int MOVE_DOWNmoves items down- See Also:
-
-
Constructor Details
-
JListHelper
public JListHelper()
-
-
Method Details
-
moveUp
moves the selected items up by 1- Parameters:
list
- the JList to work on
-
moveDown
moves the selected item down by 1- Parameters:
list
- the JList to work on
-
moveTop
moves the selected items to the top- Parameters:
list
- the JList to work on
-
moveBottom
moves the selected items to the end- Parameters:
list
- the JList to work on
-
canMoveUp
checks whether the selected items can be moved up- Parameters:
list
- the JList to work on
-
canMoveDown
checks whether the selected items can be moved down- Parameters:
list
- the JList to work on
-