public final void setMode(Mode mode) {
        this.mode = mode;
        switch (mode) {
             case WRITE:
                setEditable(true);
                component.setClassName("input-tag input-tag-mode-write");
                break;
            case SELECT_BOX:
                setEditable(true);
                component.setClassName("input-tag input-tag-mode-select-box");
                break;
            case READ:
                setEditable(false);
                component.setClassName("input-tag input-tag-mode-read-only");
                break;                        
        }
    }