yu.ac.bg.etf.javaqx.qswing
Interface Action

All Superinterfaces:
ActionListener, java.util.EventListener
All Known Implementing Classes:
AbstractAction

public interface Action
extends ActionListener

Action Interface.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
static java.lang.String ACCELERATOR_KEY
          Accelerator key property.
static java.lang.String ACCELERATOR_KEY_NAME
          Accelerator key property.
static java.lang.String ACTION_COMMAND_KEY
          Action command key property.
static java.lang.String DEFAULT
          Default property.
static java.lang.String HELP_DESCRIPTION
          Help description property.
static java.lang.String LONG_DESCRIPTION
          Long description property.
static java.lang.String MNEMONIC_KEY
          Mnemonic key property.
static java.lang.String NAME
          Name property.
static java.lang.String SHORT_DESCRIPTION
          Short description property.
static java.lang.String SMALL_ICON
          Small icon property.
static java.lang.String SMALL_ICON_NAME
          Small icon name property.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds property chage listener.
 java.lang.Object getValue(java.lang.String key)
          Returns the value of the property specified by the key.
 boolean isEnabled()
          Returns enabled state of the action.
 boolean isSelected()
          Returns selected state of the action.
 void putValue(java.lang.String key, java.lang.Object value)
          Sets the value of the property specified by the key.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes property chage listener.
 void setEnabled(boolean b)
          Sets enabled state of the action.
 void setSelected(boolean b)
          Sets selected state of the action.
 
Methods inherited from interface yu.ac.bg.etf.javaqx.qswing.events.ActionListener
actionPerformed
 

Field Detail

DEFAULT

public static final java.lang.String DEFAULT
Default property.

See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Name property.

See Also:
Constant Field Values

SHORT_DESCRIPTION

public static final java.lang.String SHORT_DESCRIPTION
Short description property.

See Also:
Constant Field Values

LONG_DESCRIPTION

public static final java.lang.String LONG_DESCRIPTION
Long description property.

See Also:
Constant Field Values

HELP_DESCRIPTION

public static final java.lang.String HELP_DESCRIPTION
Help description property.

See Also:
Constant Field Values

SMALL_ICON

public static final java.lang.String SMALL_ICON
Small icon property.

See Also:
Constant Field Values

SMALL_ICON_NAME

public static final java.lang.String SMALL_ICON_NAME
Small icon name property.

See Also:
Constant Field Values

ACTION_COMMAND_KEY

public static final java.lang.String ACTION_COMMAND_KEY
Action command key property.

See Also:
Constant Field Values

ACCELERATOR_KEY

public static final java.lang.String ACCELERATOR_KEY
Accelerator key property.

See Also:
Constant Field Values

ACCELERATOR_KEY_NAME

public static final java.lang.String ACCELERATOR_KEY_NAME
Accelerator key property.

See Also:
Constant Field Values

MNEMONIC_KEY

public static final java.lang.String MNEMONIC_KEY
Mnemonic key property.

See Also:
Constant Field Values
Method Detail

getValue

public java.lang.Object getValue(java.lang.String key)
Returns the value of the property specified by the key.

Parameters:
key - the property key
Returns:
the value of this property or null if there is no such property

putValue

public void putValue(java.lang.String key,
                     java.lang.Object value)
Sets the value of the property specified by the key.

Parameters:
key - the property key
value - the new property value

isEnabled

public boolean isEnabled()
Returns enabled state of the action.

Returns:
enabled state of the action

setEnabled

public void setEnabled(boolean b)
Sets enabled state of the action.

Parameters:
b - the new enabled state

isSelected

public boolean isSelected()
Returns selected state of the action.

Returns:
selected state of the action

setSelected

public void setSelected(boolean b)
Sets selected state of the action.

Parameters:
b - the new selected state

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds property chage listener.

Parameters:
listener - the property chage listener

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes property chage listener.

Parameters:
listener - the property chage listener


Copyright © 2007 ETF and contributors. All Rights Reserved.