Top Inners Fields Constructors Methods
com.mchange.v2.beans.swing

pack-priv Class SetPropertyElementBoundButtonModel

extends Object
implements ButtonModel
Class Inheritance
All Implemented Interfaces
javax.swing.ButtonModel, java.awt.ItemSelectable
Imports
java.awt.*, java.awt.event.*, java.beans.*, java.util.*, javax.swing.*, javax.swing.event.*, com.mchange.v2.beans.BeansUtils

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv ButtonModel
pack-priv PropertyComponentBindingUtility
pack-priv Object

Constructor Summary

AccessConstructor and Description
public
SetPropertyElementBoundButtonModel(ButtonModel inner, Object bean, String propName, Object putativeElement)

Method Summary

Modifier and TypeMethod and Description
public void
addActionListener(ActionListener
the listener to add
listener
)

Implements javax.swing.ButtonModel.addActionListener.

Adds an ActionListener to the model.

public void
addChangeListener(ChangeListener
the listener to add
listener
)

Implements javax.swing.ButtonModel.addChangeListener.

Adds a ChangeListener to the model.

public void
addItemListener(ItemListener
the listener to add
listener
)

Implements javax.swing.ButtonModel.addItemListener.

Adds an ItemListener to the model.

public static void
bind(AbstractButton[] buttons, Object[] elements, Object bean, String setPropName)

public String
getActionCommand()

Implements javax.swing.ButtonModel.getActionCommand.

Returns the action command string for the button.

public int
getMnemonic()

Implements javax.swing.ButtonModel.getMnemonic.

Gets the keyboard mnemonic for the button.

public Object[]
getSelectedObjects()

Implements java.awt.ItemSelectable.getSelectedObjects.

Returns the selected items or null if no items are selected.

public boolean
isArmed()

Implements javax.swing.ButtonModel.isArmed.

Indicates partial commitment towards triggering the button.

public boolean
isEnabled()

Implements javax.swing.ButtonModel.isEnabled.

Indicates if the button can be selected or triggered by an input device, such as a mouse pointer.

public boolean
isPressed()

Implements javax.swing.ButtonModel.isPressed.

Indicates if the button is pressed.

public boolean
isRollover()

Implements javax.swing.ButtonModel.isRollover.

Indicates that the mouse is over the button.

public boolean
isSelected()

Implements javax.swing.ButtonModel.isSelected.

Indicates if the button has been selected.

public void
removeActionListener(ActionListener
the listener to remove
listener
)

Implements javax.swing.ButtonModel.removeActionListener.

Removes an ActionListener from the model.

public void
removeChangeListener(ChangeListener
the listener to remove
listener
)

Implements javax.swing.ButtonModel.removeChangeListener.

Removes a ChangeListener from the model.

public void
removeItemListener(ItemListener
the listener to remove
listener
)

Implements javax.swing.ButtonModel.removeItemListener.

Removes an ItemListener from the model.

public void
setActionCommand(String
the String that identifies the generated event
actionCommand
)

Implements javax.swing.ButtonModel.setActionCommand.

Sets the action command string that gets sent as part of the ActionEvent when the button is triggered.

public void
setArmed(boolean
whether or not the button should be armed
armed
)

Implements javax.swing.ButtonModel.setArmed.

Marks the button as armed or unarmed.

public void
setEnabled(boolean
whether or not the button should be enabled
enabled
)

Implements javax.swing.ButtonModel.setEnabled.

Enables or disables the button.

public void
setGroup(ButtonGroup
the ButtonGroup the button belongs to
group
)

Implements javax.swing.ButtonModel.setGroup.

Identifies the group the button belongs to -- needed for radio buttons, which are mutually exclusive within their group.

public void
setMnemonic(int
an int specifying the accelerator key
mnemonic
)

Implements javax.swing.ButtonModel.setMnemonic.

Sets the keyboard mnemonic (shortcut key or accelerator key) for the button.

public void
setPressed(boolean
whether or not the button should be pressed
pressed
)

Implements javax.swing.ButtonModel.setPressed.

Sets the button to pressed or unpressed.

public void
setRollover(boolean
whether or not the button is in the rollover state
rollover
)

