|
Generated by JDiff |
||||||||
PREV CLASS NEXT CLASS FRAMES NO FRAMES | DETAIL: CONSTRUCTORS | METHODS | FIELDS |
Added Methods | |
void configurePropertiesFromAction(Action ) |
Factory method which sets the ActionEvent source's properties according to values from the Action instance. |
PropertyChangeListener createActionPropertyChangeListener(Action ) |
Factory method which creates the PropertyChangeListener used to update the ActionEvent source as properties change on its Action instance. |
Action getAction() |
Returns the currently set Action for this ActionEvent source or null if no Action is set. |
void setAction(Action ) |
Sets the Action for the ActionEvent source. |
Changed Methods | ||
void addActionListener(ActionListener ) |
Documentation changed from old to new. |
Adds an ActionListener to the button. |
void addChangeListener(ChangeListener ) |
Documentation changed from old to new. |
Adds a ChangeListener to the button. |
void addItemListener(ItemListener ) |
Documentation changed from old to new. |
Adds an ItemListener to the checkbox . |
int checkHorizontalKey(int, |
Documentation changed from old to new. |
Verify that key is a legal value for the horizontalAlignment properties. |
int checkVerticalKey(int, |
Documentation changed from old to new. |
Ensures that the key is a valid. |
ChangeListener createChangeListener() |
Documentation changed from old to new. |
Subclasses that want to handle ChangeEvents differently can override this to return another ChangeListener implementation. |
void fireActionPerformed(ActionEvent ) |
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
void fireItemStateChanged(ItemEvent ) |
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
void fireStateChanged() |
Documentation changed from old to new. |
Notifies all listeners that have registered interest for notification on this event type. |
String getActionCommand() |
Documentation changed from old to new. |
Returns the action command for this button. |
Icon getDisabledIcon() |
Documentation changed from old to new. |
Returns the icon used by the button when it's disabled. |
Icon getDisabledSelectedIcon() |
Documentation changed from old to new. |
Returns the icon used by the button when it's disabled and selected. |
int getHorizontalAlignment() |
Documentation changed from old to new. |
Returns the horizontal alignment of the icon and text. |
int getHorizontalTextPosition() |
Documentation changed from old to new. |
Returns the horizontal position of the text relative to the icon. |
Icon getIcon() |
Documentation changed from old to new. |
Returns the default icon. |
String getLabel() |
Documentation changed from old to new. |
- Replaced by getText |
Insets getMargin() |
Documentation changed from old to new. |
Returns the margin between the button's border and the label. |
int getMnemonic() |
Documentation changed from old to new. |
Returns the keyboard mnemonic from the the current model. |
ButtonModel getModel() |
Documentation changed from old to new. |
Returns the model that this button represents. |
Icon getPressedIcon() |
Documentation changed from old to new. |
Returns the pressed icon for the button. |
Icon getRolloverIcon() |
Documentation changed from old to new. |
Returns the rollover icon for the button. |
Icon getRolloverSelectedIcon() |
Documentation changed from old to new. |
Returns the rollover selection icon for the button. |
Icon getSelectedIcon() |
Documentation changed from old to new. |
Returns the selected icon for the button. |
Object[] getSelectedObjects() |
Documentation changed from old to new. Changed from synchronized to non-synchronized. |
Returns an array (length 1) containing the label or null if the button is not selected. |
String getText() |
Documentation changed from old to new. |
Returns the button's text. |
ButtonUI getUI() |
Documentation changed from old to new. |
Returns the L&F object that renders this component. |
int getVerticalAlignment() |
Documentation changed from old to new. |
Returns the vertical alignment of the text and icon. |
int getVerticalTextPosition() |
Documentation changed from old to new. |
Returns the vertical position of the text relative to the icon. |
boolean imageUpdate(Image, |
Documentation changed from old to new. Method was inherited from Component, but is now defined locally. |
This is overridden to return false if the current Icon 's Image is not equal to the passed in Image img . |
boolean isBorderPainted() |
Documentation changed from old to new. |
Returns whether the border should be painted. |
boolean isContentAreaFilled() |
Documentation changed from old to new. |
Checks whether the "content area" of the button should be filled. |
boolean isFocusPainted() |
Documentation changed from old to new. |
Returns whether focus should be painted. |
boolean isFocusTraversable() |
Documentation changed from old to new. Method was inherited from JComponent, but is now defined locally. |
Identifies whether or not this component can receive the focus. |
boolean isRolloverEnabled() |
Documentation changed from old to new. |
Checks whether rollover effects are enabled. |
boolean isSelected() |
Documentation changed from old to new. |
Returns the state of the button. |
void paintBorder(Graphics ) |
Documentation changed from old to new. |
Paint the button's border if BorderPainted property is true. |
String paramString() |
Documentation changed from old to new. |
Returns a string representation of this AbstractButton . |
void removeActionListener(ActionListener ) |
Documentation changed from old to new. |
Removes an ActionListener from the button. |
void removeChangeListener(ChangeListener ) |
Documentation changed from old to new. |
Removes a ChangeListener from the button. |
void removeItemListener(ItemListener ) |
Documentation changed from old to new. |
Removes an ItemListener from the button. |
void setActionCommand(String ) |
Documentation changed from old to new. |
Sets the action command for this button. |
void setBorderPainted(boolean ) |
Documentation changed from old to new. |
Sets whether the border should be painted. |
void setContentAreaFilled(boolean ) |
Documentation changed from old to new. |
Sets whether the button should paint the content area or leave it transparent. |
void setDisabledIcon(Icon ) |
Documentation changed from old to new. |
Sets the disabled icon for the button. |
void setDisabledSelectedIcon(Icon ) |
Documentation changed from old to new. |
Sets the disabled selection icon for the button. |
void setEnabled(boolean ) |
Documentation changed from old to new. |
Enables (or disables) the button. |
void setFocusPainted(boolean ) |
Documentation changed from old to new. |
Sets whether focus should be painted. |
void setHorizontalAlignment(int ) |
Documentation changed from old to new. |
Sets the horizontal alignment of the icon and text. |
void setHorizontalTextPosition(int ) |
Documentation changed from old to new. |
Sets the horizontal position of the text relative to the icon. |
void setIcon(Icon ) |
Documentation changed from old to new. |
Sets the button's default icon. |
void setLabel(String ) |
Documentation changed from old to new. |
- Replaced by setText(text) |
void setMargin(Insets ) |
Documentation changed from old to new. |
Sets space for margin between the button's border and the label. |
void setModel(ButtonModel ) |
Documentation changed from old to new. |
Sets the model that this button represents. |
void setPressedIcon(Icon ) |
Documentation changed from old to new. |
Sets the pressed icon for the button. |
void setRolloverEnabled(boolean ) |
Documentation changed from old to new. |
Sets whether rollover effects should be enabled. |
void setRolloverIcon(Icon ) |
Documentation changed from old to new. |
Sets the rollover icon for the button. |
void setRolloverSelectedIcon(Icon ) |
Documentation changed from old to new. |
Sets the rollover selected icon for the button. |
void setSelected(boolean ) |
Documentation changed from old to new. |
Sets the state of the button. |
void setSelectedIcon(Icon ) |
Documentation changed from old to new. |
Sets the selected icon for the button. |
void setVerticalAlignment(int ) |
Documentation changed from old to new. |
Sets the vertical alignment of the icon and text. |
void setVerticalTextPosition(int ) |
Documentation changed from old to new. |
Sets the vertical position of the text relative to the icon. |
void updateUI() |
Documentation changed from old to new. |
Notification from the UIFactory that the L&F has changed. |
void doClick() |
Documentation changed from old to new. |
Programmatically perform a "click". |
void doClick(int ) |
Documentation changed from old to new. |
Programmatically perform a "click". |
void setMnemonic(char ) |
Documentation changed from old to new. |
Specifies the mnemonic value. |
void setMnemonic(int ) |
Documentation changed from old to new. |
Sets the keyboard mnemonic on the current model. |
void setUI(ButtonUI ) |
Documentation changed from old to new. |
Sets the L&F object that renders this component. |
Changed Fields | ||
String ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY |
Documentation changed from old to new. |
Identifies a change to the icon used when the cursor is over the button and it has been selected. |
ActionListener actionListener |
Documentation changed from old to new. |
The button model's ActionListener . |
ChangeEvent changeEvent |
Documentation changed from old to new. |
Only one ChangeEvent is needed per button instance since the event's only state is the source property. |
ChangeListener changeListener |
Documentation changed from old to new. |
The button model's changeListener . |
ItemListener itemListener |
Documentation changed from old to new. |
The button model's ItemListener . |
|
|||||||||
PREV CLASS NEXT CLASS FRAMES NO FRAMES |