|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--com.zfqjava.swing.JSidePane
|
+--com.zfqjava.swing.JSideBar
JSideBar provides a side bar.
ValueAction, Serialized Form| Inner Class Summary | |
protected class |
JSideBar.AccessibleJSideBar
This class implements accessibility support for the JSideBar class. |
| Inner classes inherited from class com.zfqjava.swing.JSidePane |
JSidePane.AccessibleJSidePane |
| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
static int |
LARGE_ICON_VIEW_MODE
Identifies the large icon view mode. |
static int |
LIST_VIEW_MODE
Identifies the list view mode. |
static int |
SMALL_ICON_VIEW_MODE
Identifies the small icon view mode. |
static int |
THUMBNAILS_VIEW_MODE
Identifies the thumbnails view mode. |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JSideBar()
Constructs a JSideBar with an empty model. |
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener listener)
Adds an action listener to the JSideBar. |
void |
addGroup(javax.swing.ListModel model)
Adds the group listmodel. |
void |
addGroup(javax.swing.ListModel model,
javax.swing.Action action)
Adds the group componet with the group header action. |
void |
addGroupAt(javax.swing.ListModel model,
javax.swing.Action action,
int index)
Adds the group listmodel at the specify index with the group header action. |
protected javax.swing.JList |
createList(javax.swing.ListModel model)
Creates the JList for the specified ListModel. |
protected void |
fireActionPerformed(java.awt.event.ActionEvent e)
Notifies all listeners that have registered interest for notification on this event type. |
javax.accessibility.AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JSideBar. |
java.awt.event.ActionListener[] |
getActionListeners()
Returns an array of all the action listeners registered on this JSideBar. |
DefaultCellEditor |
getCellEditor()
Returns the cell editor for render list item. |
CellProvider |
getCellProvider()
Returns the cell provider for renderer and editor. |
DefaultCellRenderer |
getCellRenderer()
Returns the cell renderer for render list item. |
protected javax.swing.JList |
getListAt(int index)
Returns the JList at the specified group index. |
java.lang.Object |
getSelectedItem()
Returns the selected item. |
int |
getViewMode()
Gets the JSideBar display mode in use. |
protected int |
indexOfListModel(javax.swing.ListModel model)
Returns the group index for the specified list model. |
protected java.lang.String |
paramString()
Returns a string representation of this JSideBar. |
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes the specified action listener from the JSideBar. |
void |
removeGroup(javax.swing.ListModel model)
Removes the group listmodel. |
void |
setCellEditor(DefaultCellEditor cellEditor)
Sets the cell editor for render list item. |
void |
setCellProvider(CellProvider cellProvider)
Sets the cell provider for renderer and editor. |
void |
setCellRenderer(DefaultCellRenderer cellRenderer)
Sets the cell renderer for render list item. |
void |
setSelectionMode(int selectionMode)
Determines whether single-item or multiple-item selections are allowed. |
void |
setViewMode(int mode)
Sets the JSideBar display mode. |
void |
updateUI()
|
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SMALL_ICON_VIEW_MODE
public static final int LARGE_ICON_VIEW_MODE
public static final int LIST_VIEW_MODE
public static final int THUMBNAILS_VIEW_MODE
| Constructor Detail |
public JSideBar()
JSideBar with an empty model.| Method Detail |
public void updateUI()
updateUI in class JSidePanepublic void setCellRenderer(DefaultCellRenderer cellRenderer)
cellRenderer - the cell renderergetCellRenderer()public DefaultCellRenderer getCellRenderer()
setCellRenderer(com.zfqjava.swing.cell.DefaultCellRenderer)public void setCellEditor(DefaultCellEditor cellEditor)
cellEditor - the cell editorgetCellEditor()public DefaultCellEditor getCellEditor()
setCellEditor(com.zfqjava.swing.cell.DefaultCellEditor)public void setCellProvider(CellProvider cellProvider)
cellProvider - the cell providergetCellProvider()public CellProvider getCellProvider()
setCellProviderpublic void setViewMode(int mode)
JSideBar display mode.mode - one of 4 legal values:
java.lang.IllegalArgumentException - if the mode illegalpublic int getViewMode()
JSideBar display mode in use.public void setSelectionMode(int selectionMode)
JSidePaneselectionMode values are allowed:
ListSelectionModel.SINGLE_SELECTION
Only one list index can be selected at a time. In this
mode the setSelectionInterval and
addSelectionInterval
methods are equivalent, and only the second index
argument is used.
ListSelectionModel.SINGLE_INTERVAL_SELECTION
One contiguous index interval can be selected at a time.
In this mode setSelectionInterval and
addSelectionInterval
are equivalent.
ListSelectionModel.MULTIPLE_INTERVAL_SELECTION
In this mode, there's no restriction on what can be selected.
This is the default.
setSelectionMode in class JSidePanecom.zfqjava.swing.JSidePaneselectionMode - an integer specifying the type of selections
that are permissibleJSidePane.getSelectionMode()public void addGroup(javax.swing.ListModel model)
model - the listmodel to add
public void addGroup(javax.swing.ListModel model,
javax.swing.Action action)
model - the group listmodelaction - the group action
public void addGroupAt(javax.swing.ListModel model,
javax.swing.Action action,
int index)
model - the listmodel to addaction - the group actionindex - the listmodel indexjava.lang.IndexOutOfBoundsException - public void removeGroup(javax.swing.ListModel model)
model - the listmodel to removeprotected javax.swing.JList createList(javax.swing.ListModel model)
mode - the list modelprotected javax.swing.JList getListAt(int index)
JSidePane.getComponentAt(int)protected int indexOfListModel(javax.swing.ListModel model)
mode - the list modelpublic java.lang.Object getSelectedItem()
public void addActionListener(java.awt.event.ActionListener listener)
JSideBar.listener - the listener to addJSideBar()public void removeActionListener(java.awt.event.ActionListener listener)
JSideBar.listener - the listener to removepublic java.awt.event.ActionListener[] getActionListeners()
ActionListeners or an empty
array if no action listeners are currently registeredaddActionListener(java.awt.event.ActionListener),
removeActionListener(java.awt.event.ActionListener)protected void fireActionPerformed(java.awt.event.ActionEvent e)
e - the action event to fireEventListenerListprotected java.lang.String paramString()
null.paramString in class JSidePanepublic javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext in interface javax.accessibility.AccessiblegetAccessibleContext in class JSidePane
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||