ImageObserver
, ItemSelectable
, MenuContainer
, Serializable
, SwingConstants
JButton
, JMenuItem
, JToggleButton
Nested Classes
protected class
This class implements accessibility support for the AbstractButton
class.
protected class
Extends ChangeListener
to be serializable.
Fields
The button model's ActionListener
.
Identifies a change to having the border drawn, or having it not drawn.
Only one ChangeEvent
is needed per button instance since the event's only state is the source property.
The button model's changeListener
.
Identifies a change to having the button paint the content area.
Identifies a change to the icon used when the button has been disabled.
Identifies a change to the icon used when the button has been disabled and selected.
Identifies a change to having the border highlighted when focused, or not.
Identifies a change in the button's horizontal alignment.
Identifies a change in the button's horizontal text position.
Identifies a change to the icon that represents the button.
The button model's ItemListener
.
Identifies a change in the button's margins.
Identifies a change to the button's mnemonic.
The data model that determines the button's state.
Identifies a change in the button model.
Identifies a change to the icon used when the button has been pressed.
Identifies a change from rollover enabled to disabled or back to enabled.
Identifies a change to the icon used when the cursor is over the button.
Identifies a change to the icon used when the cursor is over the button and it has been selected.
Identifies a change to the icon used when the button has been selected.
Identifies a change in the button's text.
Identifies a change in the button's vertical alignment.
Identifies a change in the button's vertical text position.
Fields declared in interface javax.swing.SwingConstantsBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructors
protected
Constructor for subclasses to call.
protected void
Updates the button's state in response to property changes in the associated action.
void
Adds an ActionListener
to the button.
void
Adds a ChangeListener
to the button.
protected void
void
Adds an ItemListener
to the checkbox
.
protected int
Verify that the key
argument is a legal value for the horizontalAlignment
and horizontalTextPosition
properties.
protected int
Verify that the key
argument is a legal value for the vertical properties.
protected void
Sets the properties on this button to match those in the specified Action
.
Returns ActionListener
that is added to model.
Creates and returns a PropertyChangeListener
that is responsible for listening for changes from the specified Action
and updating the appropriate properties.
Subclasses that want to handle ChangeEvents
differently can override this to return another ChangeListener
implementation.
Returns ItemListener
that is added to model.
void
Programmatically perform a "click".
void
Programmatically perform a "click".
protected void
Notifies all listeners that have registered interest for notification on this event type.
protected void
Notifies all listeners that have registered interest for notification on this event type.
protected void
Notifies all listeners that have registered interest for notification on this event type.
Returns the currently set Action
for this ActionEvent
source, or null
if no Action
is set.
Returns the action command for this button.
Returns an array of all the ActionListener
s added to this AbstractButton with addActionListener().
Returns an array of all the ChangeListener
s added to this AbstractButton with addChangeListener().
Returns the icon used by the button when it's disabled.
Returns the icon used by the button when it's disabled and selected.
int
Returns the character, as an index, that the look and feel should provide decoration for as representing the mnemonic character.
boolean
Returns the value of the hideActionText
property, which determines whether the button displays text from the Action
.
int
Returns the horizontal alignment of the icon and text.
int
Returns the horizontal position of the text relative to the icon.
Returns the default icon.
int
Returns the amount of space between the text and the icon displayed in this button.
Returns an array of all the ItemListener
s added to this AbstractButton with addItemListener().
Returns the margin between the button's border and the label.
int
Returns the keyboard mnemonic from the current model.
Returns the model that this button represents.
long
Gets the amount of time (in milliseconds) required between mouse press events for the button to generate the corresponding action events.
Returns the pressed icon for the button.
Returns the rollover icon for the button.
Returns the rollover selection icon for the button.
Returns the selected icon for the button.
Returns an array (length 1) containing the label or null
if the button is not selected.
Returns the button's text.
Returns the L&F object that renders this component.
int
Returns the vertical alignment of the text and icon.
int
Returns the vertical position of the text relative to the icon.
boolean
If the button icon for the current button state is either null
or not an ImageIcon
with an Image
equal to the passed in Image
, return false
; otherwise it will delegate to the super-class.
protected void
Initialization of the AbstractButton
.
boolean
Gets the borderPainted
property.
boolean
Gets the contentAreaFilled
property.
boolean
Gets the paintFocus
property.
boolean
Gets the rolloverEnabled
property.
boolean
Returns the state of the button.
protected void
Paint the button's border if BorderPainted
property is true and the button has a border.
Returns a string representation of this AbstractButton
.
void
Removes an ActionListener
from the button.
void
Removes a ChangeListener from the button.
void
Removes an ItemListener
from the button.
void
Notifies this component that it no longer has a parent component.
void
void
Sets the action command for this button.
void
Sets the borderPainted
property.
void
Sets the contentAreaFilled
property.
void
Sets the disabled icon for the button.
void
Sets the disabled selection icon for the button.
void
Provides a hint to the look and feel as to which character in the text should be decorated to represent the mnemonic.
void
Enables (or disables) the button.
void
Sets the paintFocus
property, which must be true
for the focus state to be painted.
void
Sets the hideActionText
property, which determines whether the button displays text from the Action
.
void
Sets the horizontal alignment of the icon and text.
void
Sets the horizontal position of the text relative to the icon.
void
Sets the button's default icon.
void
If both the icon and text properties are set, this property defines the space between them.
void
void
void
Sets space for margin between the button's border and the label.
void
This method is now obsolete, please use setMnemonic(int)
to set the mnemonic for a button.
void
Sets the keyboard mnemonic on the current model.
void
Sets the model that this button represents.
void
Sets the amount of time (in milliseconds) required between mouse press events for the button to generate the corresponding action events.
void
Sets the pressed icon for the button.
void
Sets the rolloverEnabled
property, which must be true
for rollover effects to occur.
void
Sets the rollover icon for the button.
void
Sets the rollover selected icon for the button.
void
Sets the state of the button.
void
Sets the selected icon for the button.
void
void
Sets the L&F object that renders this component.
void
Sets the vertical alignment of the icon and text.
void
Sets the vertical position of the text relative to the icon.
void
Resets the UI property to a value from the current look and feel.
Methods declared in class javax.swing.JComponentaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, 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
Methods declared in class java.awt.Containeradd, add, add, add, add, addContainerListener, 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, transferFocusDownCycle, validate, validateTree
Methods declared in class java.awt.Componentaction, 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, firePropertyChange, getAccessibleContext, 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, 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4