Package org.eclipse.ui.forms.widgets

Examples of org.eclipse.ui.forms.widgets.TableWrapData


    {
        Section section = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR );
        section.marginWidth = 10;
        section.setText( "Extended Operation Details" ); //$NON-NLS-1$
        section.setDescription( "Set the properties of the extended operation." ); //$NON-NLS-1$
        TableWrapData td = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
        td.grabHorizontal = true;
        section.setLayoutData( td );
        Composite client = toolkit.createComposite( section );
        toolkit.paintBordersFor( client );
        GridLayout glayout = new GridLayout( 3, false );
View Full Code Here


        // Creation of the section
        Section section = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR );
        section.marginWidth = 4;
        section.setText( "Settings" );
        section.setDescription( "Set the settings of the server." );
        TableWrapData td = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
        td.grabHorizontal = true;
        section.setLayoutData( td );
        Composite client = toolkit.createComposite( section );
        toolkit.paintBordersFor( client );
        GridLayout glayout = new GridLayout( 2, false );
View Full Code Here

        // Creation of the section
        Section section = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR );
        section.marginWidth = 4;
        section.setText( "Limits" );
        section.setDescription( "Set the limits of the server." );
        TableWrapData td = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
        td.grabHorizontal = true;
        section.setLayoutData( td );
        Composite client = toolkit.createComposite( section );
        toolkit.paintBordersFor( client );
        GridLayout glayout = new GridLayout( 2, false );
View Full Code Here

        // Creation of the section
        Section section = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR );
        section.marginWidth = 4;
        section.setText( "Options" );
        section.setDescription( "Set the options of the server." );
        TableWrapData td = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
        td.grabHorizontal = true;
        section.setLayoutData( td );
        Composite client = toolkit.createComposite( section );
        toolkit.paintBordersFor( client );
        GridLayout glayout = new GridLayout();
View Full Code Here

        Section section = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR );
        section.marginWidth = 4;
        section.setText( "Binary Attributes" );
        section
            .setDescription( "Set attribute type names and OID's if you want an them to be handled as binary content." );
        TableWrapData td = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
        td.grabHorizontal = true;
        section.setLayoutData( td );
        Composite client = toolkit.createComposite( section );
        toolkit.paintBordersFor( client );
        GridLayout glayout = new GridLayout( 2, false );
