Package org.spoutcraft.client.controls

Examples of org.spoutcraft.client.controls.Shortcut


      mc.displayGuiScreen(parentScreen);
      return;
    }

    if (btn.equals(buttonAdd)) {
      Shortcut sh = new Shortcut();
      sh.setTitle("");
      sh.setKey(Keyboard.KEY_UNKNOWN.getKeyCode());
      editItem(sh);
      return;
    }
    ControlsBasicItem item = model.getItem(view.getSelectedRow());
    ShortcutBindingItem sh = null;
    if (item != null && item instanceof ShortcutBindingItem) {
      sh = (ShortcutBindingItem) item;
    }
    if (sh != null && btn.equals(buttonEdit)) {
      editItem(sh.getShortcut());
    } else if (btn.equals(buttonEdit) && item != null) {
      model.setEditing(item);
    }
  }
View Full Code Here

TOP

Related Classes of org.spoutcraft.client.controls.Shortcut

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.