本文整理了Java中org.eclipse.swt.widgets.Text.setEchoChar()
方法的一些代码示例,展示了Text.setEchoChar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.setEchoChar()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Text
类名称:Text
方法名:setEchoChar
[英]Sets the echo character.
The echo character is the character that is displayed when the user enters text or the text is changed by the programmer. Setting the echo character to '\0' clears the echo character and redraws the original text. If for any reason the echo character is invalid, or if the platform does not allow modification of the echo character, the default echo character for the platform is used.
[中]设置回显字符。
回显字符是用户输入文本或程序员更改文本时显示的字符。将回显字符设置为“\0”将清除回显字符并重新绘制原始文本。如果由于任何原因,回显字符无效,或者如果平台不允许修改回显字符,则使用平台的默认回显字符。
代码示例来源:origin: pentaho/pentaho-kettle
public void setEchoChar( char c ) {
wText.setEchoChar( c );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setEchoChar( char c ) {
wText.setEchoChar( c );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void setEchoChar( char c ) {
wText.setEchoChar( c );
}
代码示例来源:origin: pentaho/pentaho-kettle
wPassword.setEchoChar( '*' );
} else {
String variableName = null;
wPassword.setEchoChar( '\0' ); // Show it all...
} else {
wPassword.setEchoChar( '*' );
代码示例来源:origin: pentaho/pentaho-kettle
wPassword = new Text( composite, SWT.SINGLE | SWT.BORDER );
props.setLook( wPassword );
wPassword.setEchoChar( '*' );
fdPassword = new FormData();
fdPassword.top = new FormAttachment( wUsername, margin );
代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.security.ui
protected void passwordVisibility() {
boolean selected = showPassword.getSelection();
if (selected) {
password.setEchoChar('\0');
if (confirm != null)
confirm.setEchoChar('\0');
} else {
password.setEchoChar('*');
if (confirm != null)
confirm.setEchoChar('*');
}
}
代码示例来源:origin: org.eclipse.equinox.security/ui
protected void passwordVisibility() {
boolean selected = showPassword.getSelection();
if (selected) {
password.setEchoChar('\0');
if (confirm != null)
confirm.setEchoChar('\0');
} else {
password.setEchoChar('*');
if (confirm != null)
confirm.setEchoChar('*');
}
}
代码示例来源:origin: org.apache.directory.studio/apacheds.configuration
public void widgetSelected( SelectionEvent e )
{
if ( showPasswordCheckbox.getSelection() )
{
passwordText.setEchoChar( '\0' );
}
else
{
passwordText.setEchoChar( '\u2022' );
}
}
} );
代码示例来源:origin: org.apache.directory.studio/apacheds.configuration
public void widgetSelected( SelectionEvent e )
{
if ( showPasswordCheckbox.getSelection() )
{
passwordText.setEchoChar( '\0' );
}
else
{
passwordText.setEchoChar( '\u2022' );
}
}
} );
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
password_.setEchoChar('*');
password_.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
password_.setToolTipText(ConsumptionUIMessages.TOOLTIP_HTTP_BASIC_AUTH_PASSWORD);
代码示例来源:origin: BiglySoftware/BiglyBT
this.encoding = encoding;
inputField = new Text(composite, SWT.BORDER);
inputField.setEchoChar('*');
byte[] value = COConfigurationManager.getByteParameter(configID, "".getBytes());
inputField.setMessage(value.length > 0 ? MessageText.getString("ConfigView.password.isset") : "");
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
fKeypassText.setEchoChar('*');
fPasswordText.setEchoChar('*');
代码示例来源:origin: org.eclipse.mylyn.builds/ui
PasswordParameterDefinition def = (PasswordParameterDefinition) definition;
Text control = new Text(pane, SWT.BORDER);
control.setEchoChar('*');
control.setText(toValue(def.getDefaultValue()));
return control;
代码示例来源:origin: org.apache.directory.studio/apacheds.configuration
passwordText = toolkit.createText( client, "" ); //$NON-NLS-1$
passwordText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
passwordText.setEchoChar( '\u2022' );
代码示例来源:origin: BiglySoftware/BiglyBT
password.setEchoChar('*');
gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.horizontalSpan = 2;
代码示例来源:origin: io.sarl/io.sarl.eclipse
this.trackerPassword.setEchoChar(ECHO_CHAR);
代码示例来源:origin: org.eclipse/org.eclipse.datatools.enablement.sybase
JDBCProfileMessages.getString("JDBCPropertyWizardPage.password.label"), //$NON-NLS-1$,
this.mDBPWDText, SWT.BORDER, GridData.FILL_HORIZONTAL);
this.mDBPWDText.setEchoChar('*');
this.mDBPWDText.addModifyListener( new ModifyListener() {
代码示例来源:origin: org.apache.directory.studio/apacheds.configuration
passwordText = toolkit.createText( client, "" ); //$NON-NLS-1$
passwordText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
passwordText.setEchoChar( '\u2022' );
代码示例来源:origin: org.codehaus.openxma/xmartserver
control = new Text(shell,SWT.BORDER);
if(!call.isEchoOn()) {
((Text)control).setEchoChar('*');
代码示例来源:origin: org.codehaus.openxma/xmartclient
control = new Text(shell,SWT.BORDER);
if(!call.isEchoOn()) {
((Text)control).setEchoChar('*');
内容来源于网络,如有侵权,请联系作者删除!