Code example for EditText

Methods: setEnabled, setFocusable, setFocusableInTouchMode

0
		this.editable = editable;
		if (editText != null) {
			myHandler.post(new Runnable() {
				@Override 
				public void run() { 
					editText.setEnabled(isEditable());
					editText.setFocusable(isEditable());
					editText.setFocusableInTouchMode(isEditable());
				} 
			}); 
		} 
	} 
 
	public boolean isEditable() { 
		return editable;
	} 
 
	@Override 
	public boolean assignNewDecorator(UiDecorator decorator) {
		myDecorator = decorator;
		return true;