本文整理了Java中org.eclipse.swt.widgets.Text.getMessage()
方法的一些代码示例,展示了Text.getMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.getMessage()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!