Package jmt.framework.gui.listeners

Examples of jmt.framework.gui.listeners.SelectedActionButtonChangeListener


      return (JToggleButton) (buttons.get(action)).button;
    }
    JToggleButton button = new JToggleButton();
    button.setAction(action);
    // Adds a listener to both button and action to synchronize their selected state
    SelectedActionButtonChangeListener listener = new SelectedActionButtonChangeListener(action, button);
    button.setText("");
    // Finds icon name
    if (iconName == null) {
      iconName = (String) action.getValue(AbstractJMTAction.IMAGE_NAME);
    }
View Full Code Here


        String iconName = (String) action.getValue(AbstractJMTAction.IMAGE_NAME);
        if (iconName != null) {
          item.setSelectedIcon(imageLoader.loadIcon(iconName, ImageLoader.MODIFIER_SELECTED));
        }
        // Adds a listener to both item and action to synchronize their selected state
        new SelectedActionButtonChangeListener(action, item);
      } else {
        item = new JMenuItem(action);
      }
    }
    return item;
View Full Code Here

TOP

Related Classes of jmt.framework.gui.listeners.SelectedActionButtonChangeListener

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.