org.eclipse.swt.widgets.Text.getOrientation()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.eclipse.swt.widgets.Text.getOrientation()方法的一些代码示例,展示了Text.getOrientation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.getOrientation()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称:Text
方法名:getOrientation

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_RIGHTSWT.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);

相关文章

微信公众号

最新文章

更多

Text类方法