public class DefaultJListWithCheckbox extends JListWithCheckbox
javax.swing.JList.AccessibleJList, javax.swing.JList.DropLocationjavax.swing.JComponent.AccessibleJComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
DefaultJListWithCheckbox(javax.swing.JList wrappedList) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChecksListener(javax.swing.event.ListSelectionListener listener) |
void |
addListSelectionListener(javax.swing.event.ListSelectionListener listener) |
void |
addSelectionInterval(int anchor,
int lead) |
void |
clearSelection() |
void |
ensureIndexIsVisible(int index) |
protected void |
fireCheckedsListeners(javax.swing.event.ListSelectionEvent event) |
javax.accessibility.AccessibleContext |
getAccessibleContext() |
int |
getAnchorSelectionIndex() |
java.awt.Rectangle |
getCellBounds(int index0,
int index1) |
javax.swing.ListCellRenderer |
getCellRenderer() |
javax.swing.ListSelectionModel |
getCheckedModel() |
javax.swing.event.ListSelectionListener[] |
getChecksListeners() |
boolean |
getDragEnabled() |
int |
getFirstVisibleIndex() |
int |
getFixedCellHeight() |
int |
getFixedCellWidth() |
int |
getLastVisibleIndex() |
int |
getLayoutOrientation() |
int |
getLeadSelectionIndex() |
javax.swing.event.ListSelectionListener[] |
getListSelectionListeners() |
int |
getMaxSelectionIndex() |
int |
getMinSelectionIndex() |
javax.swing.ListModel |
getModel() |
int |
getNextMatch(java.lang.String prefix,
int startIndex,
javax.swing.text.Position.Bias bias) |
java.awt.Dimension |
getPreferredScrollableViewportSize() |
java.lang.Object |
getPrototypeCellValue() |
int |
getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction) |
boolean |
getScrollableTracksViewportHeight() |
boolean |
getScrollableTracksViewportWidth() |
int |
getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction) |
int |
getSelectedIndex() |
int[] |
getSelectedIndices() |
java.lang.Object |
getSelectedValue() |
java.lang.Object[] |
getSelectedValues()
Deprecated.
|
java.util.List |
getSelectedValuesList() |
java.awt.Color |
getSelectionBackground() |
java.awt.Color |
getSelectionForeground() |
int |
getSelectionMode() |
javax.swing.ListSelectionModel |
getSelectionModel() |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event) |
javax.swing.plaf.ListUI |
getUI() |
java.lang.String |
getUIClassID() |
boolean |
getValueIsAdjusting() |
int |
getVisibleRowCount() |
java.awt.Point |
indexToLocation(int index) |
boolean |
isSelectedIndex(int index) |
boolean |
isSelectionEmpty() |
int |
locationToIndex(java.awt.Point location) |
void |
removeChecksListener(javax.swing.event.ListSelectionListener listener) |
void |
removeListSelectionListener(javax.swing.event.ListSelectionListener listener) |
void |
removeSelectionInterval(int index0,
int index1) |
void |
setCellRenderer(javax.swing.ListCellRenderer cellRenderer) |
void |
setCheckedModel(javax.swing.ListSelectionModel checkedsModel) |
void |
setDragEnabled(boolean b) |
void |
setFixedCellHeight(int height) |
void |
setFixedCellWidth(int width) |
void |
setLayoutOrientation(int layoutOrientation) |
void |
setListData(java.lang.Object[] listData) |
void |
setListData(java.util.Vector listData) |
void |
setModel(javax.swing.ListModel model) |
void |
setPrototypeCellValue(java.lang.Object prototypeCellValue) |
void |
setSelectedIndex(int index) |
void |
setSelectedIndices(int[] indices) |
void |
setSelectedValue(java.lang.Object anObject,
boolean shouldScroll) |
void |
setSelectionBackground(java.awt.Color selectionBackground) |
void |
setSelectionForeground(java.awt.Color selectionForeground) |
void |
setSelectionInterval(int anchor,
int lead) |
void |
setSelectionMode(int selectionMode) |
void |
setSelectionModel(javax.swing.ListSelectionModel selectionModel) |
void |
setUI(javax.swing.plaf.ListUI ui) |
void |
setValueIsAdjusting(boolean b) |
void |
setVisibleRowCount(int visibleRowCount) |
void |
toggleCheck(int index) |
void |
updateUI() |
createSelectionModel, fireSelectionValueChanged, getDropLocation, getDropMode, paramString, setDropModeaddAncestorListener, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, updateadd, 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, transferFocusDownCycle, validate, validateTreeaction, 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, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic DefaultJListWithCheckbox(javax.swing.JList wrappedList)
public final void setCheckedModel(javax.swing.ListSelectionModel checkedsModel)
setCheckedModel in class JListWithCheckboxpublic void toggleCheck(int index)
toggleCheck in class JListWithCheckboxpublic javax.swing.plaf.ListUI getUI()
getUI in class javax.swing.JListpublic void setUI(javax.swing.plaf.ListUI ui)
setUI in class javax.swing.JListpublic void updateUI()
updateUI in class javax.swing.JListpublic java.lang.String getUIClassID()
getUIClassID in class javax.swing.JListpublic java.lang.Object getPrototypeCellValue()
getPrototypeCellValue in class javax.swing.JListpublic void setPrototypeCellValue(java.lang.Object prototypeCellValue)
setPrototypeCellValue in class javax.swing.JListpublic int getFixedCellWidth()
getFixedCellWidth in class javax.swing.JListpublic void setFixedCellWidth(int width)
setFixedCellWidth in class javax.swing.JListpublic int getFixedCellHeight()
getFixedCellHeight in class javax.swing.JListpublic void setFixedCellHeight(int height)
setFixedCellHeight in class javax.swing.JListpublic javax.swing.ListCellRenderer getCellRenderer()
getCellRenderer in class javax.swing.JListpublic void setCellRenderer(javax.swing.ListCellRenderer cellRenderer)
setCellRenderer in class javax.swing.JListpublic java.awt.Color getSelectionForeground()
getSelectionForeground in class javax.swing.JListpublic void setSelectionForeground(java.awt.Color selectionForeground)
setSelectionForeground in class javax.swing.JListpublic java.awt.Color getSelectionBackground()
getSelectionBackground in class javax.swing.JListpublic void setSelectionBackground(java.awt.Color selectionBackground)
setSelectionBackground in class javax.swing.JListpublic int getVisibleRowCount()
getVisibleRowCount in class javax.swing.JListpublic void setVisibleRowCount(int visibleRowCount)
setVisibleRowCount in class javax.swing.JListpublic int getLayoutOrientation()
getLayoutOrientation in class javax.swing.JListpublic void setLayoutOrientation(int layoutOrientation)
setLayoutOrientation in class javax.swing.JListpublic int getFirstVisibleIndex()
getFirstVisibleIndex in class javax.swing.JListpublic int getLastVisibleIndex()
getLastVisibleIndex in class javax.swing.JListpublic void ensureIndexIsVisible(int index)
ensureIndexIsVisible in class javax.swing.JListpublic void setDragEnabled(boolean b)
setDragEnabled in class javax.swing.JListpublic boolean getDragEnabled()
getDragEnabled in class javax.swing.JListpublic int getNextMatch(java.lang.String prefix,
int startIndex,
javax.swing.text.Position.Bias bias)
getNextMatch in class javax.swing.JListpublic java.lang.String getToolTipText(java.awt.event.MouseEvent event)
getToolTipText in class javax.swing.JListpublic int locationToIndex(java.awt.Point location)
locationToIndex in class javax.swing.JListpublic java.awt.Point indexToLocation(int index)
indexToLocation in class javax.swing.JListpublic java.awt.Rectangle getCellBounds(int index0,
int index1)
getCellBounds in class javax.swing.JListpublic javax.swing.ListModel getModel()
getModel in class javax.swing.JListpublic void setModel(javax.swing.ListModel model)
setModel in class javax.swing.JListpublic void setListData(java.lang.Object[] listData)
setListData in class javax.swing.JListpublic void setListData(java.util.Vector listData)
setListData in class javax.swing.JListpublic javax.swing.ListSelectionModel getSelectionModel()
getSelectionModel in class javax.swing.JListpublic javax.swing.ListSelectionModel getCheckedModel()
getCheckedModel in class JListWithCheckboxpublic void addListSelectionListener(javax.swing.event.ListSelectionListener listener)
addListSelectionListener in class javax.swing.JListpublic void addChecksListener(javax.swing.event.ListSelectionListener listener)
addChecksListener in class JListWithCheckboxpublic void removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
removeListSelectionListener in class javax.swing.JListpublic void removeChecksListener(javax.swing.event.ListSelectionListener listener)
removeChecksListener in class JListWithCheckboxpublic javax.swing.event.ListSelectionListener[] getListSelectionListeners()
getListSelectionListeners in class javax.swing.JListpublic javax.swing.event.ListSelectionListener[] getChecksListeners()
getChecksListeners in class JListWithCheckboxprotected void fireCheckedsListeners(javax.swing.event.ListSelectionEvent event)
public void setSelectionModel(javax.swing.ListSelectionModel selectionModel)
setSelectionModel in class javax.swing.JListpublic void setSelectionMode(int selectionMode)
setSelectionMode in class javax.swing.JListpublic int getSelectionMode()
getSelectionMode in class javax.swing.JListpublic int getAnchorSelectionIndex()
getAnchorSelectionIndex in class javax.swing.JListpublic int getLeadSelectionIndex()
getLeadSelectionIndex in class javax.swing.JListpublic int getMinSelectionIndex()
getMinSelectionIndex in class javax.swing.JListpublic int getMaxSelectionIndex()
getMaxSelectionIndex in class javax.swing.JListpublic boolean isSelectedIndex(int index)
isSelectedIndex in class javax.swing.JListpublic boolean isSelectionEmpty()
isSelectionEmpty in class javax.swing.JListpublic void clearSelection()
clearSelection in class javax.swing.JListpublic void setSelectionInterval(int anchor,
int lead)
setSelectionInterval in class javax.swing.JListpublic void addSelectionInterval(int anchor,
int lead)
addSelectionInterval in class javax.swing.JListpublic void removeSelectionInterval(int index0,
int index1)
removeSelectionInterval in class javax.swing.JListpublic void setValueIsAdjusting(boolean b)
setValueIsAdjusting in class javax.swing.JListpublic boolean getValueIsAdjusting()
getValueIsAdjusting in class javax.swing.JListpublic int[] getSelectedIndices()
getSelectedIndices in class javax.swing.JListpublic void setSelectedIndex(int index)
setSelectedIndex in class javax.swing.JListpublic void setSelectedIndices(int[] indices)
setSelectedIndices in class javax.swing.JList@Deprecated public java.lang.Object[] getSelectedValues()
getSelectedValues in class javax.swing.JListpublic java.util.List getSelectedValuesList()
getSelectedValuesList in class javax.swing.JListpublic int getSelectedIndex()
getSelectedIndex in class javax.swing.JListpublic java.lang.Object getSelectedValue()
getSelectedValue in class javax.swing.JListpublic void setSelectedValue(java.lang.Object anObject,
boolean shouldScroll)
setSelectedValue in class javax.swing.JListpublic java.awt.Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize in interface javax.swing.ScrollablegetPreferredScrollableViewportSize in class javax.swing.JListpublic int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
getScrollableUnitIncrement in interface javax.swing.ScrollablegetScrollableUnitIncrement in class javax.swing.JListpublic int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
getScrollableBlockIncrement in interface javax.swing.ScrollablegetScrollableBlockIncrement in class javax.swing.JListpublic boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth in interface javax.swing.ScrollablegetScrollableTracksViewportWidth in class javax.swing.JListpublic boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight in interface javax.swing.ScrollablegetScrollableTracksViewportHeight in class javax.swing.JListpublic javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext in interface javax.accessibility.AccessiblegetAccessibleContext in class javax.swing.JList