Examples of addListener()


Examples of com.extjs.gxt.ui.client.widget.menu.DateMenu.addListener()

        setLayout(new FlowLayout());
        final DateTimeFormat dateTimeFormat = DateTimeFormat.getFormat("dd/MM/yyyy");
        final DateMenu menu = new DateMenu();
        if(activeDate !=null && !"".equals(activeDate.trim()))
        menu.getDatePicker().setValue(dateTimeFormat.parse(activeDate),true);
        menu.addListener(new EventType(Event.ONKEYDOWN+Event.ONKEYUP), new Listener<ComponentEvent>() {
            public void handleEvent(ComponentEvent ce){
                nativeCallback(callback, dateTimeFormat.format(menu.getDate()));
            }
        });
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.menu.MenuItem.addListener()

           
          });
        }
        groupMenu.add(new SeparatorMenuItem());
        MenuItem newGroupItem = new MenuItem(JabberApp.getConstants().New_Group());
        newGroupItem.addListener(Events.Select, new Listener<MenuEvent>()
        {
          public void handleEvent(MenuEvent be)
          {
            final MessageBox box = MessageBox.prompt(JabberApp.getConstants().New_Group(), JabberApp.getConstants().NewGroupPrompt());
            box.addCallback(new Listener<MessageBoxEvent>()
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.toolbar.TextToolItem.addListener()

      if (!displayFlags.isHideConnectionPicker()) {
        TextToolItem txtItem = new TextToolItem();
        txtItem.setId(CONNECTION_PICKER_BTN);
        txtItem.setIconStyle("icon-import-view");
        txtItem.setToolTip(constants.changeCube());
        txtItem.addListener(Events.Select, this);
        toolbar.add(txtItem);
        toolbar.add(new SeparatorToolItem());
      }
    }
    print.setId(PRINT_BTN);
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.tree.Tree.addListener()

    treeBinder.setDisplayProperty("name");
    treeBinder.setAutoSelect(true);
    treeBinder.init();
    // tree model:
    browserModel = new ViewBrowserModel(user, treeStore);
    tree.addListener(Events.SelectionChange, new Listener<BaseEvent>() {
      public void handleEvent(BaseEvent be) {
        TreeItem selection = tree.getSelectedItem();
        if (selection == null) {
          if (deleteItem != null) {
            deleteItem.setEnabled(false);
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.tree.TreeItem.addListener()

    if (model.getXObject() instanceof XAccount) {
      model.set("name", ((XAccount) model.getXObject()).getConnection().getName());
    }
    if (model.getType().equals(XStaticReportFolder.TYPE)) {
      IconListener staticListener = new IconListener(item, "static-folder");
      item.addListener(Events.Expand, staticListener);
      item.addListener(Events.Collapse, staticListener);
      setIcon(item, "static-folder");
      XStaticReportFolder sf = (XStaticReportFolder) model.getXObject();
      sf.setReturnComputedKids(view.isQuickView());
    } else if (model.getType().equals(XDynamicReportFolder.TYPE)) {
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.treegrid.TreeGrid.addListener()

        setModal(true);
        setMaximizable(true);
        contentTypeTree = new ContentTypeTree(types);
        TreeGrid treeGrid = contentTypeTree.getTreeGrid();
        treeGrid.sinkEvents(Event.ONDBLCLICK + Event.ONCLICK);
        treeGrid.addListener(Events.OnDoubleClick, new Listener<BaseEvent>() {
            public void handleEvent(BaseEvent baseEvent) {
                GWTJahiaNodeType gwtJahiaNodeType = (GWTJahiaNodeType) (((TreeGridEvent) baseEvent).getModel());
                if (gwtJahiaNodeType != null && linker != null && !gwtJahiaNodeType.isMixin()) {
                    EngineLoader.showCreateEngine(linker, parentNode, gwtJahiaNodeType, props, nodeName, createInParentAndMoveBefore);
                    hide();
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.channel.ChannelFuture.addListener()

        if (footer != null) {
            Channels.write(ctx, future, footer);
        }

        if (evt != null) {
            future.addListener(new ChannelFutureListener() {
                public void operationComplete(ChannelFuture future) throws Exception {
                    ctx.sendDownstream(evt);
                }
            });
        }
View Full Code Here

Examples of com.gemstone.gemfire.cache.util.Gateway.addListener()

          gw.addEndpoint(endpoint.getId(), endpoint.getHost(), endpoint.getPort());
        }
      }
      if (!CollectionUtils.isEmpty(gateway.getListeners())) {
        for (GatewayEventListener listener : gateway.getListeners()) {
          gw.addListener(listener);
        }
      }
      if (gateway.getOrderPolicy() != null) {
        Assert.isTrue(validOrderPolicyValues.contains(gateway.getOrderPolicy()),
            "The value of order policy:'" + gateway.getOrderPolicy() + "' is invalid");
View Full Code Here

Examples of com.gitblit.fanout.FanoutClient.addListener()

    System.out.println(MessageFormat.format("\n\n========================================\nPUBSUB TEST {0}\n========================================\n\n", service.toString()));
    service.startSynchronously();

    final Map<String, String> announcementsA = new ConcurrentHashMap<String, String>();
    FanoutClient clientA = new FanoutClient("localhost", fanoutPort);
    clientA.addListener(new FanoutAdapter() {

      @Override
      public void announcement(String channel, String message) {
        announcementsA.put(channel, message);
      }
View Full Code Here

Examples of com.google.common.util.concurrent.ListenableFuture.addListener()

    }

    ListenableFuture loadAsync(final Object paramObject, final int paramInt, final LocalCache.LoadingValueReference paramLoadingValueReference, CacheLoader paramCacheLoader)
    {
      final ListenableFuture localListenableFuture = paramLoadingValueReference.loadFuture(paramObject, paramCacheLoader);
      localListenableFuture.addListener(new Runnable()
      {
        public void run()
        {
          try
          {
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.