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 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.
| Modifier and Type | Method and Description |
|---|---|
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.
|
ITableModel<S> getSourceModel()
ITableModel<T> getTargetModel()
void moveSourceToTarget(int six,
int tix)
throws Exception
six - tix - Exceptionvoid moveTargetToSource(int tix)
throws Exception
tix - ExceptionCopyright © 2017 etc.to. All rights reserved.