T
- The type of the item in each row.public class JCheckCombo<T> extends JCustomComboBox
Modifier and Type | Class and Description |
---|---|
protected class |
JCheckCombo.AccessibleJCheckComboBox |
class |
JCheckCombo.PoppedRenderer |
class |
JCheckCombo.UnpoppedRenderer
Class to render the contents of the unpopped section of the combo box
|
javax.swing.JComboBox.AccessibleJComboBox, javax.swing.JComboBox.KeySelectionManager
javax.swing.JComponent.AccessibleJComponent
popupComp
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
JCheckCombo() |
JCheckCombo(javax.swing.ListModel listModel) |
JCheckCombo(javax.swing.ListModel listModel,
javax.swing.ListSelectionModel selModel) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
convertValueToText(int index) |
void |
firePopupMenuWillBecomeInvisible() |
void |
firePopupMenuWillBecomeVisible() |
javax.accessibility.AccessibleContext |
getAccessibleContext() |
CheckComboText |
getCheckComboText() |
CheckComboModel |
getCheckModel() |
javax.swing.ComboBoxModel |
getModel() |
T[] |
getSelectedObjects()
Returns an array containing the selected items.
|
javax.swing.ListSelectionModel |
getSelectionModel() |
int |
getVisibleRowCount() |
static void |
main(java.lang.String[] args)
Demo code to display a JFixListCombo
|
void |
setCheckComboText(CheckComboText checkComboText)
Set the object to provide text for the check combo.
|
void |
setModel(CheckComboModel model)
Set the CheckComboModel to use in this JCheckCombo
|
void |
setModel(javax.swing.ListModel listModel)
Creates a CheckComboModel with the given list of items and nothing selected
|
void |
setModel(javax.swing.ListModel listModel,
javax.swing.ListSelectionModel selModel)
Creates a CheckComboModel with the given list of items and a list of
their corresponding selectedness.
|
void |
setPoppedRenderer(javax.swing.table.TableCellRenderer aRenderer)
Set the renderer used to display the item description in the popped
part of the combo.
|
void |
setVisibleRowCount(int visibleRowCount) |
protected void |
updatePopupPreferredSize() |
getPopupComponent, setPopupComponent, updateUI
actionPerformed, actionPropertyChanged, addActionListener, addItem, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, contentsChanged, createActionPropertyChangeListener, createDefaultKeySelectionManager, fireActionEvent, fireItemStateChanged, firePopupMenuCanceled, getAction, getActionCommand, getActionListeners, getEditor, getItemAt, getItemCount, getItemListeners, getKeySelectionManager, getMaximumRowCount, getPopupMenuListeners, getPrototypeDisplayValue, getRenderer, getSelectedIndex, getSelectedItem, getUI, getUIClassID, hidePopup, insertItemAt, installAncestorListener, intervalAdded, intervalRemoved, isEditable, isLightWeightPopupEnabled, isPopupVisible, paramString, processKeyEvent, removeActionListener, removeAllItems, removeItem, removeItemAt, removeItemListener, removePopupMenuListener, selectedItemChanged, selectWithKeyChar, setAction, setActionCommand, setEditable, setEditor, setEnabled, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPopupVisible, setPrototypeDisplayValue, setRenderer, setSelectedIndex, setSelectedItem, setUI, showPopup
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, 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, 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, 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 JCheckCombo()
public JCheckCombo(javax.swing.ListModel listModel, javax.swing.ListSelectionModel selModel)
public JCheckCombo(javax.swing.ListModel listModel)
public void setModel(javax.swing.ListModel listModel, javax.swing.ListSelectionModel selModel)
listModel
- selModel
- public void setModel(javax.swing.ListModel listModel)
listModel
- public void setModel(CheckComboModel model)
model
- public void setPoppedRenderer(javax.swing.table.TableCellRenderer aRenderer)
aRenderer
- public void setCheckComboText(CheckComboText checkComboText)
checkComboText
- public CheckComboText getCheckComboText()
protected void updatePopupPreferredSize()
public void firePopupMenuWillBecomeVisible()
firePopupMenuWillBecomeVisible
in class javax.swing.JComboBox
public void firePopupMenuWillBecomeInvisible()
firePopupMenuWillBecomeInvisible
in class javax.swing.JComboBox
public void setVisibleRowCount(int visibleRowCount)
public int getVisibleRowCount()
public T[] getSelectedObjects()
getSelectedObjects
in interface java.awt.ItemSelectable
getSelectedObjects
in class javax.swing.JComboBox
Objects
containing the selected items.public javax.swing.ListSelectionModel getSelectionModel()
public CheckComboModel getCheckModel()
public javax.swing.ComboBoxModel getModel()
getModel
in class javax.swing.JComboBox
public javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext
in interface javax.accessibility.Accessible
getAccessibleContext
in class javax.swing.JComboBox
protected java.lang.String convertValueToText(int index)
public static void main(java.lang.String[] args)
args
-