public class List extends ScrollGridPane
ScrollGridPane
that instantiates a
javax.swing.JList<Object>
object as scroll-able object.
It uses the default model for its embedded object and lets it be populated in each element with DescrStruct objects or with simple text.
In the first case the model is mapped on the content of the whole associated
LiteralStruct object and will render the literal
member of each
object; and, furthermore, lets the list row have the id
member as
datum associated. The list object, in this case, is a "read only" object used
typically as medium of choices to drive other data objects.
In the second case the model uses, as source of data, the associated
JotyDataBuffer, so it as as many rows as its record quantity: however the
rendering, by default, is again based on the LiteralStruct object which is
looked up by its id
member value that matches the value of the buffer
key field. (see ListTerm
class for alternative way of rendering).
ScrollGridPane
,
ListTerm
,
LiteralsCollection.DescrStruct
,
initVerboseLayout()
,
Serialized FormScrollGridPane.ClickHandler, ScrollGridPane.ListSelectionHandler
javax.swing.JScrollPane.AccessibleJScrollPane, javax.swing.JScrollPane.ScrollBar
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
javax.swing.JList<java.lang.Object> |
m_list |
protected javax.swing.DefaultListModel<java.lang.Object> |
m_listModel |
protected javax.swing.ListSelectionModel |
m_listSelectionModel |
List |
m_targetList |
m_changeEventsEnabled, m_gridTerm
m_panel, m_term
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
Modifier and Type | Method and Description |
---|---|
int |
addString(java.lang.String term) |
void |
addTerm(org.joty.app.LiteralsCollection.DescrStruct term) |
int |
deleteString(int index) |
void |
ensureIndexIsVisible(int row) |
long |
getItemData(int getCurSel) |
javax.swing.JComponent |
getPaneComponent() |
int |
getRowQty() |
org.joty.app.LiteralsCollection.DescrStruct |
getSelectedValue() |
int |
getSelection() |
java.lang.String |
getString() |
void |
initVerboseLayout()
Used to populate the embedded component with the content of the
associated
LiteralStruct object |
int |
insertString(int index,
java.lang.String text) |
boolean |
isSelectedIndex(int index) |
void |
managedDeleteRow(int rowPos) |
void |
nextRow() |
void |
previousRow() |
void |
removeAll() |
void |
setFont(java.awt.Font font) |
void |
setFormat() |
void |
setSelection(long val) |
void |
setString(int index,
java.lang.String term) |
doActualRemoval, getBuffer, getRelatedEnable, getSelectedColumn, getSortInfo, managedAppend, managedListLoad, manageDoubleClick, managedUpdateRow, onSelchange, setColsProperties, setSortInfo, signalRemoval
getTerm, init, manageBarEnable, setEnabled, setInnerComponentEnabled
createHorizontalScrollBar, createVerticalScrollBar, createViewport, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, paramString, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setViewportView, setWheelScrollingEnabled, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTree
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public javax.swing.JList<java.lang.Object> m_list
public List m_targetList
protected javax.swing.DefaultListModel<java.lang.Object> m_listModel
protected javax.swing.ListSelectionModel m_listSelectionModel
public int addString(java.lang.String term)
public void addTerm(org.joty.app.LiteralsCollection.DescrStruct term)
addTerm
in class ScrollGridPane
public int deleteString(int index)
public void ensureIndexIsVisible(int row)
ensureIndexIsVisible
in class ScrollGridPane
public long getItemData(int getCurSel)
public javax.swing.JComponent getPaneComponent()
getPaneComponent
in class ScrollPane
public int getRowQty()
getRowQty
in class ScrollGridPane
public org.joty.app.LiteralsCollection.DescrStruct getSelectedValue()
public int getSelection()
getSelection
in class ScrollGridPane
public java.lang.String getString()
public void initVerboseLayout()
LiteralStruct
objectinitVerboseLayout
in class ScrollGridPane
public int insertString(int index, java.lang.String text)
public boolean isSelectedIndex(int index)
public void managedDeleteRow(int rowPos)
managedDeleteRow
in class ScrollGridPane
public void nextRow()
nextRow
in class ScrollGridPane
public void previousRow()
previousRow
in class ScrollGridPane
public void removeAll()
removeAll
in class ScrollGridPane
public void setFont(java.awt.Font font)
setFont
in class javax.swing.JComponent
public void setFormat()
setFormat
in class ScrollPane
public void setSelection(long val)
setSelection
in class ScrollGridPane
public void setString(int index, java.lang.String term)