/** {@inheritDoc} */ @Override public void setIconPosition(IconPosition position) { this.iconPosition = position; icon.removeFromParent(); text.removeFromParent(); if (IconPosition.RIGHT == position) { this.insert(text, 0); this.insert(icon, 1); return; } else if (IconPosition.LEFT == position) { this.insert(icon, 0); this.insert(text, 1); return; } }
/** {@inheritDoc} */ public String getText() { return text.getText(); }