com.neuron.app.tonto
Class ActionAliasKey

java.lang.Object
  extended by com.neuron.app.tonto.CCFNode
      extended by com.neuron.app.tonto.CCFAction
          extended by com.neuron.app.tonto.ActionAliasKey
All Implemented Interfaces:
java.lang.Cloneable

public class ActionAliasKey
extends CCFAction

Action that performs a virtual key-press. Key are the fixed buttons on the case of the Pronto. These are distinguished from buttons which are graphics on the LCD touch display.


Field Summary
static int KEY_CHAN_DOWN
           
static int KEY_CHAN_UP
           
static int KEY_LEFT
           
static int KEY_MUTE
           
static int KEY_RIGHT
           
static int KEY_VOL_DOWN
           
static int KEY_VOL_UP
           
 
Fields inherited from class com.neuron.app.tonto.CCFAction
ACT_ALIAS_BUTTON, ACT_ALIAS_DEV, ACT_ALIAS_KEY, ACT_BEEP, ACT_DELAY, ACT_DUMMY, ACT_IRCODE, ACT_JUMP_PANEL, ACT_MARANTZ_JUMP, ACT_TIMER, CustomKeys, JUMP_BACK, JUMP_FORWARD, JUMP_MOUSE_MODE, JUMP_SCROLL_DOWN, JUMP_SCROLL_UP, jumpSpecial, jumpSpecialID, KEY_CHANDOWN, KEY_CHANUP, KEY_VOLDOWN, KEY_VOLUP, MarantzKeys, ProntoKeys, ProntoProKeys
 
Fields inherited from class com.neuron.app.tonto.CCFNode
TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT
 
Constructor Summary
ActionAliasKey(CCFDevice dev, int key)
          Create a key alias action.
 
Method Summary
 CCFDevice getDevice()
          Get the current device associated with this action.
 int getKey()
          Get the current key associated with this action.
 void setDevice(CCFDevice dev)
          Set the current device associated with this action.
 void setKey(int key)
          Set the current key associated with this action.
 
Methods inherited from class com.neuron.app.tonto.CCFAction
getActionType, getJumpSpecialIDFromString, getJumpSpecialString, isJump, isSpecialJump, toString
 
Methods inherited from class com.neuron.app.tonto.CCFNode
getHeader, getParent, getParentDevice, getParentPanel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY_LEFT

public static final int KEY_LEFT
See Also:
Constant Field Values

KEY_RIGHT

public static final int KEY_RIGHT
See Also:
Constant Field Values

KEY_VOL_DOWN

public static final int KEY_VOL_DOWN
See Also:
Constant Field Values

KEY_VOL_UP

public static final int KEY_VOL_UP
See Also:
Constant Field Values

KEY_CHAN_DOWN

public static final int KEY_CHAN_DOWN
See Also:
Constant Field Values

KEY_CHAN_UP

public static final int KEY_CHAN_UP
See Also:
Constant Field Values

KEY_MUTE

public static final int KEY_MUTE
See Also:
Constant Field Values
Constructor Detail

ActionAliasKey

public ActionAliasKey(CCFDevice dev,
                      int key)
Create a key alias action. The Device is required for the constructor since keys have different behaviour depending on the currently active device.

Parameters:
dev - CCFDevice for current key
key - key code ... see class statics
Method Detail

getDevice

public CCFDevice getDevice()
Get the current device associated with this action.


setDevice

public void setDevice(CCFDevice dev)
Set the current device associated with this action.


getKey

public int getKey()
Get the current key associated with this action.


setKey

public void setKey(int key)
Set the current key associated with this action.

Parameters:
key - key code ... see class statics