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

            public void widgetSelected(SelectionEvent e) {
              fLimitNotificationSpinner.setEnabled(fLimitNotificationCheck.getSelection());
            }
          });

          fLimitNotificationSpinner = new Spinner(limitItemsContainer, SWT.BORDER);
          fLimitNotificationSpinner.setMinimum(1);
          fLimitNotificationSpinner.setMaximum(30);
          fLimitNotificationSpinner.setEnabled(fLimitNotificationCheck.getSelection());
          if (notificationLimit > 0)
            fLimitNotificationSpinner.setSelection(notificationLimit);
          else
            fLimitNotificationSpinner.setSelection(notificationLimit * -1);

          label = new Label(limitItemsContainer, SWT.None);
          label.setText(Messages.NotifierPreferencesPage_SHOW_MAX_NEWS_END);

          /* Full Content */
          fShowExcerptCheck = new Button(group, SWT.CHECK);
          fShowExcerptCheck.setText(Messages.NotifierPreferencesPage_SHOW_EXCERPT);
          fShowExcerptCheck.setSelection(fGlobalScope.getBoolean(DefaultPreferences.SHOW_EXCERPT_IN_NOTIFIER));

          /* Only from Tray */
          fNotificationOnlyFromTray = new Button(group, SWT.CHECK);
          fNotificationOnlyFromTray.setText(Messages.NotifierPreferencesPage_SHOW_WHEN_MINIMIZED);
          fNotificationOnlyFromTray.setSelection(fGlobalScope.getBoolean(DefaultPreferences.SHOW_NOTIFICATION_POPUP_ONLY_WHEN_MINIMIZED));

          /* Close Notifier when opening Item */
          fCloseNotifierOnOpen = new Button(group, SWT.CHECK);
          fCloseNotifierOnOpen.setText(Messages.NotifierPreferencesPage_CLOSE_NOTIFIER_ON_OPEN);
          fCloseNotifierOnOpen.setSelection(fGlobalScope.getBoolean(DefaultPreferences.CLOSE_NOTIFIER_ON_OPEN));

          /* Auto Close Notifier */
          Composite autoCloseContainer = new Composite(group, SWT.None);
          autoCloseContainer.setLayout(LayoutUtils.createGridLayout(3, 0, 0, 0, 2, false));

          fAutoCloseNotifierCheck = new Button(autoCloseContainer, SWT.CHECK);
          fAutoCloseNotifierCheck.setText(Messages.NotifierPreferencesPage_CLOSE_AUTOMATICALLY);
          fAutoCloseNotifierCheck.setSelection(!fGlobalScope.getBoolean(DefaultPreferences.STICKY_NOTIFICATION_POPUP));
          fAutoCloseNotifierCheck.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
              fAutoCloseNotifierSpinner.setEnabled(fAutoCloseNotifierCheck.getSelection());
            }
          });

          int notificationAutoCloseValue = fGlobalScope.getInteger(DefaultPreferences.AUTOCLOSE_NOTIFICATION_VALUE);

          fAutoCloseNotifierSpinner = new Spinner(autoCloseContainer, SWT.BORDER);
          fAutoCloseNotifierSpinner.setMinimum(1);
          fAutoCloseNotifierSpinner.setMaximum(99);
          fAutoCloseNotifierSpinner.setEnabled(fAutoCloseNotifierCheck.getSelection());
          fAutoCloseNotifierSpinner.setSelection(notificationAutoCloseValue);

    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

            fAutoCloseTabsSpinner.setEnabled(fAutoCloseTabsCheck.getSelection());
            fAlwaysReuseFeedView.setEnabled(!fAutoCloseTabsCheck.getSelection() || fAutoCloseTabsSpinner.getSelection() > 1);
          }
        });

        fAutoCloseTabsSpinner = new Spinner(autoCloseTabsContainer, SWT.BORDER);
        fAutoCloseTabsSpinner.setMinimum(1);
        fAutoCloseTabsSpinner.setMaximum(100);
        fAutoCloseTabsSpinner.setSelection(fEclipseScope.getInteger(DefaultPreferences.ECLIPSE_AUTOCLOSE_TABS_THRESHOLD));
        fAutoCloseTabsSpinner.setEnabled(fAutoCloseTabsCheck.getSelection());
        fAutoCloseTabsSpinner.addSelectionListener(new SelectionAdapter() {
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

       
        yearLabel = new Label(group, SWT.NONE);
        yearLabel.setLayoutData(new GridData());
        yearLabel.setText("Year:");
       
        sYear = new Spinner(group, SWT.BORDER);
        final GridData gridData2 = new GridData(40, SWT.DEFAULT);
        sYear.setLayoutData(gridData2);
        sYear.setMinimum(1900);
        sYear.setMaximum(10000);
       
        label1 = new Label(group, SWT.NONE);
        label1.setText("Month:");
       
        sMonth = new Spinner(group, SWT.BORDER);
        final GridData gridData21 = new GridData(20, SWT.DEFAULT);
        sMonth.setLayoutData(gridData21);
        sMonth.setMinimum(1);
        sMonth.setMaximum(12);
       
        label2 = new Label(group, SWT.NONE);
        label2.setText("Day:");
       
        sDay = new Spinner(group, SWT.BORDER);
        final GridData gridData31 = new GridData(20, SWT.DEFAULT);
        sDay.setLayoutData(gridData31);
        sDay.setMinimum(1);
        sDay.setMaximum(31);
       
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

                    SelectionEvent selectionEvent = new SelectionEvent(event);
                    sendSelectionEvent(selectionEvent);
                }
            });

            yearSelector = new Spinner(this, SWT.FLAT);
            yearSelector.setLayoutData(yearData);
            yearSelector.setMaximum(9999);
            yearSelector.setMinimum(1970);
            yearSelector.addSelectionListener(new SelectionListener() {
                public void widgetDefaultSelected(SelectionEvent e) {
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

           }
         });
         butUnlimitedNonExclusive.setSelection(true);
         butUnlimitedNonExclusive.setText("unlimited");
         butUnlimitedNonExclusive.setEnabled(false);
         sMaxNonExclusive = new Spinner(locksGroup, SWT.NONE);
         sMaxNonExclusive.setMaximum(99999999);
         sMaxNonExclusive.setLayoutData(gridData4);
         sMaxNonExclusive.setEnabled(false);
         sMaxNonExclusive.addKeyListener(new org.eclipse.swt.events.KeyAdapter() {
           public void keyPressed(org.eclipse.swt.events.KeyEvent e) {
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

             final Label orderingLabel = new Label(scriptcom, SWT.NONE);
             orderingLabel.setLayoutData(new GridData());
             orderingLabel.setText("  Ordering: ");

             spinner = new Spinner(scriptcom, SWT.BORDER);
             spinner.addSelectionListener(new SelectionAdapter() {
               public void widgetSelected(final SelectionEvent e) {
                 if(!init)
                 listener.setOrdering(String.valueOf(spinner.getSelection()));
               }
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

        bApply = new Button(group, SWT.NONE);
        label5 = new Label(group, SWT.NONE);
        label5.setText("Max Processes:");
        GridData gridData4 = new GridData(GridData.FILL, GridData.CENTER, false, false);
        gridData4.widthHint = 20;
        sMaxProcesses = new Spinner(group, SWT.NONE);
        sMaxProcesses.addTraverseListener(new TraverseListener() {
          public void keyTraversed(final TraverseEvent e) {
            traversed(e);
            /*if (e.keyCode == SWT.CR) {
              applyClass();
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

            } );

            // Syntax Length
            Label lengthLabel = new Label( syntaxGroup, SWT.NONE );
            lengthLabel.setText( Messages.getString( "NewAttributeTypeContentWizardPage.Length" ) ); //$NON-NLS-1$
            lengthSpinner = new Spinner( syntaxGroup, SWT.BORDER );
            lengthSpinner.setIncrement( 1 );
            lengthSpinner.setMinimum( 0 );
            lengthSpinner.setMaximum( Integer.MAX_VALUE );
            GridData lengthSpinnerGridData = new GridData( SWT.NONE, SWT.NONE, false, false );
            lengthSpinnerGridData.widthHint = 42;
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

            timeLabel.setText( Messages.getString( "GeneralizedTimeValueDialog.Time" ) ); //$NON-NLS-1$

            Composite rightComposite = BaseWidgetUtils.createColumnContainer( parent, 5, 1 );

            // Hours
            hoursSpinner = new Spinner( rightComposite, SWT.BORDER );
            hoursSpinner.setMinimum( 0 );
            hoursSpinner.setMaximum( 23 );
            hoursSpinner.setTextLimit( 2 );
            hoursSpinner.setLayoutData( new GridData( SWT.LEFT, SWT.CENTER, false, false ) );

            Label label1 = BaseWidgetUtils.createLabel( rightComposite, ":", 1 ); //$NON-NLS-1$
            label1.setLayoutData( new GridData( SWT.CENTER, SWT.CENTER, true, false ) );

            // Minutes
            minutesSpinner = new Spinner( rightComposite, SWT.BORDER );
            minutesSpinner.setMinimum( 0 );
            minutesSpinner.setMaximum( 59 );
            minutesSpinner.setTextLimit( 2 );
            minutesSpinner.setLayoutData( new GridData( SWT.CENTER, SWT.CENTER, false, false ) );

            Label label2 = BaseWidgetUtils.createLabel( rightComposite, ":", 1 ); //$NON-NLS-1$
            label2.setLayoutData( new GridData( SWT.CENTER, SWT.CENTER, true, false ) );

            // Seconds
            secondsSpinner = new Spinner( rightComposite, SWT.BORDER );
            secondsSpinner.setMinimum( 0 );
            secondsSpinner.setMaximum( 59 );
            secondsSpinner.setTextLimit( 2 );
            secondsSpinner.setLayoutData( new GridData( SWT.RIGHT, SWT.CENTER, false, false ) );
        }
    View Full Code Here

    Examples of org.eclipse.swt.widgets.Spinner

            Composite composite = ( Composite ) super.createDialogArea( parent );
            composite.setLayout( new GridLayout() );
            GridData gd = new GridData( GridData.FILL_BOTH );
            composite.setLayoutData( gd );

            spinner = new Spinner( composite, SWT.BORDER );
            spinner.setMinimum( Integer.MIN_VALUE );
            spinner.setMaximum( Integer.MAX_VALUE );
            spinner.setDigits( 0 );
            spinner.setIncrement( 1 );
            spinner.setPageIncrement( 100 );
    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.