本文整理了Java中org.eclipse.swt.widgets.Text.getOrientation()
方法的一些代码示例,展示了Text.getOrientation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.getOrientation()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称:Text
方法名:getOrientation
[英]Returns the orientation of the receiver, which will be one of the constants SWT.LEFT_TO_RIGHT
or SWT.RIGHT_TO_LEFT
.
[中]返回接收器的方向,它将是常量SWT.LEFT_TO_RIGHT
或SWT.RIGHT_TO_LEFT
之一。
代码示例来源:origin: org.eclipse/org.eclipse.help.ui
private void createPathSection(Composite parent) {
pathLabel = new Label(parent, SWT.NONE);
pathLabel.setText(Messages.HelpContentPreferencePage_path);
pathText = new Text(parent, SWT.BORDER);
pathText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
if (pathText.getOrientation() == SWT.RIGHT_TO_LEFT)
pathText.setOrientation(SWT.LEFT_TO_RIGHT);
pathText.addListener(SWT.Modify, changeListener);
}
代码示例来源:origin: org.eclipse/org.eclipse.help.ui
private void createHostSection(Composite parent) {
hostLabel = new Label(parent, SWT.NONE);
hostLabel.setText(Messages.HelpContentPreferencePage_host);
hostText = new Text(parent, SWT.BORDER);
hostText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
if (hostText.getOrientation() == SWT.RIGHT_TO_LEFT)
hostText.setOrientation(SWT.LEFT_TO_RIGHT);
hostText.addListener(SWT.Modify, changeListener);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
char [] newChars = new char [length + 1];
int charCount = 0, segmentCount = 0;
char defaultSeparator = getOrientation () == SWT.RIGHT_TO_LEFT ? RTL_MARK : LTR_MARK;
while (charCount < length) {
if (segmentCount < nSegments && charCount - segmentCount == segments [segmentCount]) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
char [] separator = { getOrientation () == SWT.RIGHT_TO_LEFT ? RTL_MARK : LTR_MARK };
if ((style & SWT.SINGLE) != 0) {
OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
char [] separator = { getOrientation () == SWT.RIGHT_TO_LEFT ? RTL_MARK : LTR_MARK };
if ((style & SWT.SINGLE) != 0) {
OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
char [] separator = { getOrientation () == SWT.RIGHT_TO_LEFT ? RTL_MARK : LTR_MARK };
if ((style & SWT.SINGLE) != 0) {
OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
内容来源于网络,如有侵权,请联系作者删除!