View Full Code Here

    errorConfigDetails = new ErrorConfigDetailsPage(multiPageEditor, mform, isDelegate);
    errorConfigDetails.createConfigurationsSection(parent, toolkit);
  }

  private Section createIdentitySection(Composite parent, FormToolkit toolkit) {
    TableWrapData td;

    sectionAEMetaDataDetails = FormSection.createTableWrapDataSection(toolkit, parent,
            Section.TWISTIE,
            Messages.DDE_AEConfigPage_AEConfig_Section_Title,
            "Set the properties of ...", 10, 5,
            TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB, 1, 1);
    final SectionPart spart = new SectionPart(sectionAEMetaDataDetails);
    mform.addPart(spart);
    spart.initialize(mform); // Need this code. Otherwise, exception in SectionPart !!!
    sectionAEMetaDataDetails.setExpanded(true);

    // /////////////////////////////////////////////////////////////////////

    Composite sectionClient = toolkit.createComposite(sectionAEMetaDataDetails);
    TableWrapLayout tl = new TableWrapLayout();
    tl.numColumns = 2;
    tl.leftMargin = 0;
    tl.rightMargin = 0;
    tl.topMargin = 10;
    tl.bottomMargin = 0;
    sectionClient.setLayout(tl);
    sectionAEMetaDataDetails.setClient(sectionClient);

    // Co-located or Remote
    // toolkit.createLabel(sectionClient, "", SWT.NONE);
    Composite colocatedOrRemote = toolkit.createComposite(sectionClient, SWT.NONE);
    GridLayout gl = new GridLayout(3, true);
    gl.marginWidth = 0;
    colocatedOrRemote.setLayout(gl);
    td = new TableWrapData(TableWrapData.FILL);
    td.colspan = 2;
    td.grabHorizontal = true;
    td.indent = 0;
    colocatedOrRemote.setLayoutData(td);
    Label label = toolkit.createLabel(colocatedOrRemote, "Deployment:", SWT.NONE);
    label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
    deploymentCoLocated = toolkit.createButton(colocatedOrRemote, "Co-located", SWT.RADIO);
    deploymentRemote = toolkit.createButton(colocatedOrRemote, "Remote", SWT.RADIO);
    deploymentCoLocated.setSelection(true);
    deploymentCoLocated.addSelectionListener(deploymentListener);
    deploymentRemote.addSelectionListener(deploymentListener);

    stackLayoutComposite = new Composite(sectionClient, SWT.NONE);
    stackLayout = new StackLayout();
    stackLayoutComposite.setLayout(stackLayout);
    td = new TableWrapData(TableWrapData.FILL);
    td.colspan = 2;
    td.grabHorizontal = true;
    td.indent = 0;
    stackLayoutComposite.setLayoutData(td);
View Full Code Here

      }
    });
  }

  protected void displayProblem(String errMsg) {
    TableWrapData layoutData = new TableWrapData();
    if( errMsg == null ) {
      problemLbl.setVisible( false );
      problemLbl.setText( "" );
      layoutData.maxHeight = 0;
      layoutData.maxWidth = 0;
View Full Code Here

  private void addContextItem( HashMap<String, String> hash )
  {
    Label lbl;
    String msg = hash.get( "Text" ) + " (" + hash.get( "Type" ) + ")";
    lbl = toolkit.createLabel( contextPanel, msg, SWT.WRAP );
    lbl.setLayoutData( new TableWrapData( TableWrapData.FILL_GRAB ) );

    String contextID = hash.get( "ID" );
    currentContext.add(contextID);

    ImageHyperlink link = toolkit.createImageHyperlink( contextPanel, SWT.NONE );
    link.setHref( contextID );
    link.setImage( removeImg ); // linkBackImg );
//    link.setToolTipText( "Context item related action" );
    link.setToolTipText( "Remove this item" );
    link.addHyperlinkListener( new HyperlinkAdapter() {
      @Override
      public void linkActivated( HyperlinkEvent e )
      {
        // item ID is in e.getHref()
        String id = e.getHref().toString();
        System.out.println( "Link activated: " + id );
        currentContext.remove(id);
        getEmbetClient().submitUserContext(userID, currentContext);
        // wait a bit for server-side changes
        try { Thread.sleep(500); } catch (InterruptedException e1) {}
        reloadContent();
//        embetClient.applicationRequest( "APP", e.getHref().toString() );
//        contextItemClicked( e.getHref().toString() );
      }
    });
    link.setLayoutData( new TableWrapData( TableWrapData.RIGHT ) );

    lbl = toolkit.createSeparator( contextPanel, SWT.HORIZONTAL | SWT.SHADOW_IN );
    lbl.setLayoutData( new TableWrapData( TableWrapData.FILL_GRAB, TableWrapData.MIDDLE, 1, 2 ) );
  }
View Full Code Here

    lbl = toolkit.createLabel( timePanel, hash.get("Time") );
    lbl.setForeground( colorGray );

    // separator line
    lbl = toolkit.createSeparator( knowPanel, SWT.HORIZONTAL | SWT.SHADOW_IN );
    lbl.setLayoutData( new TableWrapData( TableWrapData.FILL ) );

    // create space for next note
    Composite sep = toolkit.createComposite( knowPanel );
    TableWrapLayout layout2 = new TableWrapLayout();
    layout2.topMargin = 0;
View Full Code Here

    problemLbl = toolkit.createLabel( form.getBody(), "", SWT.WRAP );
    problemLbl.setVisible( false );
    problemLbl.setForeground( parent.getDisplay().getSystemColor( SWT.COLOR_RED ) );
    // make sure the label does not take up space when not shown
    TableWrapData layoutData = new TableWrapData();
    layoutData.maxHeight = 0;
    layoutData.maxWidth = 0;
    problemLbl.setLayoutData( layoutData );

   
View Full Code Here

TOP

Related Classes of org.eclipse.ui.forms.widgets.TableWrapData

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.