Module jEdit

Class PingPongList<E>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PingPongList<E> extends JPanel
A panel with two lists, allowing the user to move items between them. All methods ensure that an element cannot appear in both lists simultaneously.
Since:
jEdit 4.4pre1
Author:
Matthieu Casanova
See Also:
  • Constructor Details

    • PingPongList

      public PingPongList(List<E> leftData, List<E> rightData)
    • PingPongList

      public PingPongList(int newOrientation, List<E> leftData, List<E> rightData)
  • Method Details

    • addButton

      public void addButton(JButton button)
    • setLeftData

      public void setLeftData(List<E> data)
    • setRightData

      public void setRightData(List<E> data)
    • setLeftSelected

      public void setLeftSelected(E selected)
    • getLeftSelectedValues

      public List<E> getLeftSelectedValues()
    • setRightSelected

      public void setRightSelected(E selected)
    • getRightSelectedValues

      public List<E> getRightSelectedValues()
    • setLeftTooltip

      public void setLeftTooltip(String leftTooltip)
    • setRightTooltip

      public void setRightTooltip(String rightTooltip)
    • setLeftTitle

      public void setLeftTitle(String leftTitle)
    • setRightTitle

      public void setRightTitle(String rightTitle)
    • removeLeftTitle

      public void removeLeftTitle()
    • removeRightTitle

      public void removeRightTitle()
    • getLeftSize

      public int getLeftSize()
    • getRightSize

      public int getRightSize()
    • getLeftDataIterator

      public Iterator<E> getLeftDataIterator()
    • getRightDataIterator

      public Iterator<E> getRightDataIterator()
    • moveAllToLeft

      public void moveAllToLeft()
    • moveAllToRight

      public void moveAllToRight()
    • setLeftCellRenderer

      public void setLeftCellRenderer(ListCellRenderer<E> renderer)
    • setRightCellRenderer

      public void setRightCellRenderer(ListCellRenderer<E> renderer)
    • addLeftListSelectionListener

      public void addLeftListSelectionListener(ListSelectionListener listener)
    • addRightListSelectionListener

      public void addRightListSelectionListener(ListSelectionListener listener)