Implements javax.swing.ButtonModel.setRollover.

Sets or clears the button's rollover state

public void
setSelected(boolean
true selects the button, false deselects the button
selected
)

Implements javax.swing.ButtonModel.setSelected.

Selects or deselects the button.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

innerback to summary
pack-priv ButtonModel inner
pcbuback to summary
pack-priv PropertyComponentBindingUtility pcbu
putativeElementback to summary
pack-priv Object putativeElement

Constructor Detail

SetPropertyElementBoundButtonModelback to summary
public SetPropertyElementBoundButtonModel(ButtonModel inner, Object bean, String propName, Object putativeElement) throws IntrospectionException

Method Detail

addActionListenerback to summary
public void addActionListener(ActionListener listener)

Implements javax.swing.ButtonModel.addActionListener.

Doc from javax.swing.ButtonModel.addActionListener.

Adds an ActionListener to the model.

Parameters
listener:ActionListener

the listener to add

addChangeListenerback to summary
public void addChangeListener(ChangeListener listener)

Implements javax.swing.ButtonModel.addChangeListener.

Doc from javax.swing.ButtonModel.addChangeListener.

Adds a ChangeListener to the model.

Parameters
listener:ChangeListener

the listener to add

addItemListenerback to summary
public void addItemListener(ItemListener listener)

Implements javax.swing.ButtonModel.addItemListener.

Doc from javax.swing.ButtonModel.addItemListener.

Adds an ItemListener to the model.

Parameters
listener:ItemListener

the listener to add

bindback to summary
public static void bind(AbstractButton[] buttons, Object[] elements, Object bean, String setPropName) throws IntrospectionException
getActionCommandback to summary
public String getActionCommand()

Implements javax.swing.ButtonModel.getActionCommand.

Doc from javax.swing.ButtonModel.getActionCommand.

Returns the action command string for the button.

Returns:String

the String that identifies the generated event

getMnemonicback to summary
public int getMnemonic()

Implements javax.swing.ButtonModel.getMnemonic.

Doc from javax.swing.ButtonModel.getMnemonic.

Gets the keyboard mnemonic for the button.

Returns:int

an int specifying the accelerator key

getSelectedObjectsback to summary
public Object[] getSelectedObjects()

Implements java.awt.ItemSelectable.getSelectedObjects.

Doc from java.awt.ItemSelectable.getSelectedObjects.

Returns the selected items or null if no items are selected.

Returns:Object[]

the list of selected objects, or null

isArmedback to summary
public boolean isArmed()

Implements javax.swing.ButtonModel.isArmed.

Doc from javax.swing.ButtonModel.isArmed.

Indicates partial commitment towards triggering the button.

Returns:boolean

true if the button is armed, and ready to be triggered

isEnabledback to summary
public boolean isEnabled()

Implements javax.swing.ButtonModel.isEnabled.

Doc from javax.swing.ButtonModel.isEnabled.

Indicates if the button can be selected or triggered by an input device, such as a mouse pointer.

Returns:boolean

true if the button is enabled

isPressedback to summary
public boolean isPressed()

Implements javax.swing.ButtonModel.isPressed.

Doc from javax.swing.ButtonModel.isPressed.

Indicates if the button is pressed.

Returns:boolean

true if the button is pressed

isRolloverback to summary
public boolean isRollover()

Implements javax.swing.ButtonModel.isRollover.

Doc from javax.swing.ButtonModel.isRollover.

Indicates that the mouse is over the button.

Returns:boolean

true if the mouse is over the button

isSelectedback to summary
public boolean isSelected()

Implements javax.swing.ButtonModel.isSelected.

Doc from javax.swing.ButtonModel.isSelected.

Indicates if the button has been selected. Only needed for certain types of buttons - such as radio buttons and check boxes.

Returns:boolean

true if the button is selected

removeActionListenerback to summary
public void removeActionListener(ActionListener listener)

Implements javax.swing.ButtonModel.removeActionListener.

Doc from javax.swing.ButtonModel.removeActionListener.

Removes an ActionListener from the model.

Parameters
listener:ActionListener

the listener to remove

