Codota Logo
FormLayout.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.eclipse.swt.layout.FormLayout
constructor

Best Java code snippets using org.eclipse.swt.layout.FormLayout.<init> (Showing top 20 results out of 612)

Refine searchRefine arrow

  • FormData.<init>
  • FormAttachment.<init>
  • BaseMessages.getString
  • Label.<init>
  • Label.setLayoutData
  • Button.<init>
  • Label.setText
  • Common ways to obtain FormLayout
private void myMethod () {
FormLayout f =
  • Codota Iconnew FormLayout()
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

props.setLook( composite );
FormLayout compLayout = new FormLayout();
compLayout.marginHeight = Const.FORM_MARGIN;
compLayout.marginWidth = Const.FORM_MARGIN;
composite.setLayout( compLayout );
wlServername = new Label( composite, SWT.RIGHT );
wlServername.setText( BaseMessages.getString( PKG, "CreateDatabaseWizardPageInformix.Servername.Label" ) );
props.setLook( wlServername );
fdlServername = new FormData();
fdlServername.top = new FormAttachment( 0, 0 );
fdlServername.left = new FormAttachment( 0, 0 );
fdlServername.right = new FormAttachment( middle, 0 );
wlServername.setLayoutData( fdlServername );
fdServername = new FormData();
fdServername.top = new FormAttachment( 0, 0 );
fdServername.left = new FormAttachment( middle, margin );
origin: pentaho/pentaho-kettle

fileNameSupplier = repository == null ? this::promptForLocalFile : this::promptForRepositoryFile;
FormLayout formLayout = new FormLayout();
formLayout.marginWidth = 0;
formLayout.marginHeight = 0;
FormData fdFileName = new FormData();
fdFileName.left = new FormAttachment( 0, 0 );
fdFileName.top = new FormAttachment( 0, 0 );
fdFileName.width = 275;
wFileName.setLayoutData( fdFileName );
wBrowse = new Button( this, SWT.PUSH );
wBrowse.setText( BaseMessages.getString( PKG, "VFSFileSelection.Dialog.Browse" ) );
FormData fdBrowse = new FormData();
fdBrowse.left = new FormAttachment( wFileName, 5 );
fdBrowse.top = new FormAttachment( wFileName, 0, SWT.TOP );
wBrowse.setLayoutData( fdBrowse );
origin: pentaho/pentaho-kettle

private Group createGroup( Composite parentTab, Control top, String label ) {
 Group group = new Group( parentTab, SWT.SHADOW_NONE );
 props.setLook( group );
 group.setText( label );
 FormLayout groupLayout = new FormLayout();
 groupLayout.marginWidth = 10;
 groupLayout.marginHeight = 10;
 group.setLayout( groupLayout );
 FormData fdGroup = new FormData();
 fdGroup.left = new FormAttachment( 0, Const.MARGIN );
 fdGroup.top = new FormAttachment( top, Const.MARGIN );
 fdGroup.right = new FormAttachment( 100, -Const.MARGIN );
 group.setLayoutData( fdGroup );
 return group;
}
origin: pentaho/pentaho-kettle

private void layoutComposite() {
 FormLayout flAuthComp = new FormLayout();
 this.setLayout( flAuthComp );
 wAuthGroup.setText( authGroupLabel );
 FormLayout flAuthGroup = new FormLayout();
 flAuthGroup.marginHeight = 15;
 flAuthGroup.marginWidth = 15;
 wlUsername = new Label( wAuthGroup, SWT.LEFT );
 props.setLook( wlUsername );
 wlUsername.setText( usernameLabel );
 wlUsername.setLayoutData( new FormDataBuilder().left().top().result() );
 wlPassword = new Label( wAuthGroup, SWT.LEFT );
 props.setLook( wlPassword );
 wlPassword.setText( passwordLabel );
 wlPassword.setLayoutData( new FormDataBuilder().left().top( wUsername, ConstUI.MEDUIM_MARGIN ).result() );
origin: pentaho/pentaho-kettle

props.setLook( composite );
FormLayout compLayout = new FormLayout();
compLayout.marginHeight = Const.FORM_MARGIN;
compLayout.marginWidth = Const.FORM_MARGIN;
composite.setLayout( compLayout );
wlDSN = new Label( composite, SWT.RIGHT );
wlDSN.setText( BaseMessages.getString( PKG, "CreateDatabaseWizardPageODBC.DSN.Label" ) );
props.setLook( wlDSN );
fdlDSN = new FormData();
fdlDSN.left = new FormAttachment( 0, 0 );
fdlDSN.right = new FormAttachment( middle, 0 );
wlDSN.setLayoutData( fdlDSN );
wDSN = new Text( composite, SWT.SINGLE | SWT.BORDER );
props.setLook( wDSN );
fdDSN = new FormData();
fdDSN.left = new FormAttachment( middle, margin );
fdDSN.right = new FormAttachment( 100, 0 );
wDSN.setLayoutData( fdDSN );
origin: pentaho/pentaho-kettle

private void buildSetupTab() {
 wSetupTab = new CTabItem( wTabFolder, SWT.NONE );
 wSetupTab.setText( BaseMessages.getString( PKG, "BaseStreamingDialog.SetupTab" ) );
 wSetupComp = new Composite( wTabFolder, SWT.NONE );
 props.setLook( wSetupComp );
 FormLayout setupLayout = new FormLayout();
 setupLayout.marginHeight = 15;
 setupLayout.marginWidth = 15;
 wSetupComp.setLayout( setupLayout );
 buildSetup( wSetupComp );
 FormData fdSetupComp = new FormData();
 fdSetupComp.left = new FormAttachment( 0, 0 );
 fdSetupComp.top = new FormAttachment( 0, 0 );
 fdSetupComp.right = new FormAttachment( 100, 0 );
 fdSetupComp.bottom = new FormAttachment( 100, 0 );
 wSetupComp.setLayoutData( fdSetupComp );
 wSetupComp.layout();
 wSetupTab.setControl( wSetupComp );
}
origin: pentaho/pentaho-kettle

private void addTree() {
 mainComposite = new Composite( sashform, SWT.BORDER );
 mainComposite.setLayout( new FormLayout() );
 props.setLook( mainComposite, Props.WIDGET_STYLE_TOOLBAR );
 tabFolder = new CTabFolder( mainComposite, SWT.HORIZONTAL );
 props.setLook( tabFolder, Props.WIDGET_STYLE_TAB );
 FormData fdTab = new FormData();
 fdTab.left = new FormAttachment( 0 );
 fdTab.top = new FormAttachment( mainComposite, 0 );
 fdTab.right = new FormAttachment( 100 );
 fdTab.bottom = new FormAttachment( 100 );
 tabFolder.setLayoutData( fdTab );
 addViewTab( tabFolder );
 addDesignTab( tabFolder );
 tabFolder.setSelection( view );
 coreStepToolTipMap = new Hashtable<>();
 coreJobToolTipMap = new Hashtable<>();
 addDefaultKeyListeners( tabFolder );
 addDefaultKeyListeners( mainComposite );
}
origin: pentaho/pentaho-kettle

public LabelText( Composite composite, int textStyle, String labelText, String toolTipText, int middle,
 int margin ) {
 super( composite, SWT.NONE );
 props.setLook( this );
 FormLayout formLayout = new FormLayout();
 formLayout.marginWidth = 0;
 formLayout.marginHeight = 0;
 this.setLayout( formLayout );
 wText = new Text( this, textStyle );
 FormData fdText = new FormData();
 fdText.left = new FormAttachment( middle, margin );
 fdText.right = new FormAttachment( 100, 0 );
 wText.setLayoutData( fdText );
 wText.setToolTipText( toolTipText );
 wLabel = new Label( this, SWT.RIGHT );
 props.setLook( wLabel );
 wLabel.setText( labelText );
 FormData fdLabel = new FormData();
 fdLabel.left = new FormAttachment( 0, 0 );
 fdLabel.right = new FormAttachment( middle, 0 );
 fdLabel.top = new FormAttachment( wText, 0, SWT.CENTER );
 wLabel.setLayoutData( fdLabel );
 wLabel.setToolTipText( toolTipText );
}
origin: pentaho/pentaho-kettle

private void buildFieldsTab() {
 CTabItem wFieldsTab = new CTabItem( wTabFolder, SWT.NONE, 3 );
 wFieldsTab.setText( BaseMessages.getString( PKG, "MQTTConsumerDialog.FieldsTab" ) );
 Composite wFieldsComp = new Composite( wTabFolder, SWT.NONE );
 props.setLook( wFieldsComp );
 FormLayout fieldsLayout = new FormLayout();
 fieldsLayout.marginHeight = 15;
 fieldsLayout.marginWidth = 15;
 wFieldsComp.setLayout( fieldsLayout );
 FormData fieldsFormData = new FormData();
 fieldsFormData.left = new FormAttachment( 0, 0 );
 fieldsFormData.top = new FormAttachment( wFieldsComp, 0 );
 fieldsFormData.right = new FormAttachment( 100, 0 );
 fieldsFormData.bottom = new FormAttachment( 100, 0 );
 wFieldsComp.setLayoutData( fieldsFormData );
 buildFieldTable( wFieldsComp, wFieldsComp );
 wFieldsComp.layout();
 wFieldsTab.setControl( wFieldsComp );
}
origin: pentaho/pentaho-kettle

public void createControl( Composite parent ) {
 // create the composite to hold the widgets
 Composite composite = new Composite( parent, SWT.NONE );
 props.setLook( composite );
 FormLayout compLayout = new FormLayout();
 compLayout.marginHeight = Const.FORM_MARGIN;
 compLayout.marginWidth = Const.FORM_MARGIN;
 composite.setLayout( compLayout );
 MouseAdapter lsMouse = new MouseAdapter() {
  public void mouseDown( MouseEvent e ) {
   int s = getSize();
   // System.out.println("size = "+s);
   setPageComplete( s > 0 );
  }
 };
 wTable = new TableDraw( composite, props, this, fields );
 wTable.setRows( rows );
 props.setLook( wTable );
 wTable.setFields( fields );
 fdTable = new FormData();
 fdTable.left = new FormAttachment( 0, 0 );
 fdTable.right = new FormAttachment( 100, 0 );
 fdTable.top = new FormAttachment( 0, 0 );
 fdTable.bottom = new FormAttachment( 100, 0 );
 wTable.setLayoutData( fdTable );
 wTable.addMouseListener( lsMouse );
 // set the composite as the control for this page
 setControl( composite );
}
origin: pentaho/pentaho-kettle

props.setLook( composite );
FormLayout compLayout = new FormLayout();
compLayout.marginHeight = Const.FORM_MARGIN;
compLayout.marginWidth = Const.FORM_MARGIN;
composite.setLayout( compLayout );
wlTNS = new Label( composite, SWT.RIGHT );
wlTNS.setText( BaseMessages.getString( PKG, "CreateDatabaseWizardPageOCI.TNS.Label" ) );
props.setLook( wlTNS );
fdlTNS = new FormData();
fdlTNS.left = new FormAttachment( 0, 0 );
fdlTNS.right = new FormAttachment( middle, 0 );
wlTNS.setLayoutData( fdlTNS );
wTNS = new Text( composite, SWT.SINGLE | SWT.BORDER );
props.setLook( wTNS );
fdTNS = new FormData();
fdTNS.left = new FormAttachment( middle, margin );
fdTNS.right = new FormAttachment( 100, 0 );
wTNS.setLayoutData( fdTNS );
origin: pentaho/pentaho-kettle

private void buildProperiesTab() {
 CTabItem wPropertiesTab = new CTabItem( wTabFolder, SWT.NONE );
 wPropertiesTab.setText( BaseMessages.getString( PKG, "JmsProducerDialog.Properties.Tab" ) );
 Composite wPropertiesComp = new Composite( wTabFolder, SWT.NONE );
 props.setLook( wPropertiesComp );
 FormLayout fieldsLayout = new FormLayout();
 fieldsLayout.marginHeight = 15;
 fieldsLayout.marginWidth = 15;
 wPropertiesComp.setLayout( fieldsLayout );
 FormData propertiesFormData = new FormData();
 propertiesFormData.left = new FormAttachment( 0, 0 );
 propertiesFormData.top = new FormAttachment( wPropertiesComp, 0 );
 propertiesFormData.right = new FormAttachment( 100, 0 );
 propertiesFormData.bottom = new FormAttachment( 100, 0 );
 wPropertiesComp.setLayoutData( propertiesFormData );
 buildPropertiesTable( wPropertiesComp );
 wPropertiesComp.layout();
 wPropertiesTab.setControl( wPropertiesComp );
}
origin: pentaho/pentaho-kettle

public void createControl( Composite parent ) {
 // create the composite to hold the widgets
 Composite composite = new Composite( parent, SWT.NONE );
 props.setLook( composite );
 FormLayout compLayout = new FormLayout();
 compLayout.marginHeight = Const.FORM_MARGIN;
 compLayout.marginWidth = Const.FORM_MARGIN;
 composite.setLayout( compLayout );
 MouseAdapter lsMouse = new MouseAdapter() {
  public void mouseDown( MouseEvent e ) {
   int s = getSize();
   // System.out.println("size = "+s);
   setPageComplete( s > 0 );
  }
 };
 wTable = new TableDraw( composite, props, this, fields );
 wTable.setRows( rows );
 props.setLook( wTable );
 wTable.setFields( fields );
 fdTable = new FormData();
 fdTable.left = new FormAttachment( 0, 0 );
 fdTable.right = new FormAttachment( 100, 0 );
 fdTable.top = new FormAttachment( 0, 0 );
 fdTable.bottom = new FormAttachment( 100, 0 );
 wTable.setLayoutData( fdTable );
 wTable.addMouseListener( lsMouse );
 // set the composite as the control for this page
 setControl( composite );
}
origin: pentaho/pentaho-kettle

protected void runConfigurationSectionLayout( Class<?> PKG, String prefix ) {
 cRunConfiguration = new Composite( shell, SWT.NONE );
 cRunConfiguration.setLayout( new FormLayout() );
 props.setLook( cRunConfiguration );
 FormData fdLocal = new FormData();
 fdLocal.top = new FormAttachment( 0, 15 );
 fdLocal.right = new FormAttachment( 100, -15 );
 fdLocal.left = new FormAttachment( 0, 15 );
 cRunConfiguration.setBackground( shell.getBackground() ); // the default looks ugly
 cRunConfiguration.setLayoutData( fdLocal );
 Label wlRunConfiguration = new Label( cRunConfiguration, SWT.LEFT );
 props.setLook( wlRunConfiguration );
 wlRunConfiguration.setText( "Run configuration:" );
 FormData fdlRunConfiguration = new FormData();
 fdlRunConfiguration.top = new FormAttachment( 0 );
 fdlRunConfiguration.left = new FormAttachment( 0 );
 wlRunConfiguration.setLayoutData( fdlRunConfiguration );
 wRunConfiguration = new CCombo( cRunConfiguration, SWT.BORDER );
 props.setLook( wRunConfiguration );
 FormData fdRunConfiguration = new FormData();
 fdRunConfiguration.width = 200;
 fdRunConfiguration.top = new FormAttachment( wlRunConfiguration, 5 );
 fdRunConfiguration.left = new FormAttachment( 0 );
 wRunConfiguration.setLayoutData( fdRunConfiguration );
}
origin: pentaho/pentaho-kettle

Group layoutForm() {
 FormLayout setupLayout = new FormLayout();
 setupLayout.marginHeight = 15;
 setupLayout.marginWidth = 15;
 parentComponent.setLayout( setupLayout );
 wConnectionGroup = new Group( parentComponent, SWT.SHADOW_ETCHED_IN );
 wConnectionGroup.setText( getString( PKG, "JmsDialog.Connection" ) );
 FormLayout flConnection = new FormLayout();
 flConnection.marginHeight = 15;
 flConnection.marginWidth = 15;
 wConnectionGroup.setLayout( flConnection );
 FormData fdConnectionGroup = new FormData();
 fdConnectionGroup.left = new FormAttachment( 0, 0 );
 fdConnectionGroup.top = new FormAttachment( 0, 0 );
 fdConnectionGroup.right = new FormAttachment( 100, 0 );
 fdConnectionGroup.width = INPUT_WIDTH;
 wConnectionGroup.setLayoutData( fdConnectionGroup );
 props.setLook( wConnectionGroup );
 displayConnTypes( wConnectionGroup );
 setStartingsVals();
 return wConnectionGroup;
}
origin: pentaho/pentaho-kettle

public void createControl( Composite parent ) {
 // create the composite to hold the widgets
 Composite composite = new Composite( parent, SWT.NONE );
 props.setLook( composite );
 FormLayout compLayout = new FormLayout();
 compLayout.marginHeight = Const.FORM_MARGIN;
 compLayout.marginWidth = Const.FORM_MARGIN;
 composite.setLayout( compLayout );
 MouseAdapter lsMouse = new MouseAdapter() {
  public void mouseDown( MouseEvent e ) {
   int s = getSize();
   // System.out.println("size = "+s);
   setPageComplete( s > 0 );
  }
 };
 wTable = new FixedTableDraw( composite, props, this, fields );
 wTable.setRows( rows );
 props.setLook( wTable );
 wTable.setFields( fields );
 fdTable = new FormData();
 fdTable.left = new FormAttachment( 0, 0 );
 fdTable.right = new FormAttachment( 100, 0 );
 fdTable.top = new FormAttachment( 0, 0 );
 fdTable.bottom = new FormAttachment( 100, 0 );
 wTable.setLayoutData( fdTable );
 wTable.addMouseListener( lsMouse );
 // set the composite as the control for this page
 setControl( composite );
}
origin: pentaho/pentaho-kettle

props.setLook( composite );
FormLayout compLayout = new FormLayout();
compLayout.marginHeight = Const.FORM_MARGIN;
compLayout.marginWidth = Const.FORM_MARGIN;
wlDriverClass = new Label( composite, SWT.RIGHT );
wlDriverClass.setText( BaseMessages.getString( PKG, "CreateDatabaseWizardPageGeneric.DriverClass.Label" ) );
props.setLook( wlDriverClass );
fdlDriverClass = new FormData();
fdlDriverClass.top = new FormAttachment( wURL, margin );
fdlDriverClass.left = new FormAttachment( 0, 0 );
fdlDriverClass.right = new FormAttachment( middle, 0 );
wlDriverClass.setLayoutData( fdlDriverClass );
wDriverClass = new Text( composite, SWT.SINGLE | SWT.BORDER );
props.setLook( wDriverClass );
origin: pentaho/pentaho-kettle

public void buildFieldsTab() {
 checkArgument( wTabFolder.getItemCount() > 0 );
 CTabItem wFieldsTab = new CTabItem( wTabFolder, SWT.NONE, wTabFolder.getItemCount() - 1 );
 wFieldsTab.setText( BaseMessages.getString( PKG, "JmsConsumerDialog.FieldsTab" ) );
 Composite wFieldsComp = new Composite( wTabFolder, SWT.NONE );
 props.setLook( wFieldsComp );
 FormLayout fieldsLayout = new FormLayout();
 fieldsLayout.marginHeight = 15;
 fieldsLayout.marginWidth = 15;
 wFieldsComp.setLayout( fieldsLayout );
 FormData fieldsFormData = new FormData();
 fieldsFormData.left = new FormAttachment( 0, 0 );
 fieldsFormData.top = new FormAttachment( wFieldsComp, 0 );
 fieldsFormData.right = new FormAttachment( 100, 0 );
 fieldsFormData.bottom = new FormAttachment( 100, 0 );
 wFieldsComp.setLayoutData( fieldsFormData );
 buildFieldTable( wFieldsComp, wFieldsComp );
 wFieldsComp.layout();
 wFieldsTab.setControl( wFieldsComp );
}
origin: pentaho/pentaho-kettle

props.setLook( composite );
FormLayout compLayout = new FormLayout();
compLayout.marginHeight = Const.FORM_MARGIN;
compLayout.marginWidth = Const.FORM_MARGIN;
wlPassword = new Label( composite, SWT.RIGHT );
wlPassword.setText( BaseMessages.getString( PKG, "CreateDatabaseWizardPage2.Password.Label" ) );
props.setLook( wlPassword );
fdlPassword = new FormData();
wlPassword.setLayoutData( fdlPassword );
wPassword = new Text( composite, SWT.SINGLE | SWT.BORDER );
props.setLook( wPassword );
wTest = new Button( composite, SWT.PUSH );
wTest.setText( BaseMessages.getString( PKG, "CreateDatabaseWizardPage2.TestConnection.Button" ) );
origin: pentaho/pentaho-kettle

/**
 */
private void addGeneralTab() {
 wGeneralTab = new CTabItem( wTabFolder, SWT.NONE );
 wGeneralTab.setText( BaseMessages.getString( PKG, "ElasticSearchBulkDialog.General.Tab" ) );
 wGeneralComp = new Composite( wTabFolder, SWT.NONE );
 props.setLook( wGeneralComp );
 FormLayout generalLayout = new FormLayout();
 generalLayout.marginWidth = 3;
 generalLayout.marginHeight = 3;
 wGeneralComp.setLayout( generalLayout );
 // Index GROUP
 fillIndexGroup( wGeneralComp );
 // Options GROUP
 fillOptionsGroup( wGeneralComp );
 fdGeneralComp = new FormData();
 fdGeneralComp.left = new FormAttachment( 0, 0 );
 fdGeneralComp.top = new FormAttachment( wStepname, Const.MARGIN );
 fdGeneralComp.right = new FormAttachment( 100, 0 );
 fdGeneralComp.bottom = new FormAttachment( 100, 0 );
 wGeneralComp.setLayoutData( fdGeneralComp );
 wGeneralComp.layout();
 wGeneralTab.setControl( wGeneralComp );
}
org.eclipse.swt.layoutFormLayout<init>

Javadoc

Constructs a new instance of this class.

Popular methods of FormLayout

  • computeHeight
  • computeWidth
  • getName
  • layout

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • Menu (java.awt)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now