Examples of addListeners()


Examples of br.com.datawatcher.entity.FolderMapping.addListeners()

       
        log.info("Mapping folder to DataWatcher. Folder: " + mappedFolder.getCanonicalPath());
       
        folder.setRegexFilter(HPIConstants.REGEX_FILE);
        folder.setCheckChange(new CheckChange(HPIConstants.DATA_WATCHER_CRON_EXPRESSION));
        folder.addListeners(new Listener(MappedFolderListener.class.getName()));
        dataWatcher.addMapping(folder);
      }
     
      log.info("Starting DataWatcher.");
      dataWatcher.start();
View Full Code Here

Examples of com.sirenian.hellbound.domain.glyph.Junk.addListeners()

    return glyph;
    }

  public Junk createJunk(ListenerSet glyphListeners) {
    Junk junk = new Junk(width, this.height);
        junk.addListeners(glyphListeners);
        return junk;
  }

}
View Full Code Here

Examples of com.sirenian.hellbound.domain.glyph.LivingGlyph.addListeners()

    public LivingGlyph nextGlyph(CollisionDetector detector, ListenerSet glyphListeners) {
        GlyphType glyphType = GlyphType.ALL_LIVING[random.nextInt(GlyphType.ALL_LIVING.length)];
        Logger.debug(this, "Creating next glyph, glyph type is " + glyphType);
        LivingGlyph glyph = new LivingGlyph(glyphType, detector, CenterCalculator.forWidth(width));
        glyph.addListeners(glyphListeners);
    return glyph;
    }

  public Junk createJunk(ListenerSet glyphListeners) {
    Junk junk = new Junk(width, this.height);
View Full Code Here

Examples of lcmc.cluster.ui.widget.Widget.addListeners()

                    Widget.NO_ABBRV,
                    new AccessMode(AccessMode.ADMIN, AccessMode.NORMAL),
                    Widget.NO_BUTTON);
            optionsWidgets.put(option, w);
            w.setAlwaysEditable(true);
            w.addListeners(getOptionListener());
        }

        /* dopd */
        dopdWidget = new JCheckBox(Tools.getString("Dialog.Cluster.HbConfig.UseDopdCheckBox"), null, false);
        dopdWidget.setBackground(Tools.getDefaultColor("ConfigDialog.Background"));
View Full Code Here

Examples of lcmc.cluster.ui.widget.Widget.addListeners()

    protected void addHostLocationsListeners() {
        final String[] params = getParametersFromXML();
        for (final Host host : getBrowser().getClusterHosts()) {
            final HostInfo hi = host.getBrowser().getHostInfo();
            final Widget wi = scoreComboBoxHash.get(hi);
            wi.addListeners(new WidgetListener() {
                                @Override
                                public void check(final Value value) {
                                    setApplyButtons(CACHED_FIELD, params);
                                    application.invokeLater(
                                        new Runnable() {
View Full Code Here

Examples of lcmc.cluster.ui.widget.Widget.addListeners()

            wi = operationsComboBoxHash.get(op, param);
        } finally {
            mOperationsComboBoxHashReadLock.unlock();
        }
        final String[] params = getParametersFromXML();
        wi.addListeners(new WidgetListener() {
                            @Override
                            public void check(final Value value) {
                                setApplyButtons(CACHED_FIELD, params);
                            }
                        });
View Full Code Here

Examples of lcmc.cluster.ui.widget.Widget.addListeners()

                    instMethodWidget.setSelectedIndex(
                            Integer.parseInt(application.getAutoOptionHost(autoOption)));
                }
            });
        }
        instMethodWidget.addListeners(new WidgetListener() {
            @Override
            public void check(final Value value) {
                final InstallMethods method = (InstallMethods) instMethodWidget.getValue();
                final String toolTip = getInstToolTip(prefix, method.getIndex());
                application.invokeLater(new Runnable() {
View Full Code Here

Examples of org.apache.maven.model.converter.plugins.PluginConfigurationConverter.addListeners()

        loadProperties( properties, new File( basedir, "project.properties" ) );

        for ( Iterator i = converters.iterator(); i.hasNext(); )
        {
            PluginConfigurationConverter converter = (PluginConfigurationConverter) i.next();
            converter.addListeners( listeners );
            converter.convertConfiguration( v4Model, v3Model, properties );
        }

        // @todo Should this be run before or after the configuration converters?
        Collection pluginRelocators = pluginRelocatorManager.getPluginRelocators();
View Full Code Here

Examples of org.apache.maven.model.converter.relocators.PluginRelocator.addListeners()

        PluginRelocator pluginRelocator;
        Iterator iterator = pluginRelocators.iterator();
        while ( iterator.hasNext() )
        {
            pluginRelocator = (PluginRelocator) iterator.next();
            pluginRelocator.addListeners( listeners );
            pluginRelocator.relocate( v4Model );
        }

        // Sort the plugins
        if ( v4Model.getBuild() != null )
View Full Code Here

Examples of org.cspoker.external.pokersource.PokersourceConnection.addListeners()

  public RemoteServerContext login(String username, String password) throws LoginException {
    try {
      SerialListener serial = new SerialListener();
      TransListener transListener = new TransListener();
      final PokersourceConnection conn = new PokersourceConnection(server);
      conn.addListeners(serial, transListener);
      conn.send(new Login(username, password));
      serialObtained.await();
      conn.removeListeners(serial, transListener);
      return new PSServerContext(conn, serial.getSerial());
    } catch (IOException e) {
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.