if (this.editField != null && text != this.text ) { Object bbLock = UiApplication.getEventLock(); synchronized (bbLock) { this.editField.setText(text);
if (this.editField != null && text != this.text ) { Object bbLock = UiApplication.getEventLock(); synchronized (bbLock) { this.editField.setText(text); }
	public void setString( String text)	{		//#debug		System.out.println("TextField.setString( " + text + " )");		//#if !(tmp.forceDirectInput || polish.blackberry)			if (this.midpTextBox != null) {				this.midpTextBox.setString( text );			}		//#endif		//#if polish.blackberry		if (this.editField != null && text != this.text ) {			Object bbLock = UiApplication.getEventLock();			synchronized (bbLock) {				this.editField.setText(text);			}		}		//#endif		if (this.isPassword) {			this.passwordText = text;			if (text != null) {				int length = text.length();				StringBuffer buffer = new StringBuffer( length );				for (int i = 0; i < length; i++) {					buffer.append('*');				}				text = buffer.toString();			}		}		//#ifdef tmp.directInput			if (this.caretPosition == 0 && (text != null) 					&& (this.text == null || this.text.length() == 0) ) {				this.caretPosition = text.length();				this.caretColumn = this.caretPosition;				//TODO set caretX and caretY Positions and currentRowStart/currentRowEnd?			}		//#endif		setText(text);		//#ifdef tmp.directInput			if ((text == null || text.length() == 0) && this.inputMode == MODE_FIRST_UPPERCASE) {				this.nextCharUppercase = true;			}		//#endif	}