本文整理汇总了Java中org.eclipse.swt.layout.GridData.VERTICAL_ALIGN_FILL属性的典型用法代码示例。如果您正苦于以下问题:Java GridData.VERTICAL_ALIGN_FILL属性的具体用法?Java GridData.VERTICAL_ALIGN_FILL怎么用?Java GridData.VERTICAL_ALIGN_FILL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.swt.layout.GridData
的用法示例。
在下文中一共展示了GridData.VERTICAL_ALIGN_FILL属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createPageControl
/**
* Creates custom control for user-defined query text.
*/
private Control createPageControl( Composite parent )
{
Composite composite = new Composite( parent, SWT.NONE );
composite.setLayout( new GridLayout( 1, false ) );
GridData gridData = new GridData( GridData.HORIZONTAL_ALIGN_FILL
| GridData.VERTICAL_ALIGN_FILL );
composite.setLayoutData( gridData );
Label fieldLabel = new Label( composite, SWT.NONE );
fieldLabel.setText( "&Query Text:" );
m_queryTextField = new Text( composite, SWT.BORDER
| SWT.V_SCROLL | SWT.H_SCROLL );
GridData data = new GridData( GridData.FILL_HORIZONTAL );
data.heightHint = 100;
m_queryTextField.setLayoutData( data );
m_queryTextField.addModifyListener( new ModifyListener( )
{
public void modifyText( ModifyEvent e )
{
validateData();
}
} );
setPageComplete( false );
return composite;
}
示例2: DoubleBufferedLabel
public DoubleBufferedLabel(
Composite parent,
int style )
{
super( parent, style | SWT.DOUBLE_BUFFERED );
// only support GridLayout I'm afraid...
GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_CENTER | GridData.VERTICAL_ALIGN_FILL);
setLayoutData(gridData);
addPaintListener(this);
}
示例3: expandVertical
public void expandVertical() {
gdstyle |= GridData.VERTICAL_ALIGN_FILL;
gdstyle |= GridData.GRAB_VERTICAL;
}