setCommand method
setgettextcommand