Examples of addListener()


Examples of net.rim.device.api.servicebook.ServiceRouting.addListener()

        // Create the MainScreen and add the appropriate UI fields.
        _screen = new MainScreen();
        _screen.setTitle("Service Routing Demo");

        final ServiceRouting sr = ServiceRouting.getInstance();
        sr.addListener(this);
        _statusField =
                new RichTextField(
                        sr.isSerialBypassActive() ? "Serial Bypass: Connected"
                                : "Serial Bypass: Disconnected");
        _screen.add(_statusField);
View Full Code Here

Examples of net.sf.cindy.Future.addListener()

public class DaytimeHandler extends SessionHandlerAdapter {

    public void sessionStarted(Session session) throws Exception {
        ByteBuffer buffer = Charset.UTF8.encode(new Date().toString());
        Future future = session.flush(new DefaultPacket(buffer));
        future.addListener(new FutureListener() {

            public void futureCompleted(Future future) throws Exception {
                future.getSession().close();
            }
        });
View Full Code Here

Examples of net.sf.jml.MsnMessenger.addListener()

      if(!loggingin){
        if(messenger==null || !messenger.isLogIncoming()){
          messenger = MsnMessengerFactory.createMsnMessenger(msnUserId, password);
              messenger.login();             
              loggingin = true;             
              messenger.addListener(new MsnAdapter(){
            public void loginCompleted(MsnMessenger messenger) {
              bLogin.add("");
              loggingin = false;
            }
          });
View Full Code Here

Examples of net.sf.urlchecker.commands.Context.addListener()

        // We need to add the listener to the context before we start. this test
        // class has been amended to implement the chain listener because the
        // invocation of the fireEvent method uses ClosureUtils from Apache
        // Commons and an in-line listener method is not accessible at run time.
        context.addListener(this);

        try {
            context.setSource(new InputStreamReader(inStream, "UTF-8"));

            final long t = System.currentTimeMillis();
View Full Code Here

Examples of net.sf.urlchecker.commands.StandardContext.addListener()

        // We need to add the listener to the context before we start. this test
        // class has been amended to implement the chain listener because the
        // invocation of the fireEvent method uses ClosureUtils from Apache
        // Commons and an in-line listener method is not accessible at run time.
        context.addListener(this);

        try {
            context.setSource(new InputStreamReader(inStream, "UTF-8"));

            final long t = System.currentTimeMillis();
View Full Code Here

Examples of net.sourceforge.pmd.Report.addListener()

        PMD pmd = getPMD();
        RuleContext ruleContext = new RuleContext();
        Report report = new Report();
        PmdReportListener reportSink = new PmdReportListener( sink, getBundle( locale ), aggregate );

        report.addListener( reportSink );
        ruleContext.setReport( report );
        reportSink.beginDocument();

        RuleSetFactory ruleSetFactory = new RuleSetFactory();
        ruleSetFactory.setMinimumPriority( this.minimumPriority );
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.gui.OkClosePanel.addListener()

          dialog.setLayout(new BorderLayout());
          dialog.add(importer.getConfigurationPanel(), BorderLayout.CENTER);
          OkClosePanel buttons = new OkClosePanel();
          //i18n[ImportTableDataCommand.cancel=Cancel]
          buttons.getCloseButton().setText(stringMgr.getString("ImportTableDataCommand.cancel"));
          buttons.addListener(dialogState);
          dialog.add(buttons, BorderLayout.SOUTH);
          dialog.pack();
          GUIUtils.centerWithinParent(dialog);
          dialog.setVisible(true);
          if (!dialogState.isOkPressed()) {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.tabs.table.ContentsTab.addListener()

   {
      // Register tabs to display in the details panel for table nodes.
      addDetailTab(type, new DatabaseObjectInfoTab());

      ContentsTab conttentsTab = new ContentsTab(this);
      conttentsTab.addListener(new DataSetUpdateableTableModelListener()
      {
         public void forceEditMode(boolean mode)
         {
            onForceEditMode(mode);
         }
View Full Code Here

Examples of net.sphene.goim.rcp.ui.ContactList.EntryMenu.addListener()

        System.out.println("Data: " + e.data);
      }
    });
    Menu menu = new Menu(chatHistory.getShell(),SWT.POP_UP);
    // TODO add context menu to chat history ..
    menu.addListener(SWT.Show, new Listener() {
      public void handleEvent(Event event) {
       
      }
    });
    chatHistory.setMenu(menu);
View Full Code Here

Examples of net.tomp2p.dht.FutureGet.addListener()

     * @param nr The number where the data is stored
     */
    private static void exampleGetNonBlocking(final PeerDHT[] peers, final Number160 nr) {
        FutureGet futureGet = peers[PEER_NR_2].get(nr).start();
        // non-blocking operation
        futureGet.addListener(new BaseFutureAdapter<FutureGet>() {
          @Override
      public void operationComplete(FutureGet future) throws Exception {
            System.out.println("result non-blocking: " + future.data().object());
            }
           
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.