Package de.mud.jta.event

Examples of de.mud.jta.event.ConfigurationListener


   * Create the list plugin and get the url to the actual list.
   */
  public MudConnector(final PluginBus bus, final String id) {
    super(bus, id);

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        String url =
                config.getProperty("MudConnector", id, "listURL");
        if (url != null) {
          try {
View Full Code Here


      public void write(byte[] b) throws IOException {
        source.write(b);
      }
    };

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        user = config.getProperty("SSH", id, "user");
  pass = config.getProperty("SSH", id, "password");
      }
    });
View Full Code Here

    super(bus, id);

    // register socket listener
    bus.registerPluginListener(this);

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        if ((relay = config.getProperty("Socket", id, "relay"))
                != null)
          if (config.getProperty("Socket", id, "relayPort") != null)
            try {
View Full Code Here

   */
  public ButtonBar(PluginBus bus, final String id) {
    super(bus, id);

    // configure the button bar
    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig cfg) {
        String file = cfg.getProperty("ButtonBar", id, "setup");
        clearFields =
                (new Boolean(cfg.getProperty("ButtonBar", id, "clearFields")))
                .booleanValue();
View Full Code Here

    } // !personalJava


    // configure the remote URL
    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        String tmp;

        JMenuItem save = new JMenuItem("Save As File");
        menu.add(save);
View Full Code Here

  private HandlerPTY pty;

  public Shell(final PluginBus bus, final String id) {
    super(bus, id);

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig cfg) {
        String tmp;
  if((tmp = cfg.getProperty("Shell", id, "command")) != null) {
    shellCommand = tmp;
    // System.out.println("Shell: Setting config " + tmp); // P3
View Full Code Here

  public Status(PluginBus bus, final String id) {
    super(bus, id);

    // setup the info
    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        infoURL = config.getProperty("Status", id, "info");
        if (infoURL != null)
          host.setAlignmentX(JLabel.CENTER);
        String tmp;
View Full Code Here

    super(bus, id);

    // register socket listener
    bus.registerPluginListener(this);

     bus.registerPluginListener(new ConfigurationListener() {
       public void setConfiguration(PluginConfig config) {
   String tos = config.getProperty("Timeout", id, "seconds");
   if(tos != null) {
     try {
       timeout = Integer.parseInt(tos);
View Full Code Here

      public void setApplet(JApplet applet) {
        context = applet.getAppletContext();
      }
    });

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        String s;
        if ((s = config.getProperty("URLFilter", id, "protocols")) != null) {
          int old = -1, idx = s.indexOf(',');
          while (idx >= 0) {
View Full Code Here

      public void offline() {
        // ignore disconnection
      }
    });

    bus.registerPluginListener(new ConfigurationListener() {
      public void setConfiguration(PluginConfig config) {
        savedScript = new Vector();
        String s = config.getProperty("Script", id, "script");
        if(s != null) {
    // check if the script is stored in a file
View Full Code Here

TOP

Related Classes of de.mud.jta.event.ConfigurationListener

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.