public class JBList<E> extends javax.swing.JList<E> implements ComponentWithEmptyText, ComponentWithExpandableItems<java.lang.Integer>
Modifier and Type | Class and Description |
---|---|
protected class |
JBList.AccessibleJBList |
static class |
JBList.StripedListCellRenderer |
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 |
---|
JBList() |
JBList(java.util.Collection<? extends E> items) |
JBList(E... listData) |
JBList(javax.swing.ListModel<E> dataModel) |
Modifier and Type | Method and Description |
---|---|
static <T> javax.swing.DefaultListModel<T> |
createDefaultListModel(java.lang.Iterable<? extends T> items) |
static <T> javax.swing.DefaultListModel<T> |
createDefaultListModel(T... items) |
protected ExpandableItemsHandler<java.lang.Integer> |
createExpandableItemsHandler() |
void |
disableEmptyText() |
protected void |
doCopyToClipboardAction() |
void |
doLayout() |
javax.accessibility.AccessibleContext |
getAccessibleContext() |
protected java.awt.Graphics |
getComponentGraphics(java.awt.Graphics graphics) |
StatusText |
getEmptyText() |
ExpandableItemsHandler<java.lang.Integer> |
getExpandableItemsHandler() |
int |
getItemsCount() |
java.awt.Dimension |
getPreferredSize() |
void |
installCellRenderer(NotNullFunction<? super E,? extends javax.swing.JComponent> fun) |
boolean |
isEmpty() |
void |
paint(java.awt.Graphics g) |
protected void |
paintComponent(java.awt.Graphics g) |
void |
removeNotify() |
void |
repaint(long tm,
int x,
int y,
int width,
int height) |
void |
setCellRenderer(javax.swing.ListCellRenderer<? super E> cellRenderer) |
void |
setDataProvider(DataProvider provider) |
void |
setEmptyText(java.lang.String text) |
void |
setExpandableItemsEnabled(boolean enabled) |
void |
setPaintBusy(boolean paintBusy) |
void |
setUI(javax.swing.plaf.ListUI ui) |
addListSelectionListener, addSelectionInterval, clearSelection, createSelectionModel, ensureIndexIsVisible, fireSelectionValueChanged, getAnchorSelectionIndex, getCellBounds, getCellRenderer, getDragEnabled, getDropLocation, getDropMode, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLastVisibleIndex, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPreferredScrollableViewportSize, getPrototypeCellValue, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectedValuesList, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getToolTipText, getUI, getUIClassID, getValueIsAdjusting, getVisibleRowCount, indexToLocation, isSelectedIndex, isSelectionEmpty, locationToIndex, paramString, removeListSelectionListener, removeSelectionInterval, setDragEnabled, setDropMode, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setListData, setModel, setPrototypeCellValue, setSelectedIndex, setSelectedIndices, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionInterval, setSelectionMode, setSelectionModel, setValueIsAdjusting, setVisibleRowCount, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, 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, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, 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, 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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public JBList()
public JBList(javax.swing.ListModel<E> dataModel)
public JBList(E... listData)
public JBList(java.util.Collection<? extends E> items)
public static <T> javax.swing.DefaultListModel<T> createDefaultListModel(T... items)
public static <T> javax.swing.DefaultListModel<T> createDefaultListModel(java.lang.Iterable<? extends T> items)
public void removeNotify()
removeNotify
in class javax.swing.JComponent
public void doLayout()
doLayout
in class java.awt.Container
protected java.awt.Graphics getComponentGraphics(java.awt.Graphics graphics)
getComponentGraphics
in class javax.swing.JComponent
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public void repaint(long tm, int x, int y, int width, int height)
repaint
in class javax.swing.JComponent
public void setUI(javax.swing.plaf.ListUI ui)
setUI
in class javax.swing.JList<E>
public void setPaintBusy(boolean paintBusy)
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
protected void doCopyToClipboardAction()
public boolean isEmpty()
public int getItemsCount()
public StatusText getEmptyText()
getEmptyText
in interface ComponentWithEmptyText
public void setEmptyText(java.lang.String text)
public ExpandableItemsHandler<java.lang.Integer> getExpandableItemsHandler()
getExpandableItemsHandler
in interface ComponentWithExpandableItems<java.lang.Integer>
protected ExpandableItemsHandler<java.lang.Integer> createExpandableItemsHandler()
public void setExpandableItemsEnabled(boolean enabled)
setExpandableItemsEnabled
in interface ComponentWithExpandableItems<java.lang.Integer>
public void setCellRenderer(javax.swing.ListCellRenderer<? super E> cellRenderer)
setCellRenderer
in class javax.swing.JList<E>
public void installCellRenderer(NotNullFunction<? super E,? extends javax.swing.JComponent> fun)
public void setDataProvider(DataProvider provider)
public void disableEmptyText()
public javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext
in interface javax.accessibility.Accessible
getAccessibleContext
in class javax.swing.JList<E>