类org.eclipse.ui.forms.widgets.ColumnLayout源码实例Demo

下面列出了怎么用org.eclipse.ui.forms.widgets.ColumnLayout的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: birt   文件: UIUtil.java
/**
 * 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;
}
 
源代码2 项目: elexis-3-core   文件: StickerComposite.java
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);
}
 
源代码3 项目: elexis-3-core   文件: LabeledInputField.java
public Tableau(Composite parent, int minColumns, int maxColumns){
	super(parent, SWT.BORDER);
	ColumnLayout cl = new ColumnLayout();
	cl.maxNumColumns = maxColumns;
	cl.minNumColumns = minColumns;
	setLayout(cl);
}
 
 类所在包
 同包方法