|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.DefaultListSelectionModel | +--org.scopemvc.view.swing.SListSelectionModel
A ListSelectionModel bound to a model property that will contain a reference to the current selection. This implementation allows read-only properties to disable the parent JList or JTable. SINGLE_SELECTION and SINGLE_INTERVAL_SELECTION are supported.
The bound property can be an Object of the type being selected in which case the topmost single selection is updated. If the property is a HashSet then it is updated with all selections.
SList
,
STable
,
Serialized FormField Summary |
Fields inherited from class javax.swing.DefaultListSelectionModel |
leadAnchorNotificationEnabled, listenerList |
Fields inherited from interface javax.swing.ListSelectionModel |
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION |
Constructor Summary | |
SListSelectionModel(ListSelectionParent inParent)
Create for a parent SingleListSelectionParent. |
Method Summary | |
protected void |
fireValueChanged(int firstIndex,
int lastIndex,
boolean isAdjusting)
When selection changes, update the bound model. |
java.lang.Object |
getBoundModel()
Gets the bound model |
Selector |
getSelector()
Gets the selector |
java.lang.Object |
getViewValue()
Gets the view value |
void |
refresh()
TODO: document the method |
void |
setBoundModel(java.lang.Object inModel)
Sets the bound model |
void |
setSelectionMode(int selectionMode)
Sets the selection mode |
void |
setSelector(Selector inSelector)
Sets the selector |
void |
setSelectorString(java.lang.String inSelectorString)
Sets the selector string |
protected void |
updateFromHashSet(java.util.HashSet inValue)
TODO: document the method |
protected void |
updateFromObject(java.lang.Object inValue)
TODO: document the method |
void |
updateFromProperty(java.lang.Object inValue,
boolean inReadOnly)
Incoming value is null, an Object or a java.util.HashSet. |
void |
validationFailed(java.lang.Exception inException)
If selection fails, make validation fail on parent. |
void |
validationSuccess()
If selection fails, make validation fail on parent. |
Methods inherited from class javax.swing.DefaultListSelectionModel |
addListSelectionListener, addSelectionInterval, clearSelection, clone, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionInterval, setValueIsAdjusting, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SListSelectionModel(ListSelectionParent inParent)
inParent
- TODO: Describe the ParameterMethod Detail |
public final java.lang.Object getBoundModel()
public final Selector getSelector()
public java.lang.Object getViewValue()
getViewValue
in interface ModelBindable
public final void setBoundModel(java.lang.Object inModel)
inModel
- The new boundModel valuepublic final void setSelector(Selector inSelector)
inSelector
- The new selector valuepublic final void setSelectorString(java.lang.String inSelectorString)
inSelectorString
- The new selectorString valuepublic void setSelectionMode(int selectionMode)
setSelectionMode
in interface javax.swing.ListSelectionModel
setSelectionMode
in class javax.swing.DefaultListSelectionModel
selectionMode
- The new selectionMode valuepublic void updateFromProperty(java.lang.Object inValue, boolean inReadOnly)
updateFromProperty
in interface ModelBindable
inValue
- TODO: Describe the ParameterinReadOnly
- TODO: Describe the Parameterpublic void validationFailed(java.lang.Exception inException)
validationFailed
in interface ModelBindable
inException
- TODO: Describe the Parameterpublic void validationSuccess()
validationSuccess
in interface ModelBindable
ModelBindable.validationFailed(java.lang.Exception)
public void refresh()
refresh
in interface Refreshable
protected void updateFromObject(java.lang.Object inValue)
inValue
- TODO: Describe the Parameterprotected void updateFromHashSet(java.util.HashSet inValue)
inValue
- TODO: Describe the Parameterprotected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting)
fireValueChanged
in class javax.swing.DefaultListSelectionModel
firstIndex
- TODO: Describe the ParameterlastIndex
- TODO: Describe the ParameterisAdjusting
- TODO: Describe the Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |