public void setTextMode(boolean editable) {
        if (controller != null) {
            if (editable && (controller instanceof EditableTC)) {
                return;
            }

            if (!editable && (controller instanceof NonEditableTC)) {
                return;
            }

            controller.detach();
        }

        if (editable) {
            controller = new EditableTC();
        } else {
            controller = new NonEditableTC();
        }

        updateParser();
    }
public void setTextMode(boolean editable)