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

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

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

Text.getMessage介绍

[英]Returns the widget message. The message text is displayed as a hint for the user, indicating the purpose of the field.

Typically this is used in conjunction with SWT.SEARCH.
[中]返回小部件消息。消息文本将作为提示显示给用户,指示该字段的用途。
通常与SWT.SEARCH一起使用。

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.databinding

@Override
String doGetStringValue(Object source) {
  return ((Text) source).getMessage();
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07

private static void writeMessage( final Text text ) throws IOException {
 String newValue = text.getMessage();
 if( WidgetLCAUtil.hasChanged( text, PROP_MESSAGE, newValue, "" ) ) {
  JSWriter writer = JSWriter.getWriterFor( text );
  writer.callStatic( "org.eclipse.swt.TextUtil.setMessage",
            new Object[] { text, newValue } );
 }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

if (field.getMessage().length() == 0) {
  field.setMessage('<' + handlingType + '>');

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

if (field.getMessage().length() == 0) {
  field.setMessage('<' + handlingType + '>');

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

@Override
public void preserveValues( Text text ) {
 preserveProperty( text, PROP_TEXT, text.getText() );
 preserveProperty( text, PROP_SELECTION, text.getSelection() );
 preserveProperty( text, PROP_TEXT_LIMIT, getTextLimit( text ) );
 preserveProperty( text, PROP_EDITABLE, text.getEditable() );
 preserveProperty( text, PROP_ECHO_CHAR, getEchoChar( text ) );
 preserveProperty( text, PROP_MESSAGE, text.getMessage() );
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07

void preserveValues( final Text text ) {
 IWidgetAdapter adapter = WidgetUtil.getAdapter( text );
 ControlLCAUtil.preserveValues( text );
 TextLCAUtil.preserveValues( text );
 TextLCAUtil.preservePasswordMode( text );
 TextLCAUtil.preserveVerifyAndModifyListener( text );
 TextLCAUtil.preserveSelectionListener( text );
 WidgetLCAUtil.preserveCustomVariant( text );
 adapter.preserve( PROP_MESSAGE, text.getMessage() );
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

event.result = ((Text) control).getMessage();

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

@Override
public void renderChanges( Text text ) throws IOException {
 ControlLCAUtil.renderChanges( text );
 WidgetLCAUtil.renderCustomVariant( text );
 renderProperty( text, PROP_TEXT, text.getText(), "" );
 renderProperty( text, PROP_EDITABLE, text.getEditable(), true );
 renderSelection( text );
 renderProperty( text, PROP_TEXT_LIMIT, getTextLimit( text ), null );
 renderProperty( text, PROP_ECHO_CHAR, getEchoChar( text ), null );
 renderProperty( text, PROP_MESSAGE, text.getMessage(), "" );
 renderListenModifyVerify( text );
 renderListenDefaultSelection( text );
 renderClientListeners( text );
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

event.result = ((Text) control).getMessage();

相关文章

Text类方法