Package games.stendhal.client.gui.wt

Examples of games.stendhal.client.gui.wt.EntityViewCommandList


      final String[] actions = view.getActions();

      if (actions.length > 0) {
        final IEntity entity = view.getEntity();

        JPopupMenu menu = new EntityViewCommandList(entity.getType(), actions, view);
        menu.show(canvas, point.x - MENU_OFFSET, point.y - MENU_OFFSET);
        contextMenuFlag = true;
        /*
         * Tricky way to detect recent popup menues. We need the
         * information to prevent walking when hiding the menu.
         */
        menu.addPopupMenuListener(new PopupMenuListener() {
          public void popupMenuCanceled(PopupMenuEvent e) {
            //ignore
          }
          public void popupMenuWillBecomeInvisible(PopupMenuEvent arg0) {
            /*
 
View Full Code Here


    @SuppressWarnings("serial")
    protected void onMouseRightClick(Point point) {
      if (view != null) {
        if (popupMenu == null) {
          // create the context menu
          popupMenu = new EntityViewCommandList(getName(), view.getActions(), view) {
            @Override
            protected void doAction(final String command) {
              super.doAction(command);
              setVisible(false);
            }
View Full Code Here

TOP

Related Classes of games.stendhal.client.gui.wt.EntityViewCommandList

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.