public class DefaultJListWithCheckbox extends JListWithCheckbox
javax.swing.JList.AccessibleJList, javax.swing.JList.DropLocation
javax.swing.JComponent.AccessibleJComponent
listenerList, 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, setDropMode
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, 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, 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, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public DefaultJListWithCheckbox(javax.swing.JList wrappedList)
public final void setCheckedModel(javax.swing.ListSelectionModel checkedsModel)
setCheckedModel
in class JListWithCheckbox
public void toggleCheck(int index)
toggleCheck
in class JListWithCheckbox
public javax.swing.plaf.ListUI getUI()
getUI
in class javax.swing.JList
public void setUI(javax.swing.plaf.ListUI ui)
setUI
in class javax.swing.JList
public void updateUI()
updateUI
in class javax.swing.JList
public java.lang.String getUIClassID()
getUIClassID
in class javax.swing.JList
public java.lang.Object getPrototypeCellValue()
getPrototypeCellValue
in class javax.swing.JList
public void setPrototypeCellValue(java.lang.Object prototypeCellValue)
setPrototypeCellValue
in class javax.swing.JList
public int getFixedCellWidth()
getFixedCellWidth
in class javax.swing.JList
public void setFixedCellWidth(int width)
setFixedCellWidth
in class javax.swing.JList
public int getFixedCellHeight()
getFixedCellHeight
in class javax.swing.JList
public void setFixedCellHeight(int height)
setFixedCellHeight
in class javax.swing.JList
public javax.swing.ListCellRenderer getCellRenderer()
getCellRenderer
in class javax.swing.JList
public void setCellRenderer(javax.swing.ListCellRenderer cellRenderer)
setCellRenderer
in class javax.swing.JList
public java.awt.Color getSelectionForeground()
getSelectionForeground
in class javax.swing.JList
public void setSelectionForeground(java.awt.Color selectionForeground)
setSelectionForeground
in class javax.swing.JList
public java.awt.Color getSelectionBackground()
getSelectionBackground
in class javax.swing.JList
public void setSelectionBackground(java.awt.Color selectionBackground)
setSelectionBackground
in class javax.swing.JList
public int getVisibleRowCount()
getVisibleRowCount
in class javax.swing.JList
public void setVisibleRowCount(int visibleRowCount)
setVisibleRowCount
in class javax.swing.JList
public int getLayoutOrientation()
getLayoutOrientation
in class javax.swing.JList
public void setLayoutOrientation(int layoutOrientation)
setLayoutOrientation
in class javax.swing.JList
public int getFirstVisibleIndex()
getFirstVisibleIndex
in class javax.swing.JList
public int getLastVisibleIndex()
getLastVisibleIndex
in class javax.swing.JList
public void ensureIndexIsVisible(int index)
ensureIndexIsVisible
in class javax.swing.JList
public void setDragEnabled(boolean b)
setDragEnabled
in class javax.swing.JList
public boolean getDragEnabled()
getDragEnabled
in class javax.swing.JList
public int getNextMatch(java.lang.String prefix, int startIndex, javax.swing.text.Position.Bias bias)
getNextMatch
in class javax.swing.JList
public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
getToolTipText
in class javax.swing.JList
public int locationToIndex(java.awt.Point location)
locationToIndex
in class javax.swing.JList
public java.awt.Point indexToLocation(int index)
indexToLocation
in class javax.swing.JList
public java.awt.Rectangle getCellBounds(int index0, int index1)
getCellBounds
in class javax.swing.JList
public javax.swing.ListModel getModel()
getModel
in class javax.swing.JList
public void setModel(javax.swing.ListModel model)
setModel
in class javax.swing.JList
public void setListData(java.lang.Object[] listData)
setListData
in class javax.swing.JList
public void setListData(java.util.Vector listData)
setListData
in class javax.swing.JList
public javax.swing.ListSelectionModel getSelectionModel()
getSelectionModel
in class javax.swing.JList
public javax.swing.ListSelectionModel getCheckedModel()
getCheckedModel
in class JListWithCheckbox
public void addListSelectionListener(javax.swing.event.ListSelectionListener listener)
addListSelectionListener
in class javax.swing.JList
public void addChecksListener(javax.swing.event.ListSelectionListener listener)
addChecksListener
in class JListWithCheckbox
public void removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
removeListSelectionListener
in class javax.swing.JList
public void removeChecksListener(javax.swing.event.ListSelectionListener listener)
removeChecksListener
in class JListWithCheckbox
public javax.swing.event.ListSelectionListener[] getListSelectionListeners()
getListSelectionListeners
in class javax.swing.JList
public javax.swing.event.ListSelectionListener[] getChecksListeners()
getChecksListeners
in class JListWithCheckbox
protected void fireCheckedsListeners(javax.swing.event.ListSelectionEvent event)
public void setSelectionModel(javax.swing.ListSelectionModel selectionModel)
setSelectionModel
in class javax.swing.JList
public void setSelectionMode(int selectionMode)
setSelectionMode
in class javax.swing.JList
public int getSelectionMode()
getSelectionMode
in class javax.swing.JList
public int getAnchorSelectionIndex()
getAnchorSelectionIndex
in class javax.swing.JList
public int getLeadSelectionIndex()
getLeadSelectionIndex
in class javax.swing.JList
public int getMinSelectionIndex()
getMinSelectionIndex
in class javax.swing.JList
public int getMaxSelectionIndex()
getMaxSelectionIndex
in class javax.swing.JList
public boolean isSelectedIndex(int index)
isSelectedIndex
in class javax.swing.JList
public boolean isSelectionEmpty()
isSelectionEmpty
in class javax.swing.JList
public void clearSelection()
clearSelection
in class javax.swing.JList
public void setSelectionInterval(int anchor, int lead)
setSelectionInterval
in class javax.swing.JList
public void addSelectionInterval(int anchor, int lead)
addSelectionInterval
in class javax.swing.JList
public void removeSelectionInterval(int index0, int index1)
removeSelectionInterval
in class javax.swing.JList
public void setValueIsAdjusting(boolean b)
setValueIsAdjusting
in class javax.swing.JList
public boolean getValueIsAdjusting()
getValueIsAdjusting
in class javax.swing.JList
public int[] getSelectedIndices()
getSelectedIndices
in class javax.swing.JList
public void setSelectedIndex(int index)
setSelectedIndex
in class javax.swing.JList
public void setSelectedIndices(int[] indices)
setSelectedIndices
in class javax.swing.JList
@Deprecated public java.lang.Object[] getSelectedValues()
getSelectedValues
in class javax.swing.JList
public java.util.List getSelectedValuesList()
getSelectedValuesList
in class javax.swing.JList
public int getSelectedIndex()
getSelectedIndex
in class javax.swing.JList
public java.lang.Object getSelectedValue()
getSelectedValue
in class javax.swing.JList
public void setSelectedValue(java.lang.Object anObject, boolean shouldScroll)
setSelectedValue
in class javax.swing.JList
public java.awt.Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize
in interface javax.swing.Scrollable
getPreferredScrollableViewportSize
in class javax.swing.JList
public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface javax.swing.Scrollable
getScrollableUnitIncrement
in class javax.swing.JList
public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement
in interface javax.swing.Scrollable
getScrollableBlockIncrement
in class javax.swing.JList
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface javax.swing.Scrollable
getScrollableTracksViewportWidth
in class javax.swing.JList
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface javax.swing.Scrollable
getScrollableTracksViewportHeight
in class javax.swing.JList
public javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext
in interface javax.accessibility.Accessible
getAccessibleContext
in class javax.swing.JList