Examples of addListener()


Examples of org.gwtoolbox.widget.client.table.datagrid.selection.MultiRecordSelectionModel.addListener()

    private void applyMultiSelection(OldDataGrid grid, SimplePanel selectionPane) {
        MultiRecordSelectionModel selectionModel = new MultiRecordSelectionModel();
        grid.setSelectionModel(selectionModel);

        final RecordsPanel recordsPanel = new RecordsPanel();
        selectionModel.addListener(new MultiRecordSelectionModel.Listener() {

            public void recordSelected(Record record, MultiRecordSelection model) {
                recordsPanel.reset(model.getSelectedRecords());
            }
View Full Code Here

Examples of org.gwtoolbox.widget.client.table.datagrid.selection.SingleRecordSelectionModel.addListener()

        SingleRecordSelectionModel selectionModel = new SingleRecordSelectionModel();
        grid.setSelectionModel(selectionModel);

        final RecordPanel recordPanel = new RecordPanel();
        recordPanel.setWidth("250px");
        selectionModel.addListener(new SingleRecordSelectionModel.Listener() {
            public void selectionCleared() {
                recordPanel.reset(null);
            }

            public void recordSelected(Record record) {
View Full Code Here

Examples of org.hibernate.cache.infinispan.util.CacheAdapter.addListener()

         public void run() {
            // Fqn toBlock = new Fqn(rootFqn, KEY);
            GetBlocker blocker = new GetBlocker(blockerLatch, KEY);
            try {
               jbc.addListener(blocker);

               BatchModeTransactionManager.getInstance().begin();
               region.get(KEY);
               BatchModeTransactionManager.getInstance().commit();
            } catch (Exception e) {
View Full Code Here

Examples of org.hibernate.service.jndi.internal.JndiServiceImpl.addListener()

      JndiServiceImpl jndiService = new JndiServiceImpl( cfg.getProperties() );
      try {
        jndiService.bind( name, cfg );
        LOG.boundEjb3ConfigurationToJndiName( name );
        try {
          jndiService.addListener( name, LISTENER );
        }
        catch (Exception e) {
          LOG.couldNotBindJndiListener();
        }
      }
View Full Code Here

Examples of org.hornetq.core.server.group.GroupingHandler.addListener()

   {
      GroupingHandler groupingHandler = server.getGroupingHandler();
      BindingsImpl bindings = new BindingsImpl(address, groupingHandler, pagingManager.getPageStore(address));
      if (groupingHandler != null)
      {
         groupingHandler.addListener(bindings);
      }
      return bindings;
   }

   // For tests only
View Full Code Here

Examples of org.hxzon.pcap.PcapHandler.addListener()

                if (option == JFileChooser.APPROVE_OPTION) {
                    File[] files = chooser.getSelectedFiles();
                    prefs.put("openFile", files[0].getAbsolutePath());
                    DebugTimespend.start("open file:run");
                    PcapHandler handler = new PcapHandler();
                    handler.addListener(new StatisticsListener(paintPanel, StatisticsControlPanel.this));
                    handler.addFiles(files);
                    handler.run();
                    DebugTimespend.end("open file:run");
                    initButton();
                }
View Full Code Here

Examples of org.impalaframework.module.ModuleStateChangeNotifier.addListener()

    ModuleStateHolder moduleStateHolder = facade.getModuleStateHolder();
   
    if (!initialized) {
     
      ModuleStateChangeNotifier moduleStateChangeNotifier = facade.getModuleStateChangeNotifier();
      moduleStateChangeNotifier.addListener(new ModuleStateChangeListener() {

        public void moduleStateChanged(ModuleStateHolder moduleStateHolder, ModuleStateChange change) {
          try {
            servlet.init();
          }
View Full Code Here

Examples of org.impalaframework.module.holder.ModuleStateChangeNotifier.addListener()

    ModuleStateHolder moduleStateHolder = facade.getModuleStateHolder();
   
    if (!initialized) {
     
      ModuleStateChangeNotifier moduleStateChangeNotifier = facade.getModuleStateChangeNotifier();
      moduleStateChangeNotifier.addListener(new ModuleStateChangeListener() {

        public void moduleStateChanged(ModuleStateHolder moduleStateHolder, ModuleStateChange change) {
          try {
            servlet.init();
          }
View Full Code Here

Examples of org.impalaframework.module.spi.ModuleStateChangeNotifier.addListener()

    ModuleStateHolder moduleStateHolder = facade.getModuleStateHolder();
   
    if (!initialized) {
     
      ModuleStateChangeNotifier moduleStateChangeNotifier = facade.getModuleStateChangeNotifier();
      moduleStateChangeNotifier.addListener(new ModuleStateChangeListener() {

        public void moduleStateChanged(ModuleStateHolder moduleStateHolder, ModuleStateChange change) {
          try {
            servlet.init();
          }
View Full Code Here

Examples of org.infinispan.AdvancedCache.addListener()

      @Override
      public void run() {
        // Fqn toBlock = new Fqn(rootFqn, KEY);
        GetBlocker blocker = new GetBlocker( blockerLatch, KEY );
        try {
          jbc.addListener( blocker );

          BatchModeTransactionManager.getInstance().begin();
          region.get( KEY );
          BatchModeTransactionManager.getInstance().commit();
        }
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.