Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowLayout


    }
   
    @Override
    public void createPageContent( Composite parent ) {
        Composite configHolder = new Composite(parent, SWT.NONE);
        RowLayout layout = new RowLayout(SWT.HORIZONTAL);
        layout.pack = false;
        layout.wrap = true;
        layout.type = SWT.HORIZONTAL;
        layout.fill = true;
        layout.marginLeft = 0;
View Full Code Here


            final Display display = button.getDisplay();
            if (popup == null) {
                popup = new Shell(display.getActiveShell(), SWT.NO_FOCUS | SWT.ON_TOP);
                popup.setForeground(display.getSystemColor(SWT.COLOR_INFO_FOREGROUND));
                popup.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
                popup.setLayout(new RowLayout());
                Composite composite = new Composite(popup, SWT.NONE);
                composite.setForeground(display.getSystemColor(SWT.COLOR_INFO_FOREGROUND));
                composite.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
                composite.setLayout(new RowLayout());
                textLabel = new Label(popup, SWT.NONE);
                textLabel.setForeground(display.getSystemColor(SWT.COLOR_INFO_FOREGROUND));
                textLabel.setBackground(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
                textLabel.setFont(button.getFont());
View Full Code Here

        parent.setLayout( new GridLayout( 1,
                                          true ) );

        Composite row = toolkit.createComposite( parent );
        RowLayout rl = new RowLayout();
        rl.marginBottom = 0;
        rl.marginHeight = 0;
        rl.marginLeft = 0;
        rl.marginRight = 0;
        rl.pack = true;
View Full Code Here

        public DSLCheckBox(Composite parent,
                           String variableDef) {

            control = toolkit.createComposite( parent );
            control.setLayout( new RowLayout() );

            int firstIndex = variableDef.indexOf( ":" );
            int lastIndex = variableDef.lastIndexOf( ":" );
            varName = variableDef.substring( 0,
                                             firstIndex );
View Full Code Here

        public DSLDateSelector(final Composite parent,
                               String variableDef) {

            control = toolkit.createComposite( parent );
            control.setLayout( new RowLayout() );

            int firstIndex = variableDef.indexOf( ":" );
            int lastIndex = variableDef.lastIndexOf( ":" );
            varName = variableDef.substring( 0,
                                             firstIndex );
View Full Code Here

   * @return a RowLayoutFactory that creates RowLayouts as though created with
   *         their default constructor
   * @see #fillDefaults
   */
  public static RowLayoutFactory swtDefaults() {
    return new RowLayoutFactory(new RowLayout());
  }
View Full Code Here

   *
   * @return a RowLayoutFactory that creates RowLayouts with no margins
   * @see #swtDefaults
   */
  public static RowLayoutFactory fillDefaults() {
    RowLayout layout = new RowLayout();
    layout.marginTop = 0;
    layout.marginBottom = 0;
    layout.marginLeft = 0;
    layout.marginRight = 0;
    layout.spacing = LayoutConstants.getSpacing().x;
View Full Code Here

   * @param layout
   *            layout to copy
   * @return a new RowLayout
   */
  public static RowLayout copyLayout(RowLayout layout) {
    RowLayout result = new RowLayout(layout.type);
    result.marginBottom = layout.marginBottom;
    result.marginTop = layout.marginTop;
    result.marginLeft = layout.marginLeft;
    result.marginRight = layout.marginRight;
    result.marginHeight = layout.marginHeight;
View Full Code Here

    //populate the list of servers
    addServers();
   
    //add the layout for the buttons to add and remove servers
    Composite buttons = new Composite(root,SWT.NULL);
    RowLayout rl = new RowLayout();
    rl.pack = false;
    rl.wrap = false;
    buttons.setLayout(rl);
    Button newServer = new Button(buttons,SWT.NULL);
    newServer.setText("Add Server...");
View Full Code Here

            setPageComplete(true);
          }     
        });
   
    Composite buttons = new Composite(root,SWT.NULL);
    RowLayout rl = new RowLayout();
    rl.pack = false;
    rl.wrap = false;
    buttons.setLayout(rl);
    Button newServer = new Button(buttons,SWT.NULL);
    newServer.setText("Add Server...");
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.RowLayout

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.