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