|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
S
- The type of the elements in the SOURCE model.T
- The type of the elements in the TARGET model.public interface IShuttleModel<S,T>
The data model for a ListShuttle. This is a compound model which contains related TableModels, one for the SOURCE list and one for the TARGET list. It is the responsibility of this model's implementation to ensure that an item that is present in the SOURCE list is NOT PRESENT in the TARGET list and vice versa!!
The two Model implementations *must* implement proper model change events for changes to the model, since those events are used by the ListShuttle to update the UI(!). Using the default implementations for the ITableModel interface ensures that event handling is proper.
Method Summary | |
---|---|
ITableModel<S> |
getSourceModel()
Get the model for the SOURCE side of the shuttle. |
ITableModel<T> |
getTargetModel()
Get the model for the TARGET side of the shuttle. |
void |
moveSourceToTarget(int six,
int tix)
This gets called when items are moved by the user from SOURCE to TARGET. |
void |
moveTargetToSource(int tix)
This gets called when items are moved by the user from TARGET to SOURCE. |
Method Detail |
---|
ITableModel<S> getSourceModel()
ITableModel<T> getTargetModel()
void moveSourceToTarget(int six, int tix) throws java.lang.Exception
six
- tix
-
java.lang.Exception
void moveTargetToSource(int tix) throws java.lang.Exception
tix
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |