public class JListWithCheckbox extends JList
| Modifier and Type | Class and Description |
|---|---|
class |
JListWithCheckbox.CheckListCellRenderer |
JList.AccessibleJList, JList.DropLocationJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyHORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAPaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
JListWithCheckbox(JList wrappedList) |
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 JListWithCheckbox(JList wrappedList)
public void toggleCheck(int index)
public String getUIClassID()
getUIClassID in class JListpublic Object getPrototypeCellValue()
getPrototypeCellValue in class JListpublic void setPrototypeCellValue(Object prototypeCellValue)
setPrototypeCellValue in class JListpublic int getFixedCellWidth()
getFixedCellWidth in class JListpublic void setFixedCellWidth(int width)
setFixedCellWidth in class JListpublic int getFixedCellHeight()
getFixedCellHeight in class JListpublic void setFixedCellHeight(int height)
setFixedCellHeight in class JListpublic ListCellRenderer getCellRenderer()
getCellRenderer in class JListpublic void setCellRenderer(ListCellRenderer cellRenderer)
setCellRenderer in class JListpublic Color getSelectionForeground()
getSelectionForeground in class JListpublic void setSelectionForeground(Color selectionForeground)
setSelectionForeground in class JListpublic Color getSelectionBackground()
getSelectionBackground in class JListpublic void setSelectionBackground(Color selectionBackground)
setSelectionBackground in class JListpublic int getVisibleRowCount()
getVisibleRowCount in class JListpublic void setVisibleRowCount(int visibleRowCount)
setVisibleRowCount in class JListpublic int getLayoutOrientation()
getLayoutOrientation in class JListpublic void setLayoutOrientation(int layoutOrientation)
setLayoutOrientation in class JListpublic int getFirstVisibleIndex()
getFirstVisibleIndex in class JListpublic int getLastVisibleIndex()
getLastVisibleIndex in class JListpublic void ensureIndexIsVisible(int index)
ensureIndexIsVisible in class JListpublic void setDragEnabled(boolean b)
setDragEnabled in class JListpublic boolean getDragEnabled()
getDragEnabled in class JListpublic int getNextMatch(String prefix, int startIndex, Position.Bias bias)
getNextMatch in class JListpublic String getToolTipText(MouseEvent event)
getToolTipText in class JListpublic int locationToIndex(Point location)
locationToIndex in class JListpublic Point indexToLocation(int index)
indexToLocation in class JListpublic Rectangle getCellBounds(int index0, int index1)
getCellBounds in class JListpublic void setListData(Object[] listData)
setListData in class JListpublic void setListData(Vector listData)
setListData in class JListpublic ListSelectionModel getSelectionModel()
getSelectionModel in class JListpublic ListSelectionModel getCheckedModel()
public void addListSelectionListener(ListSelectionListener listener)
addListSelectionListener in class JListpublic void addChecksListener(ListSelectionListener listener)
public void removeListSelectionListener(ListSelectionListener listener)
removeListSelectionListener in class JListpublic void removeChecksListener(ListSelectionListener listener)
public ListSelectionListener[] getListSelectionListeners()
getListSelectionListeners in class JListpublic ListSelectionListener[] getChecksListeners()
protected void fireCheckedsListeners(ListSelectionEvent event)
public void setSelectionModel(ListSelectionModel selectionModel)
setSelectionModel in class JListpublic void setSelectionMode(int selectionMode)
setSelectionMode in class JListpublic int getSelectionMode()
getSelectionMode in class JListpublic int getAnchorSelectionIndex()
getAnchorSelectionIndex in class JListpublic int getLeadSelectionIndex()
getLeadSelectionIndex in class JListpublic int getMinSelectionIndex()
getMinSelectionIndex in class JListpublic int getMaxSelectionIndex()
getMaxSelectionIndex in class JListpublic boolean isSelectedIndex(int index)
isSelectedIndex in class JListpublic boolean isSelectionEmpty()
isSelectionEmpty in class JListpublic void clearSelection()
clearSelection in class JListpublic void setSelectionInterval(int anchor,
int lead)
setSelectionInterval in class JListpublic void addSelectionInterval(int anchor,
int lead)
addSelectionInterval in class JListpublic void removeSelectionInterval(int index0,
int index1)
removeSelectionInterval in class JListpublic void setValueIsAdjusting(boolean b)
setValueIsAdjusting in class JListpublic boolean getValueIsAdjusting()
getValueIsAdjusting in class JListpublic int[] getSelectedIndices()
getSelectedIndices in class JListpublic void setSelectedIndex(int index)
setSelectedIndex in class JListpublic void setSelectedIndices(int[] indices)
setSelectedIndices in class JList@Deprecated public Object[] getSelectedValues()
getSelectedValues in class JListpublic List getSelectedValuesList()
getSelectedValuesList in class JListpublic int getSelectedIndex()
getSelectedIndex in class JListpublic Object getSelectedValue()
getSelectedValue in class JListpublic void setSelectedValue(Object anObject, boolean shouldScroll)
setSelectedValue in class JListpublic Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize in interface ScrollablegetPreferredScrollableViewportSize in class JListpublic int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement in interface ScrollablegetScrollableUnitIncrement in class JListpublic int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement in interface ScrollablegetScrollableBlockIncrement in class JListpublic boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth in interface ScrollablegetScrollableTracksViewportWidth in class JListpublic boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight in interface ScrollablegetScrollableTracksViewportHeight in class JListpublic AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JList