be.lassi.ui.sheet.cells
Class CellAction
java.lang.Object
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
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 |
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
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 valueoriginalValue
- 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