org.eclipse.ui.forms.widgets.ColumnLayout Java Examples
The following examples show how to use
org.eclipse.ui.forms.widgets.ColumnLayout.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UIUtil.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * Returns the height hint for the given control. * * @param hHint * the width hint * @param c * the control * * @return the height hint */ public static int getHeightHint( int hHint, Control c ) { if ( c instanceof Composite ) { Layout layout = ( (Composite) c ).getLayout( ); if ( layout instanceof ColumnLayout ) return hHint; } return SWT.DEFAULT; }
Example #2
Source File: StickerComposite.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
public StickerComposite(Composite parent, int style, FormToolkit toolkit){ super(parent, style); setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 1)); ColumnLayout cwl = new ColumnLayout(); cwl.maxNumColumns = 4; cwl.horizontalSpacing = 1; cwl.bottomMargin = 10; cwl.topMargin = 0; cwl.rightMargin = 1; cwl.leftMargin = 1; setLayout(cwl); setBackground(parent.getBackground()); this.toolkit = toolkit; this.setVisible(false); }
Example #3
Source File: LabeledInputField.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
public Tableau(Composite parent, int minColumns, int maxColumns){ super(parent, SWT.BORDER); ColumnLayout cl = new ColumnLayout(); cl.maxNumColumns = maxColumns; cl.minNumColumns = minColumns; setLayout(cl); }