removeChangeListenerback to summary
public void removeChangeListener(ChangeListener listener)

Implements javax.swing.ButtonModel.removeChangeListener.

Doc from javax.swing.ButtonModel.removeChangeListener.

Removes a ChangeListener from the model.

Parameters
listener:ChangeListener

the listener to remove

removeItemListenerback to summary
public void removeItemListener(ItemListener listener)

Implements javax.swing.ButtonModel.removeItemListener.

Doc from javax.swing.ButtonModel.removeItemListener.

Removes an ItemListener from the model.

Parameters
listener:ItemListener

the listener to remove

setActionCommandback to summary
public void setActionCommand(String actionCommand)

Implements javax.swing.ButtonModel.setActionCommand.

Doc from javax.swing.ButtonModel.setActionCommand.

Sets the action command string that gets sent as part of the ActionEvent when the button is triggered.

Parameters
actionCommand:String

the String that identifies the generated event

setArmedback to summary
public void setArmed(boolean armed)

Implements javax.swing.ButtonModel.setArmed.

Doc from javax.swing.ButtonModel.setArmed.

Marks the button as armed or unarmed.

Parameters
armed:boolean

whether or not the button should be armed

setEnabledback to summary
public void setEnabled(boolean enabled)

Implements javax.swing.ButtonModel.setEnabled.

Doc from javax.swing.ButtonModel.setEnabled.

Enables or disables the button.

Parameters
enabled:boolean

whether or not the button should be enabled

setGroupback to summary
public void setGroup(ButtonGroup group)

Implements javax.swing.ButtonModel.setGroup.

Doc from javax.swing.ButtonModel.setGroup.

Identifies the group the button belongs to -- needed for radio buttons, which are mutually exclusive within their group.

Parameters
group:ButtonGroup

the ButtonGroup the button belongs to

setMnemonicback to summary
public void setMnemonic(int mnemonic)

Implements javax.swing.ButtonModel.setMnemonic.

Doc from javax.swing.ButtonModel.setMnemonic.

Sets the keyboard mnemonic (shortcut key or accelerator key) for the button.

Parameters
mnemonic:int

an int specifying the accelerator key

setPressedback to summary
public void setPressed(boolean pressed)

Implements javax.swing.ButtonModel.setPressed.

Doc from javax.swing.ButtonModel.setPressed.

Sets the button to pressed or unpressed.

Parameters
pressed:boolean

whether or not the button should be pressed

setRolloverback to summary
public void setRollover(boolean rollover)

Implements javax.swing.ButtonModel.setRollover.

Doc from javax.swing.ButtonModel.setRollover.

Sets or clears the button's rollover state

Parameters
rollover:boolean

whether or not the button is in the rollover state

setSelectedback to summary
public void setSelected(boolean selected)

Implements javax.swing.ButtonModel.setSelected.

Doc from javax.swing.ButtonModel.setSelected.

Selects or deselects the button.

Parameters
selected:boolean

true selects the button, false deselects the button

com.mchange.v2.beans.swing back to summary

pack-priv Class SetPropertyElementBoundButtonModel.MyHbi

extends Object
implements HostBindingInterface
Class Inheritance
  • java.lang.Object
  • com.mchange.v2.beans.swing.SetPropertyElementBoundButtonModel.MyHbi
All Implemented Interfaces
com.mchange.v2.beans.swing.HostBindingInterface

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
public Object
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MyHbiback to summary
pack-priv MyHbi()

Method Detail

addUserModificationListenersback to summary
public void addUserModificationListeners()

Implements com.mchange.v2.beans.swing.HostBindingInterface.addUserModificationListeners.

alertErroneousInputback to summary
public void alertErroneousInput()

Implements com.mchange.v2.beans.swing.HostBindingInterface.alertErroneousInput.

fetchUserModificationback to summary
public Object fetchUserModification(PropertyEditor editor, Object oldValue)

Implements com.mchange.v2.beans.swing.HostBindingInterface.fetchUserModification.

syncToValueback to summary
public void syncToValue(PropertyEditor editor, Object newVal)

Implements com.mchange.v2.beans.swing.HostBindingInterface.syncToValue.