Search in sources :

Example 16 with UtilsButton

use of org.talend.commons.ui.swt.formtools.UtilsButton in project tbd-studio-se by Talend.

the class KnoxInfoForm method addCheckFields.

private void addCheckFields() {
    Composite checkGroup = new Composite(this, SWT.NONE);
    GridLayout checkGridLayout = new GridLayout(1, false);
    checkGroup.setLayout(checkGridLayout);
    GridData checkGridData = new GridData(GridData.FILL_HORIZONTAL);
    checkGridData.minimumHeight = 5;
    checkGroup.setLayoutData(checkGridData);
    Composite checkButtonComposite = Form.startNewGridLayout(checkGroup, 1, false, SWT.CENTER, SWT.BOTTOM);
    GridLayout checkButtonLayout = (GridLayout) checkButtonComposite.getLayout();
    checkButtonLayout.marginHeight = 0;
    checkButtonLayout.marginWidth = 0;
    // $NON-NLS-1$
    checkServicesBtn = new UtilsButton(checkButtonComposite, Messages.getString("HadoopClusterForm.button.check"), true);
    checkServicesBtn.setEnabled(false);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) UtilsButton(org.talend.commons.ui.swt.formtools.UtilsButton)

Example 17 with UtilsButton

use of org.talend.commons.ui.swt.formtools.UtilsButton in project tbd-studio-se by Talend.

the class StandardHCInfoForm method addCheckFields.

private void addCheckFields() {
    Composite checkGroup = new Composite(this, SWT.NONE);
    GridLayout checkGridLayout = new GridLayout(1, false);
    checkGroup.setLayout(checkGridLayout);
    GridData checkGridData = new GridData(GridData.FILL_HORIZONTAL);
    checkGridData.minimumHeight = 5;
    checkGroup.setLayoutData(checkGridData);
    Composite checkButtonComposite = Form.startNewGridLayout(checkGroup, 1, false, SWT.CENTER, SWT.BOTTOM);
    GridLayout checkButtonLayout = (GridLayout) checkButtonComposite.getLayout();
    checkButtonLayout.marginHeight = 0;
    checkButtonLayout.marginWidth = 0;
    // $NON-NLS-1$
    checkServicesBtn = new UtilsButton(checkButtonComposite, Messages.getString("HadoopClusterForm.button.check"), true);
    checkServicesBtn.setEnabled(false);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) GridData(org.eclipse.swt.layout.GridData) UtilsButton(org.talend.commons.ui.swt.formtools.UtilsButton)

Aggregations

UtilsButton (org.talend.commons.ui.swt.formtools.UtilsButton)17 GridData (org.eclipse.swt.layout.GridData)12 Composite (org.eclipse.swt.widgets.Composite)12 GC (org.eclipse.swt.graphics.GC)9 Point (org.eclipse.swt.graphics.Point)9 ScrolledComposite (org.eclipse.swt.custom.ScrolledComposite)8 GridLayout (org.eclipse.swt.layout.GridLayout)8 Group (org.eclipse.swt.widgets.Group)7 LabelledText (org.talend.commons.ui.swt.formtools.LabelledText)4 SashForm (org.eclipse.swt.custom.SashForm)3 FillLayout (org.eclipse.swt.layout.FillLayout)3 TableColumn (org.eclipse.swt.widgets.TableColumn)3 TableViewerCreator (org.talend.commons.ui.swt.tableviewer.TableViewerCreator)3 MetadataEmfTableEditor (org.talend.core.ui.metadata.editor.MetadataEmfTableEditor)3 Label (org.eclipse.swt.widgets.Label)2 MetadataEmfTableEditorView (org.talend.core.ui.metadata.editor.MetadataEmfTableEditorView)2 FocusEvent (org.eclipse.swt.events.FocusEvent)1 FocusListener (org.eclipse.swt.events.FocusListener)1 ModifyEvent (org.eclipse.swt.events.ModifyEvent)1 ModifyListener (org.eclipse.swt.events.ModifyListener)1