Examples of Spinner

  • pivot.wtk.Spinner
    Component that presents a means of cycling through a list of items. @author tvolkert

  • Examples of org.eclipse.swt.widgets.Spinner


      protected void createMaxWorkspacesField(Composite parent) {
        final Label maxWorkspacesLabel = new Label(parent, SWT.NONE);
        maxWorkspacesLabel.setText(IDEWorkbenchMessages.RecentWorkspacesPreferencePage_NumberOfWorkspaces_label);
        maxWorkspacesField = new Spinner(parent, SWT.BORDER);
        maxWorkspacesField.setTextLimit(MAX_WORKSPACES_DIGIT_COUNT);
        maxWorkspacesField.setMinimum(MIN_WORKSPACS);
        maxWorkspacesField.setMaximum(MAX_WORKSPACES);

        maxWorkspacesField.setSelection(workspacesData.getRecentWorkspaces().length);
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

            visualizing.setItems(new String[] {"Read", "Write"});
            visualizing.setSelection(0);
            lastVis = "Read";
            Label lbmin = new Label(preference,SWT.NONE);
            lbmin.setText("Min Blockno.");
            min = new Spinner(preference,SWT.NONE);
            min.setMinimum(0);
            min.setMaximum(1000000);
            Label lbmax = new Label(preference,SWT.NONE);
            lbmax.setText("Max Blockno.");
            max = new Spinner(preference,SWT.NONE);
            max.setMinimum(0);
            max.setMaximum(1000000);
            btResetHistory = new Button(preference, SWT.PUSH);
            btResetHistory.setText("Reset Touch History");
            btResetHistory.addSelectionListener(this);
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

            visualizing.setItems(new String[] {"Read", "Write"});
            visualizing.setSelection(0);
            lastVis = "Read";
            Label lbmin = new Label(preference,SWT.NONE);
            lbmin.setText("Min Blockno.");
            min = new Spinner(preference,SWT.NONE);
            min.setMinimum(0);
            min.setMaximum(1000000);
            Label lbmax = new Label(preference,SWT.NONE);
            lbmax.setText("Max Blockno.");
            max = new Spinner(preference,SWT.NONE);
            max.setMinimum(0);
            max.setMaximum(1000000);
            btResetHistory = new Button(preference, SWT.PUSH);
            btResetHistory.setText("Reset Touch History");
            btResetHistory.addSelectionListener(this);
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

       *            the parent
       * @return the text control
       */
      public Spinner getSpinnerControl(Composite parent) {
        if (spinner == null) {
          spinner = new Spinner(parent, SWT.SINGLE | SWT.BORDER);
          spinner.setFont(parent.getFont());
          switch (validateStrategy) {
          case VALIDATE_ON_KEY_STROKE:
            spinner.addKeyListener(new KeyAdapter() {

    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

          }
        });

        createLabel(client, Messages.ApplicationDetailsPart_TEXT_INSTANCE, SWT.CENTER);

        instanceSpinner = new Spinner(client, SWT.BORDER);
        GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).applyTo(instanceSpinner);
        instanceSpinner.setMinimum(0);
        instanceSpinner.addModifyListener(new ModifyListener() {

          public void modifyText(ModifyEvent e) {
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

                        depthLimit.setEnabled(false);
                    }
                }
            });

            depthLimit = new Spinner(filterOptionsComposite, 0);
            toolkit.adapt(depthLimit);
            depthLimit.setMinimum(1);
            depthLimit.setSelection(2);
            depthLimit.setIncrement(1);
            depthLimit.setSize(150, 40);
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

            Composite compositeRowZoom = new Composite(compositeZoom, SWT.NONE);
            compositeRowZoom.setLayout(new GridLayout(2, true));
            Label lblZoomMin = new Label (compositeRowZoom, SWT.HORIZONTAL | SWT.BOLD);
            lblZoomMin.setText(Messages.Wizard_CS_Min);
                   
            spZoomMin = new Spinner (compositeRowZoom, SWT.BORDER | SWT.READ_ONLY);
            spZoomMin.setMinimum(0);
            spZoomMin.setMaximum(22);
            spZoomMin.setSelection(2);
            spZoomMin.setIncrement(1);
            spZoomMin.pack();
            //endregion

            //region Zoom-Max
            Label lblZoomMax = new Label (compositeRowZoom, SWT.HORIZONTAL | SWT.BOLD);
            lblZoomMax.setText(Messages.Wizard_CS_Max);
                   
            spZoomMax = new Spinner (compositeRowZoom, SWT.BORDER | SWT.READ_ONLY);
            spZoomMax.setMinimum(0);
            spZoomMax.setMaximum(22);
            spZoomMax.setSelection(18);
            spZoomMax.setIncrement(1);
            spZoomMax.pack();
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

           
            lblUseZoomLevel = new Label (compositeZoomLevelSelection, SWT.HORIZONTAL);
            lblUseZoomLevel.setText(Messages.Properties_Layer_UseZoomLevel);
           
            // "Spinner": Zoom-Level-Selector
            spZoomLevelValue = new Spinner (compositeZoomLevelSelection, SWT.BORDER | SWT.READ_ONLY);
            spZoomLevelValue.setMinimum(wmtSource.getMinZoomLevel());
            spZoomLevelValue.setMaximum(wmtSource.getMaxZoomLevel());
            spZoomLevelValue.setIncrement(1);
            spZoomLevelValue.pack();
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

        lblInit = new Label(pane, SWT.NONE);
        lblInit.setText(Messages.NumberAccessible_Initial_Value);
        data = new GridData();
        data.horizontalIndent = 25;
        lblInit.setLayoutData(data);
        spInit = new Spinner(pane, SWT.BORDER);
        spInit.setMinimum(0);
        spInit.setMaximum(Integer.MAX_VALUE);
        spInit.setSelection(0);
        data = new GridData();
        data.horizontalAlignment = SWT.FILL;
        spInit.setLayoutData(data);
        btnMin = new Button(pane, SWT.CHECK);
        btnMin.setText(Messages.NumberAccessible_Min);
        data = new GridData();
        data.horizontalIndent = 25;
        btnMin.setLayoutData(data);
        btnMin.addSelectionListener(new SelectionAdapter() {
         
          public void widgetSelected(SelectionEvent e) {
            btnMinSelected();
          }
        });
        spMin = new Spinner(pane, SWT.BORDER);
        data = new GridData();
        data.horizontalAlignment = SWT.FILL;
        spMin.setLayoutData(data);
        spMin.setMinimum(0);
        spMin.setMaximum(Integer.MAX_VALUE);
        spMin.setSelection(0);
        btnMax = new Button(pane, SWT.CHECK);
        btnMax.setText(Messages.NumberAccessible_Max);
        data = new GridData();
        data.horizontalIndent = 25;
        btnMax.setLayoutData(data);
        btnMax.addSelectionListener(new SelectionAdapter() {
         
          public void widgetSelected(SelectionEvent e) {
            btnMaxSelected();
          }
        });
        spMax = new Spinner(pane, SWT.BORDER);
        data = new GridData();
        data.horizontalAlignment = SWT.FILL;
        spMax.setLayoutData(data);
        spMax.setMinimum(0);
        spMax.setMaximum(Integer.MAX_VALUE);
        spMax.setSelection(0);
        lblStep = new Label(pane, SWT.NONE);
        lblStep.setText(Messages.NumberAccessible_Step_Size);
        data = new GridData();
        data.horizontalIndent = 25;
        lblStep.setLayoutData(data);
        spStep = new Spinner(pane, SWT.BORDER);
        data = new GridData();
        data.horizontalAlignment = SWT.FILL;
        spStep.setLayoutData(data);
        spStep.setSelection(1);
        spStep.setMinimum(1);
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

      private Spinner spinner;
     
      public UXSpinner(Composite parent) {
        super(parent);
        spinner = new Spinner(container, SWT.BORDER);
       
        FormData data = (FormData) label.getLayoutData();
        data.top = new FormAttachment(0, 5);
       
        data = new FormData();
    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.