Example #1
0
 /**
  * Sets the base icon type.
  *
  * @param type the icon type
  */
 public void setBaseType(BaseIconType type) {
   if (this.type != null) {
     StyleHelper.removeStyle(this, this.type);
   }
   this.type = type;
   StyleHelper.addStyle(this, type);
 }
 /** {@inheritDoc} */
 @Override
 public void setAlternateSize(AlternateSize size) {
   StyleHelper.changeStyle(this, size, AlternateSize.class);
 }
Example #3
0
 /**
  * Sets the icon size.
  *
  * @param size the icon size
  */
 public void setIconSize(IconSize size) {
   StyleHelper.changeStyle(this, size, IconSize.class);
 }