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 );
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 );
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; }
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() );
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 );
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 ); }
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 ); }
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 ); }
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 ); }
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 ); }
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 );
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 ); }
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 ); }
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 ); }
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; }
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 ); }
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 );
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 ); }
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" ) );
/** */ 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 ); }