|
Swing 1.1 | |||||||||
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 | +--javax.swing.AbstractButton | +--javax.swing.JButton | +--javax.swing.plaf.metal.MetalComboBoxButton
JButton subclass to help out MetalComboBoxUI
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
MetalComboBoxButton
, Serialized FormInner classes inherited from class javax.swing.JButton |
JButton.AccessibleJButton |
Inner classes inherited from class javax.swing.AbstractButton |
AbstractButton.AccessibleAbstractButton,
AbstractButton.ButtonChangeListener |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Field Summary | |
protected JComboBox |
comboBox
|
protected Icon |
comboIcon
|
protected boolean |
iconOnly
|
protected JList |
listBox
|
protected CellRendererPane |
rendererPane
|
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 |
Constructor Summary | |
MetalComboBoxButton(JComboBox cb,
Icon i,
boolean onlyIcon,
CellRendererPane pane,
JList list)
|
|
MetalComboBoxButton(JComboBox cb,
Icon i,
CellRendererPane pane,
JList list)
|
Method Summary | |
JComboBox |
getComboBox()
|
Icon |
getComboIcon()
|
boolean |
isFocusTraversable()
|
boolean |
isIconOnly()
|
void |
paintComponent(java.awt.Graphics g)
|
void |
setComboBox(JComboBox cb)
|
void |
setComboIcon(Icon i)
|
void |
setIconOnly(boolean isIconOnly)
|
Methods inherited from class javax.swing.JButton |
getAccessibleContext,
getUIClassID,
isDefaultButton,
isDefaultCapable,
paramString,
setDefaultCapable,
updateUI |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
bounds,
checkImage,
checkImage,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
getBackground,
getBounds,
getColorModel,
getCursor,
getFont,
getFontMetrics,
getForeground,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isEnabled,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setCursor,
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 |
protected JComboBox comboBox
protected JList listBox
protected CellRendererPane rendererPane
protected Icon comboIcon
protected boolean iconOnly
Constructor Detail |
public MetalComboBoxButton(JComboBox cb, Icon i, CellRendererPane pane, JList list)
public MetalComboBoxButton(JComboBox cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList list)
Method Detail |
public final JComboBox getComboBox()
public final void setComboBox(JComboBox cb)
public final Icon getComboIcon()
public final void setComboIcon(Icon i)
public final boolean isIconOnly()
public final void setIconOnly(boolean isIconOnly)
public boolean isFocusTraversable()
public void paintComponent(java.awt.Graphics g)
|
Swing 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |