Examples of OnlineStatusListener


Examples of de.mud.jta.event.OnlineStatusListener

      }
    });


    // reset the protocol handler just in case :-)
    bus.registerPluginListener(new OnlineStatusListener() {
      public void online() {
  if(pass == null) {

          final Frame frame = new Frame("SSH User Authentication");
          Panel panel = new Panel(new GridLayout(3,1));
View Full Code Here

Examples of de.mud.jta.event.OnlineStatusListener

  private Thread reader = null;

  public Sink(final PluginBus bus, final String id) {
    super(bus, id);
    // register an online status listener
    bus.registerPluginListener(new OnlineStatusListener() {
      public void online() {
        if(debug > 0) System.err.println("Terminal: online "+reader);
        if(reader == null) {
          reader = new Thread();
          reader.start();
View Full Code Here

Examples of de.mud.jta.event.OnlineStatusListener

    sPanel.add("Center", host);

    status = new JLabel("offline", JLabel.CENTER);

    bus.registerPluginListener(new OnlineStatusListener() {
      public void online() {
        status.setText("online");
        status.setForeground(Color.green);
        if (infoURL == null)
          host.setText("Connected to " + address + " " + port);
View Full Code Here

Examples of de.mud.jta.event.OnlineStatusListener

   * Create a new scripting plugin.
   */
  public Script(PluginBus bus, final String id) {
    super(bus, id);

    bus.registerPluginListener(new OnlineStatusListener() {
      public void online() {
        setup(savedScript);
      }
      public void offline() {
        // ignore disconnection
View Full Code Here

Examples of de.mud.jta.event.OnlineStatusListener

        source.write(b);
      }
    };

    // reset the telnet protocol handler just in case :-)
    bus.registerPluginListener(new OnlineStatusListener() {
      public void online() {
        handler.reset();
        try {
          handler.startup();
        } catch(java.io.IOException e) {
View Full Code Here

Examples of de.mud.jta.event.OnlineStatusListener

      } else {
        port = "23";
      }
    }

    setup.registerPluginListener(new OnlineStatusListener() {
      public void online() {
        frame.setTitle("jta: " + host + (port.equals("23")?"":" " + port));
      }

      public void offline() {
View Full Code Here

Examples of de.mud.jta.event.OnlineStatusListener

        } catch (Exception e) {
          System.err.println("Applet: could not set up Window event listener");
          System.err.println("Applet: you will not be able to close it");
        }

        pluginLoader.registerPluginListener(new OnlineStatusListener() {
          public void online() {
            if (debug > 0) System.err.println("Terminal: online");
            online = true;
            if (((JFrame) appletFrame).isVisible() == false)
              ((JFrame) appletFrame).setVisible(true);
          }

          public void offline() {
            if (debug > 0) System.err.println("Terminal: offline");
            online = false;
            if (disconnectCloseWindow) {
              ((JFrame) appletFrame).setVisible(false);
              close.setLabel(startText != null ? startText : "Connect");
            }
          }
        });

        // register a focus status listener, so we know when a plugin got focus
        pluginLoader.registerPluginListener(new FocusStatusListener() {
          public void pluginGainedFocus(Plugin plugin) {
            if (Applet.debug > 0)
              System.err.println("Applet: " + plugin + " got focus");
            focussedPlugin = plugin;
          }

          public void pluginLostFocus(Plugin plugin) {
            // we ignore the lost focus
            if (Applet.debug > 0)
              System.err.println("Applet: " + plugin + " lost focus");
          }
        });

      } else
      // if we have no external frame use this online status listener
        pluginLoader.registerPluginListener(new OnlineStatusListener() {
          public void online() {
            if (debug > 0) System.err.println("Terminal: online");
            online = true;
          }
View Full Code Here

Examples of de.mud.jta.event.OnlineStatusListener

      }
      public void mouseEntered(MouseEvent arg0) {}
    });

    // register an online status listener
    bus.registerPluginListener(new OnlineStatusListener() {
      public void online() {
        if (debug > 0) System.err.println("Terminal: online " + reader);
        if (reader == null) {
          reader = new Thread(Terminal.this);
          reader.start();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.