Examples of addListener()


Examples of com.extjs.gxt.ui.client.widget.button.Button.addListener()

    configs.add(column);

    column = new ColumnConfig("date", 125);
    if (widget) {
      Button btn = new Button("Updated");
      btn.addListener(Events.OnClick, new Listener<ButtonEvent>() {
        public void handleEvent(ButtonEvent be) {
          // stop column from getting click and causing sort
          be.cancelBubble();
        }
      });
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.button.IconButton.addListener()

  protected void initButtons() {
    if (mode == Mode.INSERT) {
      IconButton up = new IconButton("arrow-up");
      configureButton(up, getMessages().getMoveUp(), GXT.MESSAGES.listField_moveSelectedUp());
      up.addListener(Events.Select, new Listener<ComponentEvent>() {
        public void handleEvent(ComponentEvent be) {
          toField.getListView().moveSelectedUp();
        }
      });
      buttonBar.add(up);
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.button.ToggleButton.addListener()

      }
    });
    hp.add(add);

    ToggleButton toggle = new ToggleButton("Enable Tab Context Menu");
    toggle.addListener(Events.Toggle, new Listener<ButtonEvent>() {
      public void handleEvent(ButtonEvent be) {
        advanced.setCloseContextMenu(((ToggleButton) be.getButton()).isPressed());
      }
    });
    toggle.toggle(true);
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.button.ToolButton.addListener()

    if (data.isCollapsible() && component instanceof ContentPanel) {
      final ContentPanel panel = (ContentPanel) component;
      ToolButton collapse = (ToolButton) panel.getData("collapseBtn");
      if (!data.getHideCollapseTool() && collapse == null) {
        collapse = new ToolButton("x-tool-" + icon);
        collapse.addListener(Events.Select, new Listener<ComponentEvent>() {
          public void handleEvent(ComponentEvent be) {
            panel.collapse();
          }
        });
        panel.setData("collapseBtn", collapse);
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.form.CheckBox.addListener()

                final GWTJahiaNode parentItem = store.getParent(currentNode);

                checkbox.setToolTip(currentNode.getName());
                boxes.put(currentNode.getPath(), checkbox);
                checkbox.addListener(Events.Change, new Listener<ComponentEvent>() {
                    public void handleEvent(ComponentEvent event) {
                        try {
                            if ((Boolean) ((FieldEvent) event).getValue()) {
                                selection.add(currentNode);
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.form.FormPanel.addListener()

        }
      });

      panel.addButton(btn);

      panel.addListener(Events.BeforeSubmit, new Listener<FormEvent>() {
        public void handleEvent(FormEvent formEvent) {
          panel.mask(Messages.get("label.loading", "Loading..."));
        }
      });
      panel.addListener(Events.Submit, new Listener<FormEvent>() {
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.form.RadioGroup.addListener()

       
        final RadioGroup group = new RadioGroup();
        group.add(method1);
        group.add(method2);
        group.add(method3);
        group.addListener(Events.Change, new Listener<FieldEvent>()
        {
           
            @Override
            public void handleEvent(FieldEvent fe)
            {
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.form.TextArea.addListener()

    form.setPadding(5);
   
    form.setBottomComponent(toolBar);
    TextArea textArea = new TextArea();
    textArea.setHideLabel(true);
    textArea.addListener(Events.OnKeyPress, new Listener<FieldEvent>() {

      public void handleEvent(FieldEvent be) {
        status.setBusy("writing...");
        TextArea t = (TextArea) be.getField();
        String value = t.getValue();
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.grid.CellEditor.addListener()

        text.setAllowBlank(false);
        text.setRegex("^/?(?!.*/{2,})[a-zA-Z_0-9\\-\\./]+$");
        text.setMaxLength(250);
        text.getMessages().setRegexText(Messages.get("failure.invalid.urlmapping.label", "The vanity URL can only contain letters, digits, dots (.), dashes (-) and no consecutive slashes (/)"));
        CellEditor ce = new CellEditor(text);
        ce.addListener(Events.BeforeComplete, new Listener<EditorEvent>() {
            public void handleEvent(EditorEvent be) {
                Window.alert((String) be.getValue());
                be.stopEvent();
            }
        });
View Full Code Here

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

          CheckMenuItem gItem = new CheckMenuItem(g);
          gItem.setGroup("groups");
          if(g.equals(group))
            gItem.setChecked(true);
          groupMenu.add(gItem);
          gItem.addListener(Events.Select, new Listener<MenuEvent>()
          {
            public void handleEvent(MenuEvent be)
            {
              MenuItem mItem = (MenuItem)be.item;
              String newGroup = mItem.getText();
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.