Overview  Package   Class  Tree  Index 

be.lassi.ui.sheet.cells
Class CellAction

java.lang.Object
  extended by be.lassi.ui.sheet.cells.CellAction

public class CellAction
extends java.lang.Object

Helper class that sets actions for specific keystrokes in JComponent that implements the CellActionClient interface.

See Also:
be.lassi.ui.sheet.CellActionListener, SheetTable, LevelCell

Field Summary
static int ACTION_ALT_DOWN
           
static int ACTION_ALT_UP
           
static int ACTION_CTRL_DOWN
           
static int ACTION_CTRL_UP
           
static int ACTION_SHIFT_DOWN
           
static int ACTION_SHIFT_UP
           
 
Method Summary
static int getLevelValue(int actionId, int originalValue)
          Returns level value after performing given action on the original level value.
static void update(CellActionClient client)
          Add actions and keystroke-to-action mappings to the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_ALT_DOWN

public static final int ACTION_ALT_DOWN
See Also:
Constant Field Values

ACTION_ALT_UP

public static final int ACTION_ALT_UP
See Also:
Constant Field Values

ACTION_CTRL_DOWN

public static final int ACTION_CTRL_DOWN
See Also:
Constant Field Values

ACTION_CTRL_UP

public static final int ACTION_CTRL_UP
See Also:
Constant Field Values

ACTION_SHIFT_DOWN

public static final int ACTION_SHIFT_DOWN
See Also:
Constant Field Values

ACTION_SHIFT_UP

public static final int ACTION_SHIFT_UP
See Also:
Constant Field Values
Method Detail

getLevelValue

public static int getLevelValue(int actionId,
                                int originalValue)
Returns level value after performing given action on the original level value.

Parameters:
actionId - the action to perform on given level value
originalValue - the original value of the cell level (0->100)
Returns:
the new value after applying given action

update

public static void update(CellActionClient client)
Add actions and keystroke-to-action mappings to the client.

Parameters:
client - the JComponent to add actions to

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2