|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JList | +--org.scopemvc.view.swing.SList
A JList that uses a SListModel
to bind to model properties, and a
SListSelectionModel
to bind the selected item to a property. Uses a
SListCellRenderer
to draw items in the list.
SList can issue Controls on selection changes and on double-click.
SList doesn't itself bind to a model: it delegates all binding to its SListModel and SListSelectionModel.
SListModel
,
SListSelectionModel
,
SListCellRenderer
,
SAbstractListModel
,
SComboBox
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.JList |
javax.swing.JList.AccessibleJList |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JList |
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP |
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 | |
SList()
Constructor for the SList object |
Method Summary | |
protected javax.swing.ListSelectionModel |
createSelectionModel()
TODO: document the method |
javax.swing.JToolTip |
createToolTip()
TODO: document the method |
java.lang.Object |
findElementAt(int inIndex)
Null if not found. |
int |
findIndexFor(java.lang.Object inValue)
-1 if not found. |
java.lang.Object |
getBoundModel()
Gets the bound model |
java.lang.String |
getChangeSelectionControlID()
Gets the change selection control ID |
Controller |
getController()
Don't assign a direct Controller to List, instead delegate to the containing SwingView that has a parent Controller. |
java.lang.String |
getDoubleClickControlID()
Gets the double click control ID |
Selector |
getRendererIconSelector()
Gets the renderer icon selector |
Selector |
getRendererSelector()
Gets the renderer selector |
Selector |
getSelectionSelector()
Gets the selection selector |
Selector |
getSelector()
Gets the selector |
Selector |
getSizeSelector()
Gets the size selector |
void |
issueChangeSelectionControl()
TODO: document the method |
void |
issueControl(Control inControl)
Don't assign a direct Controller to List, instead delegate to the containing SwingView that has a parent Controller. |
void |
mouseClicked(java.awt.event.MouseEvent e)
TODO: document the method |
void |
mouseEntered(java.awt.event.MouseEvent e)
TODO: document the method |
void |
mouseExited(java.awt.event.MouseEvent e)
TODO: document the method |
void |
mousePressed(java.awt.event.MouseEvent e)
TODO: document the method |
void |
mouseReleased(java.awt.event.MouseEvent e)
TODO: document the method |
void |
refresh()
TODO: document the method |
void |
refreshSelection()
TODO: document the method |
void |
setBoundModel(java.lang.Object inModel)
Sets the bound model |
void |
setChangeSelectionControlID(java.lang.String inControlID)
Set the Control ID for the Control that will be issued when the selection is changed. |
void |
setController(Controller inController)
Don't assign a Controller to this component, instead delegate to the containing SwingView that has a parent Controller. |
void |
setDoubleClickControlID(java.lang.String inControlID)
Set the Control ID for the Control that will be issued when the List is double-clicked. |
void |
setListModel(java.lang.Object inModel)
Can use this to specify a static list model for the contents of the list rather than binding to a dynamic property of some view model. |
void |
setModel(javax.swing.ListModel model)
Sets the model |
void |
setRendererIconSelector(Selector inSelector)
Set the Selector for the list cell renderer to get an Icon: this is the property that will be shown as an Icon in a list cell. |
void |
setRendererIconSelectorString(java.lang.String inSelectorString)
Set the Selector for the list cell renderer to get an Icon: this is the property that will be shown as an Icon in a list cell. |
void |
setRendererSelector(Selector inSelector)
Set the Selector for the list cell renderer: this is the property that will be shown in a list cell (converted to a String). |
void |
setRendererSelectorString(java.lang.String inSelectorString)
Set the Selector for the list cell renderer: this is the property that will be shown in a list cell (converted to a String). |
void |
setSelectionSelector(Selector inSelector)
Set the Selector for the list selection: this property will be bound to the list's single selection. |
void |
setSelectionSelectorString(java.lang.String inSelectorString)
Set the Selector for the list selection: this property will be bound to the list's single selection. |
void |
setSelector(Selector inSelector)
Set the Selector for the list data. |
void |
setSelectorString(java.lang.String inSelectorString)
Set the Selector for the list data. |
void |
setSizeSelector(Selector inSelector)
Can specify that the list's size comes from a bound property. |
void |
setSizeSelectorString(java.lang.String inSelectorString)
Can specify that the list's size comes from a bound property. |
void |
validationFailed(java.lang.Exception inException)
TODO: document the method |
void |
validationSuccess()
TODO: document the method |
Methods inherited from class javax.swing.JList |
addListSelectionListener, addSelectionInterval, clearSelection, ensureIndexIsVisible, fireSelectionValueChanged, getAccessibleContext, getAnchorSelectionIndex, getCellBounds, getCellRenderer, getDragEnabled, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLastVisibleIndex, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPreferredScrollableViewportSize, getPrototypeCellValue, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getToolTipText, getUI, getUIClassID, getValueIsAdjusting, getVisibleRowCount, indexToLocation, isSelectedIndex, isSelectionEmpty, locationToIndex, paramString, removeListSelectionListener, removeSelectionInterval, setCellRenderer, setDragEnabled, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setListData, setPrototypeCellValue, setSelectedIndex, setSelectedIndices, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionInterval, setSelectionMode, setSelectionModel, setUI, setValueIsAdjusting, setVisibleRowCount, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.scopemvc.view.swing.ListSelectionParent |
setEnabled |
Constructor Detail |
public SList()
Method Detail |
public final java.lang.Object getBoundModel()
getBoundModel
in interface View
public final Selector getSizeSelector()
public final Selector getSelector()
public final Selector getSelectionSelector()
public final Selector getRendererSelector()
public final Selector getRendererIconSelector()
public final java.lang.String getChangeSelectionControlID()
public final java.lang.String getDoubleClickControlID()
public void issueChangeSelectionControl()
issueChangeSelectionControl
in interface ListSelectionParent
public Controller getController()
getController
in interface View
public void issueControl(Control inControl)
issueControl
in interface View
inControl
- TODO: Describe the Parameterpublic final void setBoundModel(java.lang.Object inModel)
setBoundModel
in interface View
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 final void setSelectionSelector(Selector inSelector)
inSelector
- The new selectionSelector valuepublic final void setSelectionSelectorString(java.lang.String inSelectorString)
inSelectorString
- The new selectionSelectorString valuepublic final void setRendererSelector(Selector inSelector)
inSelector
- The new rendererSelector valuepublic final void setRendererIconSelector(Selector inSelector)
inSelector
- The new rendererIconSelector valuepublic final void setRendererSelectorString(java.lang.String inSelectorString)
inSelectorString
- The new rendererSelectorString valuepublic final void setRendererIconSelectorString(java.lang.String inSelectorString)
inSelectorString
- The new rendererIconSelectorString valuepublic final void setChangeSelectionControlID(java.lang.String inControlID)
inControlID
- The new changeSelectionControlID valuepublic final void setDoubleClickControlID(java.lang.String inControlID)
inControlID
- The new doubleClickControlID valuepublic void setModel(javax.swing.ListModel model)
setModel
in class javax.swing.JList
model
- The new model valuepublic void setListModel(java.lang.Object inModel)
inModel
- The new listModel valueListModelAdaptor
public void setSizeSelector(Selector inSelector)
inSelector
- The new sizeSelector valuepublic void setSizeSelectorString(java.lang.String inSelectorString)
inSelectorString
- The new sizeSelectorString valuepublic void setController(Controller inController)
setController
in interface View
inController
- The new controller valuepublic int findIndexFor(java.lang.Object inValue)
findIndexFor
in interface ListSelectionParent
inValue
- TODO: Describe the Parameter
public java.lang.Object findElementAt(int inIndex)
findElementAt
in interface ListSelectionParent
inIndex
- TODO: Describe the Parameter
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- TODO: Describe the Parameterpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- TODO: Describe the Parameterpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- TODO: Describe the Parameterpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- TODO: Describe the Parameterpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- TODO: Describe the Parameterpublic void refresh()
refresh
in interface Refreshable
public void refreshSelection()
public void validationFailed(java.lang.Exception inException)
validationFailed
in interface ListSelectionParent
inException
- TODO: Describe the Parameterpublic void validationSuccess()
validationSuccess
in interface ListSelectionParent
public javax.swing.JToolTip createToolTip()
createToolTip
in class javax.swing.JComponent
protected javax.swing.ListSelectionModel createSelectionModel()
createSelectionModel
in class javax.swing.JList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |