Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Slider


        gridData = new GridData();
        gridData.horizontalAlignment = GridData.BEGINNING;
        gridData.verticalAlignment = GridData.BEGINNING;
        sliderTopComposite.setLayoutData(gridData);

        Slider sliderTop = new Slider(sliderTopComposite, SWT.VERTICAL);
        gridData = new GridData();
        gridData.horizontalAlignment = GridData.FILL;
        gridData.verticalAlignment = GridData.FILL;
        sliderTop.setLayoutData(gridData);

        top.setVerticalScroller(new SliderScroller(sliderTop));

        // Slider Right
        Slider sliderBottom = new Slider(sliderComposite, SWT.VERTICAL);
        gridData = new GridData();
        gridData.horizontalAlignment = GridData.BEGINNING;
        gridData.verticalAlignment = GridData.FILL;
        gridData.grabExcessHorizontalSpace = false;
        gridData.grabExcessVerticalSpace = true;
        sliderBottom.setLayoutData(gridData);

        bottom.setVerticalScroller(new SliderScroller(sliderBottom));
    }
View Full Code Here


        children[i] = progress;
      } else if (control.equals("Scale")) {
        Scale scale = new Scale(layoutComposite, SWT.NONE);
        children[i] = scale;
      } else if (control.equals("Slider")) {
        Slider slider = new Slider(layoutComposite, SWT.NONE);
        children[i] = slider;
      } else if (control.equals("StyledText")) {
        StyledText styledText = new StyledText(layoutComposite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL
            | SWT.H_SCROLL);
        styledText.setText(LayoutExample.getResourceString("StyledText_Index", new String[] { new Integer(i)
View Full Code Here

      style |= SWT.VERTICAL;
    if (borderButton.getSelection())
      style |= SWT.BORDER;

    /* Create the example widgets */
    slider1 = new Slider(sliderGroup, style);
  }
View Full Code Here

      try {
        Browser browser= new Browser(parent, SWT.NONE);
        browser.dispose();
        fgIsAvailable= true;

        Slider sliderV= new Slider(parent, SWT.VERTICAL);
        Slider sliderH= new Slider(parent, SWT.HORIZONTAL);
        int width= sliderV.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
        int height= sliderH.computeSize(SWT.DEFAULT, SWT.DEFAULT).y;
        fgScrollBarSize= new Point(width, height);
        sliderV.dispose();
        sliderH.dispose();
      } catch (SWTError er) {
        fgIsAvailable= false;
      } finally {
        fgAvailabilityChecked= true;
      }
View Full Code Here

    resizer.addMouseListener(resizeSupport);
  }

  private int getResizeHandleSize(Composite parent) {
    if (fResizeHandleSize == -1) {
      Slider sliderV= new Slider(parent, SWT.VERTICAL);
      Slider sliderH= new Slider(parent, SWT.HORIZONTAL);
      int width= sliderV.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
      int height= sliderH.computeSize(SWT.DEFAULT, SWT.DEFAULT).y;
      sliderV.dispose();
      sliderH.dispose();
      fResizeHandleSize= Math.min(width, height);
    }

    return fResizeHandleSize;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Slider

Copyright © 2018 www.massapicom. 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.