Examples of addSelectionListener()


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

  public MenuItem addContextMenuItem(String text, Boolean enabled,
      SelectionListener<MenuEvent> listener) {
    initializeContextMenu();
    MenuItem item = new MenuItem();
    item.setText(text);
    item.addSelectionListener(listener);
    item.setEnabled(enabled);
    contextMenu.add(item);
    return item;
  }
View Full Code Here

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

    reportsTree = createTree(treeLoader);

    ToolBar toolbar = new ToolBar();
    TextToolItem addStaticFolder = new TextToolItem("", "icon-create-folder");
    addStaticFolder.setToolTip("Create a new static folder");
    addStaticFolder.addSelectionListener(new SelectionListener<ComponentEvent>(){
      public void componentSelected(ComponentEvent ce) {
        final TreeItem item = reportsTree.getSelectedItem();
        if (item == null) {
          return;
        }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.toolbar.ToggleToolItem.addSelectionListener()

    toolbar.add(deleteItem);
   
    toolbar.add(new SeparatorToolItem());
    final ToggleToolItem quickView = new ToggleToolItem("Quick View");
    toolbar.add(quickView);
    quickView.addSelectionListener(new SelectionListener<ComponentEvent>(){
      public void componentSelected(ComponentEvent ce) {
        quickViewEnabled = quickView.isPressed();
        if (rootNode != null) {
          reload(rootNode);
        }
View Full Code Here

Examples of com.lightcrafts.ui.editor.RegionManager.addSelectionListener()

                EditorControls controls = editor.getToolStack();
                controls.removeOpStackListener(ToolListener);
            }
            if (newDoc != null) {
                final RegionManager newRegions = newDoc.getRegionManager();
                newRegions.addSelectionListener(CurveSelectionListener);
                put("regions", newRegions);
                Editor editor = newDoc.getEditor();
                EditorControls controls = editor.getToolStack();
                controls.addOpStackListener(ToolListener);
            }
View Full Code Here

Examples of com.volantis.mcs.eclipse.common.odom.ODOMSelectionManager.addSelectionListener()

                new String[]{DeviceRepositorySchemaConstants.DEVICE_ELEMENT_NAME},
                new ODOMSelectionFilterConfiguration(true, true));

        // register an ODOMSelection listener with the ODOMSelectionManager
        // so that we can update the list builder whenever a device is selected
        selectionManager.addSelectionListener(
                new ODOMElementSelectionListener() {
                    // javadoc inherited
                    public void selectionChanged(ODOMElementSelectionEvent event) {
                        if (selectedDevice != null) {
                            selectedDevice.removeChangeListener(odomChangeListener);
View Full Code Here

Examples of com.volantis.mcs.eclipse.controls.CellIterations.addSelectionListener()

                            cellIterations.getText().setText(value);
                        }
                    }
                });

        cellIterations.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent event) {
                Object oldValue = null;
                Object newValue = cellIterations.getIterationsQualifier();
                PropertyChangeEvent propertyChange = new PropertyChangeEvent(
                        cellIterations, supplementary, oldValue, newValue);
View Full Code Here

Examples of de.willuhn.jameica.gui.parts.TablePart.addSelectionListener()

    else
      GUI.getView().setTitle(i18n.tr("Ums�tze: {0} [Kto.-Nr.: {1}, Saldo: {2}]",new String[]{s1,s2,s3}));
   
    final TablePart list = control.getUmsatzListe();
    final PanelButtonPrint print = new PanelButtonPrint(new PrintSupportUmsatzList(list));
    list.addSelectionListener(new Listener() {
      public void handleEvent(Event event)
      {
        print.setEnabled(list.getSelection() != null);
      }
    });
View Full Code Here

Examples of de.willuhn.jameica.hbci.gui.parts.EmpfaengerList.addSelectionListener()

        choosen = (Address) o;
        close();
      }
    },null,true,"ok.png");
    apply.setEnabled(false);
    empf.addSelectionListener(new Listener() {
      public void handleEvent(Event event)
      {
        apply.setEnabled(empf.getSelection() != null);
      }
    });
View Full Code Here

Examples of javax.swing.JList.addSelectionListener()

        setPrototypeCellValue(f, model);
        KongaList list = f.newList(model);
        list.setTransient(isTransient);
        list.setDefaultAction(selectionAction);
        list.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
        list.addSelectionListener(new SelectedTokenListener());
        return list;
    }
   
    private void setPrototypeCellValue(KongaListFactory factory, ListModel model) {
        int chars = (maxCharsWidth > 0) ? maxCharsWidth : DEFAULT_MAX_WIDTH;
View Full Code Here

Examples of net.oesterholt.JXTwoLevelSplitTable.addSelectionListener()

          //t.doLayout();
          //t.packColumn(0,10, false);
          //JXTable tt;
          //tt.packColumn(column, margin)
          //t.setNodeIconColor(Color.RED);
          t.addSelectionListener(new JXSplitTable.SelectionListener() {
            public void choosen(int row, int col, boolean left) {
              //logger.info(String.format("Choosen : row=%d, col=%d, left=%d",row,col,(left)?1:0));
              System.out.println(String.format("Choosen : row=%d, col=%d, left=%d",row,col,(left)?1:0));
              m.fireTableStructureChanged();
              //t.doLayout();
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.