Package edu.indiana.extreme.xbaya.event.Event

Examples of edu.indiana.extreme.xbaya.event.Event.Type


    /**
     * @see edu.indiana.extreme.xbaya.event.EventListener#eventReceived(edu.indiana.extreme.xbaya.event.Event)
     */
    public void eventReceived(Event event) {
        logger.entering();
        Type type = event.getType();
        if (type.equals(Event.Type.MONITOR_CONFIGURATION_CHANGED)) {
            MonitorConfiguration configuration = this.engine.getMonitor()
                    .getConfiguration();
            boolean valid = configuration.isValid();
            this.startMenuItem.setEnabled(valid);
        } else if (type.equals(Event.Type.MONITOR_STARTED)) {
            this.startMenuItem.setEnabled(false);
            this.stopMenuItem.setEnabled(true);
            this.resetMenuItem.setEnabled(true);
        } else if (type.equals(Event.Type.MONITOR_STOPED)) {
            this.startMenuItem.setEnabled(true);
            this.stopMenuItem.setEnabled(false);
        } else if (type.equals(Event.Type.KARMA_STARTED)) {
            this.resetMenuItem.setEnabled(true);
        }
    }
View Full Code Here


  /**
   * @see edu.indiana.extreme.xbaya.event.EventListener#eventReceived(edu.indiana.extreme.xbaya.event.Event)
   */
  public void eventReceived(Event event) {
    Type type = event.getType();
    if (type == Type.MONITOR_STARTED || type == Type.KARMA_STARTED) {
      // Show the monitor panel.
      this.rightBottomTabbedPane.setSelectedComponent(this.monitorPane
          .getSwingComponent());
    }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.event.Event.Type

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.