grpValues = new Group(dataComposite, SWT.NONE); grpValues.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 4, 1)); grpValues.setText(RedisClient.i18nFile.getText(I18nFile.VALUES)); grpValues.setLayout(new GridLayout(4, false)); table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 4)); table.addSelectionListener(new SelectionAdapter() { @Override tblclmnNewColumn.setWidth(200); Button btnAdd = new Button(grpValues, SWT.NONE); btnAdd.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1)); btnAdd.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Group grpOrderToAdd = new Group(dataComposite, SWT.NONE); grpOrderToAdd.setLayout(new GridLayout(2, false)); grpOrderToAdd.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 4, 1)); grpWhenListNot = new Group(dataComposite, SWT.NONE); grpWhenListNot.setLayout(new GridLayout(2, true)); grpWhenListNot.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 4, 1));
wlStepname = new Label( shell, SWT.RIGHT ); wlStepname.setText( BaseMessages.getString( PKG, "CombinationLookupDialog.Stepname.Label" ) ); props.setLook( wlStepname ); wbSchema = new Button( shell, SWT.PUSH | SWT.CENTER ); props.setLook( wbSchema ); wbSchema.setText( BaseMessages.getString( PKG, "System.Button.Browse" ) ); fdbSchema = new FormData(); fdbSchema.top = new FormAttachment( wConnection, margin ); fdbSchema.right = new FormAttachment( 100, 0 ); wbSchema.setLayoutData( fdbSchema ); gTechGroup = new Group( shell, SWT.SHADOW_ETCHED_IN ); gTechGroup.setText( BaseMessages.getString( PKG, "CombinationLookupDialog.TechGroup.Label" ) ); GridLayout gridLayout = new GridLayout( 3, false ); gTechGroup.setLayout( gridLayout ); fdTechGroup = new FormData(); fdTechGroup.left = new FormAttachment( middle, 0 ); GridData gdTableMax = new GridData(); GridData gdlTableMax = new GridData( GridData.FILL_BOTH ); gdlTableMax.horizontalSpan = 2; gdlTableMax.verticalSpan = 1; GridData gdSeqButton = new GridData();
changed = input.hasChanged(); GridLayout shellLayout = new GridLayout(); shellLayout.numColumns = 1; shell.setLayout( shellLayout ); margin = Const.MARGIN; Composite sCompParent = new Composite( shell, SWT.NONE ); sCompParent.setLayout( new FillLayout( SWT.VERTICAL ) ); GridData sCompGridData = new GridData( GridData.FILL_BOTH ); sCompGridData.grabExcessHorizontalSpace = true; sCompGridData.grabExcessVerticalSpace = true; sCompParent.setLayoutData( sCompGridData ); GridData helpCompData = new GridData(); helpCompData.grabExcessHorizontalSpace = true; helpCompData.grabExcessVerticalSpace = false; wlStepname = new Label( comp, SWT.RIGHT ); wlStepname.setText( BaseMessages.getString( PKG, "System.Label.StepName" ) ); props.setLook( wlStepname ); fdlStepname = new FormData();
@Override protected void initData(Composite dataComposite) { label = new Label(dataComposite, SWT.NONE); label.setText(RedisClient.i18nFile.getText(I18nFile.VALUE)); label.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true, 1, 1)); final Text text_value = new Text(dataComposite, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI); text_value.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1)); text_value.setText(value); text_value.selectAll(); text_value.setFocus(); new Label(dataComposite, SWT.NONE); Composite composite = new Composite(dataComposite, SWT.NONE); composite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1)); composite.setLayout(new GridLayout(4, false)); btnOk = new Button(composite, SWT.NONE); btnOk.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); btnOk.setText(RedisClient.i18nFile.getText(I18nFile.APPLY)); setApply(false);
shell.setText(getTitle()); shell.setLayout(new GridLayout(1, false)); tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); Composite composite = new Composite(tabFolder, SWT.NONE); tbtmServerInformation.setControl(composite); composite.setLayout(new GridLayout(2, false)); Label lblName = new Label(composite, SWT.NONE); lblName.setText(RedisClient.i18nFile.getText(I18nFile.NAME)); Label lblHost = new Label(composite, SWT.NONE); lblHost.setText(RedisClient.i18nFile.getText(I18nFile.HOST)); text_4 = new Text(composite, SWT.BORDER); text_4.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); Label lblPort = new Label(composite, SWT.NONE); text_6.selectAll(); btnOk.setText(RedisClient.i18nFile.getText(I18nFile.OK)); Button btnCancel = new Button(composite_1, SWT.NONE);
shell.setText(RedisClient.i18nFile.getText(I18nFile.FIND)); shell.setLayout(new GridLayout(1, false)); tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); Composite composite = new Composite(tabFolder, SWT.NONE); tbtmFind.setControl(composite); composite.setLayout(new GridLayout(6, true)); Label lblFind = new Label(composite, SWT.NONE); lblFind.setText(RedisClient.i18nFile.getText(I18nFile.FINDDATA)); pattern.setFocus(); Group grpFindDirection = new Group(composite, SWT.NONE); grpFindDirection.setLayout(new GridLayout(1, false)); grpFindDirection.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 3, 1)); grpFindDirection.setText(RedisClient.i18nFile.getText(I18nFile.FINDDIRECTION)); Group grpKeyType = new Group(composite, SWT.NONE); grpKeyType.setLayout(new GridLayout(1, false)); grpKeyType.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 3, 1)); grpKeyType.setText(RedisClient.i18nFile.getText(I18nFile.KEYTYPE)); Composite composite1 = new Composite(shell, SWT.NONE); composite1.setLayout(new FillLayout(SWT.HORIZONTAL)); composite1.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
shell.setText(RedisClient.i18nFile.getText(I18nFile.RENAME)); shell.setLayout(new GridLayout(1, false)); tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); tabFolder.setSize(290, 122); tbtmString.setText(RedisClient.i18nFile.getText(I18nFile.KEY)); Composite composite = new Composite(tabFolder, SWT.NONE); tbtmString.setControl(composite); composite.setLayout(new GridLayout(4, true)); Label lblKey = new Label(composite, SWT.NONE); lblKey.setText(RedisClient.i18nFile.getText(I18nFile.SERVER)); Label label_1 = new Label(composite, SWT.NONE); label_1.setText(server); lblNewKey.setText(RedisClient.i18nFile.getText(I18nFile.NEWKEY)); btnCheckButton1.setVisible(true); Composite composite_1 = new Composite(shell, SWT.NONE); composite_1.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1)); composite_1.setLayout(new FillLayout(SWT.HORIZONTAL));
gformLayout.marginWidth = 10; gformLayout.marginHeight = 10; runConfigurationDialog.getGroup().setLayout( gformLayout ); Composite wTarget = new Composite( runConfigurationDialog.getGroup(), SWT.NONE ); wTarget.setLayout( new FormLayout() ); props.setLook( wTarget ); fdTarget.left = new FormAttachment( 0 ); fdTarget.top = new FormAttachment( 0 ); wTarget.setLayoutData( fdTarget ); Label vSpacer = new Label( runConfigurationDialog.getGroup(), SWT.VERTICAL | SWT.SEPARATOR ); FormData fdvSpacer = new FormData(); fdvSpacer.width = 1; fdvSpacer.top = new FormAttachment( 0, 0 ); fdvSpacer.bottom = new FormAttachment( 100, 0 ); vSpacer.setLayoutData( fdvSpacer ); wcLocal.setLayout( new GridLayout() ); wcPentaho.setLayout( new GridLayout() ); GridData gdlPentaho = new GridData( GridData.FILL_HORIZONTAL ); Label wlRemote = new Label( wcRemote, SWT.LEFT );
this.setText(RedisClient.i18nFile.getText(I18nFile.TTL)); composite = new Composite(parent, SWT.NONE); this.setControl(composite); composite.setLayout(new GridLayout(2, false)); btnExpire = new Button(composite, SWT.CHECK); btnExpire.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1)); btnExpire.setText(RedisClient.i18nFile.getText(I18nFile.EXPIRE)); labelTTL = new Label(composite, SWT.NONE); labelTTL.setEnabled(false); labelTTL.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); labelTTL.setText(RedisClient.i18nFile.getText(I18nFile.TTLS)); ttl = new Text(composite, SWT.BORDER); ttl.setEnabled(false); ttl.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); btnExpire.addSelectionListener(new SelectionAdapter() {
composite_3 = new Composite(tabFolder, SWT.NONE); tbtmNewItem.setControl(composite_3); composite_3.setLayout(new GridLayout(1, false)); tbtmNewItem.setText(server.getName() +" "+RedisClient.i18nFile.getText(I18nFile.SUBSCRIBE)); tbtmNewItem.setImage(subImage); Composite composite_4 = new Composite(composite_3, SWT.NONE); composite_4.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); composite_4.setLayout(new GridLayout(3, false)); lblNewLabel = new Label(composite_4, SWT.NONE); lblNewLabel.setBounds(0, 0, 55, 15); lblNewLabel.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL)); final Text channel = new Text(composite_4, SWT.BORDER); channel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); channel.setBounds(0, 0, 88, 23); channel.addControlListener(new ControlAdapter() { @Override btnNewButton = new Button(composite_4, SWT.NONE); btnNewButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); btnNewButton.setBounds(0, 0, 75, 25); btnNewButton.setText(RedisClient.i18nFile.getText(I18nFile.SUBSCRIBE)); Composite composite_5 = new Composite(composite_3, SWT.NONE); composite_5.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); composite_5.setLayout(new GridLayout(1, false));
private void initNamespace(TabFolder tabFolder) { TabItem tbtmNamespace = new TabItem(tabFolder, SWT.NONE); tbtmNamespace.setText(RedisClient.i18nFile.getText(I18nFile.NAMESPACE)); Composite composite = new Composite(tabFolder, SWT.NONE); tbtmNamespace.setControl(composite); composite.setLayout(new GridLayout(2, false)); Label lblSeparator = new Label(composite, SWT.NONE); lblSeparator.setText(RedisClient.i18nFile.getText(I18nFile.SEPARATOR)); separator = new Text(composite, SWT.BORDER); separator.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); separator.setText(ConfigFile.getSeparator()); separator.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { separator.setData(true); } }); separator.setData(false); }
@Override protected void createContents() { shell.setText(RedisClient.i18nFile.getText(I18nFile.DATAWATCHER)); shell.setLayout(new GridLayout(1, false)); Composite composite = new Composite(shell, SWT.NONE); composite.setLayout(new GridLayout(1, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); Group grpValueType = new Group(composite, SWT.NONE); grpValueType.setLayout(new GridLayout(2, false)); grpValueType.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); grpValueType.setText(RedisClient.i18nFile.getText(I18nFile.DATATYPE)); final Group grpValue = new Group(composite, SWT.NONE); grpValue.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); grpValue.setText(RedisClient.i18nFile.getText(I18nFile.DATA)); grpValue.setBounds(0, 0, 70, 81); grpValue.setLayout(new GridLayout(1, false)); text = new Text(grpValue, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI); text.setEditable(false); text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); text.setText(value);
Label wIcon = new Label( shell, SWT.NONE ); props.setLook( wIcon ); wIcon.setImage( image ); FormData fdIcon = new FormData(); fdIcon.left = new FormAttachment( 0, 0 ); fdIcon.right = new FormAttachment( 0, image.getBounds().width ); fdIcon.bottom = new FormAttachment( 0, image.getBounds().height ); wIcon.setLayoutData( fdIcon ); Composite wcMessage = new Composite( shell, SWT.NONE ); props.setLook( wcMessage ); wcMessage.setLayout( new GridLayout() ); fdcMessage.top = new FormAttachment( 0 ); fdcMessage.right = new FormAttachment( 100 ); wcMessage.setLayoutData( fdcMessage ); Button wbNo = new Button( shell, SWT.PUSH ); wbNo.setText( BaseMessages.getString( PKG, "System.Button.No" ) ); wbNo.addSelectionListener( new SelectionAdapter() { @Override public void widgetSelected( SelectionEvent selectionEvent ) { quit( SWT.NO );
shell.setLayout(new GridLayout(2, false)); Label lblNewLabel_1 = new Label(shell, SWT.NONE); lblNewLabel_1.setImage(questionImage); Label lblNewLabel = new Label(shell, SWT.NONE); lblNewLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1)); if(containerNo == -1) lblNewLabel.setText(RedisClient.i18nFile.getText(I18nFile.DELETECONTAINERS)); btnDeleteSubcontainerUnder = new Button(shell, SWT.CHECK); btnDeleteSubcontainerUnder.setSelection(true); btnDeleteSubcontainerUnder.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1)); btnDeleteSubcontainerUnder.setText(RedisClient.i18nFile.getText(I18nFile.DELETESUBCONTAINER)); }else btnDeleteSubcontainerUnder = null; Composite composite_1 = new Composite(shell, SWT.NONE); composite_1.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 2, 1)); composite_1.setLayout(new FillLayout(SWT.HORIZONTAL)); Button button = new Button(composite_1, SWT.NONE);
public void widgetSelected( SelectionEvent e ) { final Shell dialog = new Shell( shell, SWT.DIALOG_TRIM ); dialog.setText( BaseMessages.getString( PKG, "JobGetPOP.SelectDate" ) ); dialog.setImage( GUIResource.getInstance().getImageSpoon() ); dialog.setLayout( new GridLayout( 3, false ) ); final DateTime calendar = new DateTime( dialog, SWT.CALENDAR ); final DateTime time = new DateTime( dialog, SWT.TIME | SWT.TIME ); new Label( dialog, SWT.NONE ); new Label( dialog, SWT.NONE ); Button ok = new Button( dialog, SWT.PUSH ); ok.setText( BaseMessages.getString( PKG, "System.Button.OK" ) ); ok.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, false, false ) ); ok.addSelectionListener( new SelectionAdapter() { public void widgetSelected( SelectionEvent e ) { Calendar cal = Calendar.getInstance(); cal.set( Calendar.YEAR, calendar.getYear() ); cal.set( Calendar.MONTH, calendar.getMonth() ); cal.set( Calendar.DAY_OF_MONTH, calendar.getDay() ); cal.set( Calendar.HOUR_OF_DAY, time.getHours() ); cal.set( Calendar.MINUTE, time.getMinutes() ); cal.set( Calendar.SECOND, time.getSeconds() ); wReadFrom.setText( new SimpleDateFormat( JobEntryGetPOP.DATE_PATTERN ).format( cal.getTime() ) ); dialog.close(); } } ); dialog.setDefaultButton( ok ); dialog.pack(); dialog.open(); } } );
shell.setLayout(new GridLayout(1, false)); Composite composite = new Composite(shell, SWT.NONE); composite.setLayout(new GridLayout(1, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); Label lblNewLabel = new Label(composite, SWT.WRAP); lblNewLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); lblNewLabel.setText(RedisClient.i18nFile.getText(I18nFile.DONATIONMESSAGE)); Label label = new Label(composite, SWT.NONE); label.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1)); label.setAlignment(SWT.CENTER); label.setImage(code); composite_1.setLayout(new FillLayout(SWT.HORIZONTAL)); Button btnOk = new Button(composite_1, SWT.NONE); btnOk.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent arg0) { btnOk.setText(RedisClient.i18nFile.getText(I18nFile.OK));
@Override protected Control createCustomArea(Composite parent) { Composite comp = new Composite(parent, SWT.NONE); comp.setLayout(new GridLayout()); comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); fText = new Text(parent, SWT.BORDER); fText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); return comp; }
private Group createGroup(Composite result, String caption) { Group group= new Group(result, SWT.None); group.setLayout(new GridLayout(2, false)); group.setText(caption); GridData gridData= new GridData(GridData.FILL_BOTH); gridData.horizontalSpan= 2; group.setLayoutData(gridData); return group; }
Button closeButton = new Button( shell, SWT.PUSH ); closeButton.setText( BaseMessages.getString( getClass(), "System.Button.Close" ) ); closeButton.addListener( SWT.Selection, new Listener() { public void handleEvent( Event e ) { shell.dispose(); treeFormData.top = new FormAttachment( 0, 0 ); treeFormData.right = new FormAttachment( 100, 0 ); Label label = new Label( shell, SWT.NONE ); label.setText( "Capabilities:" ); label.setLayoutData( treeFormData ); Composite mainPanel = new Composite( scrollpane, SWT.NONE ); scrollpane.setContent( mainPanel ); scrollpane.setSize( 250, 400 ); mainPanel.setLayout( new GridLayout( 1, false ) ); final Button button = new Button( mainPanel, SWT.CHECK ); button.setLayoutData( new GridData( GridData.FILL_BOTH, SWT.BEGINNING, false, false ) ); button.setSelection( capability.isInstalled() ); button.setText( capability.getId() ); mainPanel.setSize( mainPanel.computeSize( SWT.DEFAULT, SWT.DEFAULT ) ); scrollpane.setMinSize( mainPanel.computeSize( SWT.DEFAULT, SWT.DEFAULT ) ); BaseStepDialog.setSize( shell, 250, 400, false );
Composite top = new Composite( shell, SWT.NONE ); FormLayout topLayout = new FormLayout(); topLayout.marginHeight = margin; topLayout.marginWidth = margin; top.setLayout( topLayout ); fdTop.right = new FormAttachment( 100, 0 ); fdTop.bottom = new FormAttachment( 100, -50 ); top.setLayoutData( fdTop ); props.setLook( top ); GridLayout gridLayout = new GridLayout( 1, false ); wAddOne = new Button( gButtonGroup, SWT.PUSH ); wAddOne.setText( " > " ); wAddOne.setToolTipText( BaseMessages.getString( PKG, "EnterListDialog.AddOne.Tooltip" ) ); GridData gdAddOne = new GridData( GridData.FILL_BOTH ); GridData gdAddAll = new GridData( GridData.FILL_BOTH ); GridData gdRemoveAll = new GridData( GridData.FILL_BOTH );