Class DefaultListTwinsModel
java.lang.Object
net.thevpc.common.swing.list.DefaultListTwinsModel
- All Implemented Interfaces:
JListTwinsModel
- Author:
- Taha Ben Salah (taha.bensalah@gmail.com) %creationtime 14 août 2007 20:49:44
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener to the list that's notified each time a change to the data model occurs.voidgetLeftElementAt(int index) intReturns the length of the list.getRightElementAt(int index) intvoidvoidvoidmoveLeft(int rightIndex) voidmoveRight(int rightIndex) voidRemoves a listener from the list that's notified each time a change to the data model occurs.void
-
Constructor Details
-
DefaultListTwinsModel
-
-
Method Details
-
getLeftSize
public int getLeftSize()Description copied from interface:JListTwinsModelReturns the length of the list.- Specified by:
getLeftSizein interfaceJListTwinsModel- Returns:
- the length of the list
-
getRightSize
public int getRightSize()- Specified by:
getRightSizein interfaceJListTwinsModel
-
getLeftElementAt
- Specified by:
getLeftElementAtin interfaceJListTwinsModel
-
getRightElementAt
- Specified by:
getRightElementAtin interfaceJListTwinsModel
-
addLeftListDataListener
Description copied from interface:JListTwinsModelAdds a listener to the list that's notified each time a change to the data model occurs.- Specified by:
addLeftListDataListenerin interfaceJListTwinsModel- Parameters:
l- theListDataListenerto be added
-
addRightListDataListener
- Specified by:
addRightListDataListenerin interfaceJListTwinsModel
-
removeLeftListDataListener
Description copied from interface:JListTwinsModelRemoves a listener from the list that's notified each time a change to the data model occurs.- Specified by:
removeLeftListDataListenerin interfaceJListTwinsModel- Parameters:
l- theListDataListenerto be removed
-
removeRightListDataListener
- Specified by:
removeRightListDataListenerin interfaceJListTwinsModel
-
moveAllLeft
public void moveAllLeft()- Specified by:
moveAllLeftin interfaceJListTwinsModel
-
moveAllRight
public void moveAllRight()- Specified by:
moveAllRightin interfaceJListTwinsModel
-
moveLeft
public void moveLeft(int rightIndex) - Specified by:
moveLeftin interfaceJListTwinsModel
-
moveRight
public void moveRight(int rightIndex) - Specified by:
moveRightin interfaceJListTwinsModel
-