}
private void addActionHandler(Table table) {
table.addActionHandler(new Handler() {
Action tabNext = new ShortcutAction("Shift",
ShortcutAction.KeyCode.TAB, null);
Action tabPrev = new ShortcutAction("Shift+Tab",
ShortcutAction.KeyCode.TAB,
new int[] { ShortcutAction.ModifierKey.SHIFT });
Action curDown = new ShortcutAction("Down",
ShortcutAction.KeyCode.ARROW_DOWN, null);
Action curUp = new ShortcutAction("Up",
ShortcutAction.KeyCode.ARROW_UP, null);
Action enter = new ShortcutAction("Enter",
ShortcutAction.KeyCode.ENTER, null);
Action add = new ShortcutAction("Add Below",
ShortcutAction.KeyCode.A, null);
Action delete = new ShortcutAction("Delete",
ShortcutAction.KeyCode.DELETE, null);
@Override
public void handleAction(Action action, Object sender, Object target) {
System.out.println(action.getCaption());