public class ButtonSelection extends JComponent
| Modifier and Type | Class and Description |
|---|---|
protected class |
ButtonSelection.Action |
protected class |
ButtonSelection.EArrowButtonSelection |
protected class |
ButtonSelection.EButtonSelection |
protected class |
ButtonSelection.RolloverHandler |
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected ButtonSelection.Action |
actionMenu |
protected JButton |
button |
static String |
BUTTON_SELECTION
The name of class.
|
static int |
defaultArrowButtonWidth |
static Boolean |
defaultButtonSelectionCapable |
static Boolean |
defaultButtonSelectionContentAreaFilled |
static Boolean |
defaultButtonSelectionPaintFocus |
static Boolean |
defaultMenuButtonSelectionCapable |
static Boolean |
defaultMenuButtonSelectionContentAreaFilled |
static Boolean |
defaultMenuButtonSelectionPaintFocus |
protected boolean |
highlight |
static String |
MENU_BUTTON_SELECTION
The name of class.
|
protected JButton |
menuButton |
protected JList |
menuList |
static String |
TOOLBAR_NAVIGATOR_MENU_BUTTON_SELECTION
The name of class.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
ButtonSelection() |
ButtonSelection(boolean highlight) |
ButtonSelection(boolean highlight,
boolean rollover) |
ButtonSelection(ButtonSelection.Action a,
boolean highlight) |
ButtonSelection(Hashtable h) |
ButtonSelection(Icon icon,
boolean highlight) |
ButtonSelection(String text,
boolean highlight) |
ButtonSelection(String text,
Icon icon,
boolean highlight) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener a) |
void |
addActionMenuListener(ActionListener action) |
protected void |
changeButtons() |
ButtonSelection.Action |
getActionMenu() |
JButton |
getButton() |
JPopupMenu |
getMenu() |
JButton |
getMenuButton() |
JList |
getMenuList() |
Dimension |
getPreferredSize() |
protected void |
init(boolean highlight) |
void |
repaint() |
void |
setEnabled(boolean enabled) |
void |
setIcon(Icon icon) |
void |
setMargin(Insets insets) |
void |
setMenu(JPopupMenu menu) |
void |
setMenuList(JList menuList) |
void |
setRolloverEnabled(boolean roll) |
void |
setText(String text) |
void |
setToolTipText(String text) |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, 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, validateTreeaction, 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, hide, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final String BUTTON_SELECTION
public static final String MENU_BUTTON_SELECTION
public static final String TOOLBAR_NAVIGATOR_MENU_BUTTON_SELECTION
public static Boolean defaultMenuButtonSelectionPaintFocus
public static Boolean defaultMenuButtonSelectionContentAreaFilled
public static Boolean defaultMenuButtonSelectionCapable
public static Boolean defaultButtonSelectionPaintFocus
public static Boolean defaultButtonSelectionContentAreaFilled
public static Boolean defaultButtonSelectionCapable
public static int defaultArrowButtonWidth
protected JButton button
protected JButton menuButton
protected JList menuList
protected boolean highlight
protected ButtonSelection.Action actionMenu
public ButtonSelection(boolean highlight)
public ButtonSelection(boolean highlight,
boolean rollover)
public ButtonSelection(String text, boolean highlight)
public ButtonSelection(ButtonSelection.Action a, boolean highlight)
public ButtonSelection(Icon icon, boolean highlight)
public ButtonSelection()
public ButtonSelection(Hashtable h)
protected void init(boolean highlight)
protected void changeButtons()
public void setMenu(JPopupMenu menu)
public JPopupMenu getMenu()
public void setMenuList(JList menuList)
public JList getMenuList()
public void setToolTipText(String text)
setToolTipText in class JComponentpublic void setRolloverEnabled(boolean roll)
public void setIcon(Icon icon)
public void setText(String text)
public void addActionListener(ActionListener a)
public void addActionMenuListener(ActionListener action)
public void setMargin(Insets insets)
public void setEnabled(boolean enabled)
setEnabled in class JComponentpublic JButton getButton()
public JButton getMenuButton()
public ButtonSelection.Action getActionMenu()
public Dimension getPreferredSize()
getPreferredSize in class JComponentCopyright © 2016 Imatia Innovation S.L.. All rights reserved.