Example #1
0
  /** {@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;
    }
  }
Example #2
0
 /** {@inheritDoc} */
 public String getText() {
   return text.getText();
 }