|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JList
net.datacrow.console.components.lists.DcList
net.datacrow.console.components.lists.DcObjectList
public class DcObjectList
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JList |
---|
javax.swing.JList.AccessibleJList, javax.swing.JList.DropLocation |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
_CARDS
|
static int |
_ELABORATE
|
static int |
_LISTING
|
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 | |
---|---|
DcObjectList(DcModule module,
int style,
boolean wrap,
boolean evenOddColors)
|
|
DcObjectList(int style,
boolean wrap,
boolean evenOddColors)
|
Method Summary | |
---|---|
void |
activate()
|
int |
add(DcObject dco)
|
void |
add(java.util.List<? extends DcObject> objects)
|
void |
add(java.util.Map<java.lang.String,java.lang.Integer> keys)
|
int |
add(java.lang.String key)
|
void |
addSelectionListener(javax.swing.event.ListSelectionListener lsl)
|
void |
afterUpdate()
|
boolean |
allowsHorizontalTraversel()
|
boolean |
allowsVerticalTraversel()
|
void |
applySettings()
|
void |
cancelEdit()
|
void |
clear()
|
void |
clear(int idx)
|
void |
deselect()
|
void |
fireIntervalAdded(int from,
int to)
|
int[] |
getChangedIndices()
|
DcObjectListElement |
getDisplayElement(int module)
|
DcObject |
getItem(java.lang.String ID)
|
DcObject |
getItemAt(int idx)
|
int |
getItemCount()
|
java.lang.String |
getItemKey(int idx)
|
java.util.List<java.lang.String> |
getItemKeys()
|
java.util.List<DcObject> |
getItems()
|
DcModule |
getModule()
|
int |
getModule(int idx)
|
int |
getOptimalItemAdditionBatchSize()
|
DcObject |
getSelectedItem()
|
java.util.List<java.lang.String> |
getSelectedItemKeys()
|
java.util.List<DcObject> |
getSelectedItems()
|
View |
getView()
|
int |
getViewportBufferSize()
|
void |
ignoreEdit(boolean b)
|
boolean |
isChangesSaved()
|
boolean |
isIgnoringPaintRequests()
|
boolean |
isVisibleIndex(int index)
|
void |
paintRegionChanged()
|
boolean |
remove(java.lang.String[] keys)
|
void |
removeSelectionListener(javax.swing.event.ListSelectionListener lsl)
|
void |
saveSettings()
|
void |
setIgnorePaintRequests(boolean b)
|
void |
setSelected(int index)
|
void |
setView(View view)
|
void |
undoChanges()
|
int |
update(java.lang.String ID)
|
int |
update(java.lang.String ID,
DcObject dco)
|
Methods inherited from class net.datacrow.console.components.lists.DcList |
---|
addElements, componentHidden, componentMoved, componentResized, componentShown, ensureIndexIsVisible, getColumnsPerRow, getDcModel, getElements, getFirstIndexOnLastVisibleRow, getLastVisibleIndex, getPreferredScrollableViewportSize, getScrollableUnitIncrement, getUIClassID, getVisibleColumnCount, locationToIndex, locationToNearestIndex, moveRowDown, moveRowToBottom, moveRowToTop, moveRowUp, remove, remove, setColumnsPerRow, setListData, setListenersEnabled, setMaxVisibleColumnsPerRow, setSelectionMode, setVisibleColumnCount, update |
Methods inherited from class javax.swing.JList |
---|
addListSelectionListener, addSelectionInterval, clearSelection, createSelectionModel, fireSelectionValueChanged, getAccessibleContext, getAnchorSelectionIndex, getCellBounds, getCellRenderer, getDragEnabled, getDropLocation, getDropMode, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPrototypeCellValue, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getToolTipText, getUI, getValueIsAdjusting, getVisibleRowCount, indexToLocation, isSelectedIndex, isSelectionEmpty, paramString, removeListSelectionListener, removeSelectionInterval, setCellRenderer, setDragEnabled, setDropMode, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setModel, setPrototypeCellValue, setSelectedIndex, setSelectedIndices, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionInterval, setSelectionModel, setUI, setValueIsAdjusting, setVisibleRowCount, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, 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, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, 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, hide, 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, 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 net.datacrow.console.views.IViewComponent |
---|
addKeyListener, addMouseListener, getFirstVisibleIndex, getLastVisibleIndex, getMouseListeners, getSelectedIndex, getSelectedIndices, locationToIndex, remove, removeMouseListener, repaint, revalidate, setCursor, setSelectionMode |
Methods inherited from interface net.datacrow.console.views.ISortableComponent |
---|
moveRowDown, moveRowToBottom, moveRowToTop, moveRowUp |
Field Detail |
---|
public static final int _ELABORATE
public static final int _CARDS
public static final int _LISTING
Constructor Detail |
---|
public DcObjectList(int style, boolean wrap, boolean evenOddColors)
public DcObjectList(DcModule module, int style, boolean wrap, boolean evenOddColors)
Method Detail |
---|
public void setIgnorePaintRequests(boolean b)
setIgnorePaintRequests
in interface IViewComponent
public boolean isIgnoringPaintRequests()
isIgnoringPaintRequests
in interface IViewComponent
public boolean isVisibleIndex(int index)
public java.lang.String getItemKey(int idx)
getItemKey
in interface IViewComponent
public int getModule(int idx)
getModule
in interface IViewComponent
public void activate()
activate
in interface IViewComponent
public void paintRegionChanged()
paintRegionChanged
in interface IViewComponent
public void clear(int idx)
clear
in interface IViewComponent
public int getViewportBufferSize()
getViewportBufferSize
in interface IViewComponent
public void saveSettings()
saveSettings
in interface IViewComponent
public int getOptimalItemAdditionBatchSize()
public void ignoreEdit(boolean b)
ignoreEdit
in interface IViewComponent
public void undoChanges()
undoChanges
in interface IViewComponent
public boolean isChangesSaved()
isChangesSaved
in interface IViewComponent
public void setView(View view)
setView
in interface IViewComponent
public boolean allowsHorizontalTraversel()
allowsHorizontalTraversel
in interface IViewComponent
public boolean allowsVerticalTraversel()
allowsVerticalTraversel
in interface IViewComponent
public void cancelEdit()
cancelEdit
in interface IViewComponent
public DcModule getModule()
getModule
in interface IViewComponent
public View getView()
getView
in interface IViewComponent
public DcObject getItemAt(int idx)
getItemAt
in interface IViewComponent
public int getItemCount()
getItemCount
in interface IViewComponent
public java.util.List<DcObject> getItems()
getItems
in interface IViewComponent
public java.util.List<java.lang.String> getItemKeys()
getItemKeys
in interface IViewComponent
public java.util.List<DcObject> getSelectedItems()
public java.util.List<java.lang.String> getSelectedItemKeys()
getSelectedItemKeys
in interface IViewComponent
public DcObject getItem(java.lang.String ID)
getItem
in interface IViewComponent
public void afterUpdate()
afterUpdate
in interface IViewComponent
public void deselect()
deselect
in interface IViewComponent
public void fireIntervalAdded(int from, int to)
public void setSelected(int index)
setSelected
in interface IViewComponent
public void applySettings()
applySettings
in interface IViewComponent
public int update(java.lang.String ID)
update
in interface IViewComponent
public int update(java.lang.String ID, DcObject dco)
update
in interface IViewComponent
public int[] getChangedIndices()
getChangedIndices
in interface IViewComponent
public boolean remove(java.lang.String[] keys)
remove
in interface IViewComponent
public DcObject getSelectedItem()
getSelectedItem
in interface IViewComponent
public int add(java.lang.String key)
add
in interface IViewComponent
public void add(java.util.Map<java.lang.String,java.lang.Integer> keys)
add
in interface IViewComponent
public int add(DcObject dco)
add
in interface IViewComponent
public void add(java.util.List<? extends DcObject> objects)
add
in interface IViewComponent
public void clear()
clear
in interface IViewComponent
clear
in class DcList
public DcObjectListElement getDisplayElement(int module)
public void addSelectionListener(javax.swing.event.ListSelectionListener lsl)
addSelectionListener
in interface IViewComponent
public void removeSelectionListener(javax.swing.event.ListSelectionListener lsl)
removeSelectionListener
in interface IViewComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |