程序包 weka.gui

类 JListHelper

java.lang.Object
weka.gui.JListHelper

public class JListHelper extends Object
A helper class for JList GUI elements with DefaultListModel or derived models.
版本:
$Revision: 7059 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 字段详细资料

    • MOVE_UP

      public static final int MOVE_UP
      moves items up
      另请参阅:
    • MOVE_DOWN

      public static final int MOVE_DOWN
      moves items down
      另请参阅:
  • 构造器详细资料

    • JListHelper

      public JListHelper()
  • 方法详细资料

    • moveUp

      public static void moveUp(JList list)
      moves the selected items up by 1
      参数:
      list - the JList to work on
    • moveDown

      public static void moveDown(JList list)
      moves the selected item down by 1
      参数:
      list - the JList to work on
    • moveTop

      public static void moveTop(JList list)
      moves the selected items to the top
      参数:
      list - the JList to work on
    • moveBottom

      public static void moveBottom(JList list)
      moves the selected items to the end
      参数:
      list - the JList to work on
    • canMoveUp

      public static boolean canMoveUp(JList list)
      checks whether the selected items can be moved up
      参数:
      list - the JList to work on
    • canMoveDown

      public static boolean canMoveDown(JList list)
      checks whether the selected items can be moved down
      参数:
      list - the JList to work on