本文整理了Java中org.eclipse.swt.widgets.Button.setOrientation()
方法的一些代码示例,展示了Button.setOrientation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setOrientation()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:setOrientation
暂无
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
private Button createDropdownButton(final Composite parent, int id, String label, MouseListener mouseListener) {
char textEmbedding = parent.getOrientation() == SWT.LEFT_TO_RIGHT ? '\u202a' : '\u202b';
Button button = createButton(parent, id, textEmbedding + label + '\u202c', false);
if (Util.isMac()) {
// Button#setOrientation(int) is a no-op on the Mac. Use a Unicode BLACK DOWN-POINTING SMALL TRIANGLE.
button.setText(button.getText() + " \u25BE"); //$NON-NLS-1$
} else {
int dropDownOrientation = parent.getOrientation() == SWT.LEFT_TO_RIGHT ? SWT.RIGHT_TO_LEFT : SWT.LEFT_TO_RIGHT;
button.setOrientation(dropDownOrientation);
button.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_LCL_BUTTON_MENU));
button.addMouseListener(mouseListener);
}
return button;
}
代码示例来源:origin: pentaho/big-data-plugin
wIgnoreEmptyFolder.setText( BaseMessages.getString( PKG, "ParquetInputDialog.IgnoreEmptyFolder.Label" ) );
wIgnoreEmptyFolder.setToolTipText( BaseMessages.getString( PKG, "ParquetInputDialog.IgnoreEmptyFolder.Tooltip" ) );
wIgnoreEmptyFolder.setOrientation( SWT.LEFT_TO_RIGHT );
props.setLook( wIgnoreEmptyFolder );
new FD( wIgnoreEmptyFolder ).left( 0, 0 ).top( prev, MARGIN ).apply();
wPassThruFields.setText( BaseMessages.getString( PKG, "ParquetInputDialog.PassThruFields.Label" ) );
wPassThruFields.setToolTipText( BaseMessages.getString( PKG, "ParquetInputDialog.PassThruFields.Tooltip" ) );
wPassThruFields.setOrientation( SWT.LEFT_TO_RIGHT );
props.setLook( wPassThruFields );
new FD( wPassThruFields ).left( 0, MARGIN ).top( 0, MARGIN ).apply();
代码示例来源:origin: pentaho/big-data-plugin
wPassThruFields.setText( BaseMessages.getString( PKG, "AvroInputDialog.PassThruFields.Label" ) );
wPassThruFields.setToolTipText( BaseMessages.getString( PKG, "AvroInputDialog.PassThruFields.Tooltip" ) );
wPassThruFields.setOrientation( SWT.LEFT_TO_RIGHT );
props.setLook( wPassThruFields );
new FD( wPassThruFields ).left( 0, 0 ).top( wInputFields, 10 ).apply();
wAllowNullValues.setOrientation( SWT.LEFT_TO_RIGHT );
props.setLook( wAllowNullValues );
new FD( wAllowNullValues ).left( 0, 0 ).top( wPassThruFields, 5 ).apply();
代码示例来源:origin: pentaho/big-data-plugin
wPassThruFields.setText( BaseMessages.getString( PKG, "OrcInputDialog.PassThruFields.Label" ) );
wPassThruFields.setToolTipText( BaseMessages.getString( PKG, "OrcInputDialog.PassThruFields.Tooltip" ) );
wPassThruFields.setOrientation( SWT.LEFT_TO_RIGHT );
props.setLook( wPassThruFields );
new FD( wPassThruFields ).left( 0, MARGIN ).top( 0, MARGIN ).apply();
内容来源于网络,如有侵权,请联系作者删除!