|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
de.mospace.swing.JDoubleList
public class JDoubleList
A two-column list where items can be moved from one side to the other. The order of the items can also be adjusted.
| Nested Class Summary | |
|---|---|
static class |
JDoubleList.DefaultSingleListModel
|
static class |
JDoubleList.ListElement
An element of a JDoubleList. |
static interface |
JDoubleList.SingleListModel
Minimum requirements on a model for one of the JLists. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
CENTER
|
static int |
LEFT
|
static int |
MOVE_DOWN
|
static int |
MOVE_END
|
static int |
MOVE_LEFT
|
static int |
MOVE_RIGHT
|
static int |
MOVE_START
|
static int |
MOVE_UP
|
static int |
RIGHT
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JDoubleList()
Constructs a new double list. |
|
JDoubleList(JDoubleList.SingleListModel left,
JDoubleList.SingleListModel right)
Constructs a new double list from the given single list models. |
|
JDoubleList(JDoubleList.SingleListModel left,
JDoubleList.SingleListModel right,
boolean leftOrderFixed,
boolean rightOrderFixed)
Constructs a new double List from the given single list models. |
|
JDoubleList(JList left,
JList right,
boolean leftOrderFixed,
boolean rightOrderFixed)
Constructs a new double List from the given single lists. |
|
| Method Summary | |
|---|---|
JButton |
getButton(int movexxx)
Returns one of the buttons that manipulate the double list. |
JList |
getLeftList()
Returns the JList displayed on the left. |
Component |
getPart(int part)
|
JList |
getRightList()
Returns the JList displayed on the right. |
boolean |
isSymmetric()
|
void |
moveLeft()
Moves the selected elements from the list on the right into the list on the left. |
void |
moveRight()
Moves the selected elements from the list on the left into the list on the right. |
void |
setComponentSize(int comp,
Dimension d)
Adjusts the size of one of the three double list components. |
void |
setSymmetric(boolean symm)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MOVE_RIGHT
public static final int MOVE_LEFT
public static final int MOVE_UP
public static final int MOVE_DOWN
public static final int MOVE_START
public static final int MOVE_END
public static final int LEFT
public static final int CENTER
public static final int RIGHT
| Constructor Detail |
|---|
public JDoubleList()
public JDoubleList(JDoubleList.SingleListModel left,
JDoubleList.SingleListModel right)
public JDoubleList(JDoubleList.SingleListModel left,
JDoubleList.SingleListModel right,
boolean leftOrderFixed,
boolean rightOrderFixed)
public JDoubleList(JList left,
JList right,
boolean leftOrderFixed,
boolean rightOrderFixed)
IllegalArgumentException - if at least one of the list models is not an instance of SingleListModel| Method Detail |
|---|
public void setSymmetric(boolean symm)
public boolean isSymmetric()
public Component getPart(int part)
public final void moveLeft()
public final void moveRight()
public JList getLeftList()
public JList getRightList()
public JButton getButton(int movexxx)
movexxx - one of MOVE_RIGHT, MOVE_LEFT, MOVE_UP, MOVE_DOWN, MOVE_START, MOVE_END
public void setComponentSize(int comp,
Dimension d)
comp - one of LEFT (list), RIGHT (list), and CENTER (buttons)d - the new preferred size for the respective component
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||