@PropertySetter("showText") public void setShowText(boolean showText) { if (showText != this.showText) { sync("showText", this.showText = showText); } }
@PropertySetter("target") public void setTarget(String target) { if (!areEqual(href = nullify(target), this.target)) { sync("target", this.target = target); } }
/** * Sets the position of the label relative to the contained elements. * * @param position May be one of: left, right. */ @Override @PropertySetter("position") public void setPosition(LabelPositionHorz position) { super.setPosition(position); }
/** * When set to true, this component is a namespace boundary. This may not be changed once a * parent or children are added. * * @param namespace True to make component a namespace boundary. */ @PropertySetter("namespace") private void setNamespace(boolean namespace) { this.namespace = namespace; }
@PropertySetter("#text") protected void setContent(String content) { if (!areEqual(content = nullify(content), this.content)) { this.content = content; if (contentSynced) { sync("content", content); } } }
@PropertySetter("value") public void setValue(int value) { if (value != this.value) { sync("value", this.value = value); } }
@PropertySetter("visible") public void setVisible(boolean visible) { if (visible != this.visible) { sync("visible", this.visible = visible); } }
@PropertySetter("balloon") public void setBalloon(String balloon) { if (!areEqual(balloon, this.balloon)) { sync("balloon", this.balloon = balloon); } }
@PropertySetter("class") public void addClass(String value) { if (classes.add(value)) { _syncClasses(); } }
@PropertySetter("maxlength") public void setMaxLength(int maxLength) { maxLength = NumUtil.enforceRange(maxLength, 0, 524288); if (maxLength != this.maxLength) { sync("maxlength", this.maxLength = maxLength); } }
@PropertySetter("pattern") public void setPattern(String pattern) { if (!areEqual(pattern = nullify(pattern), this.pattern)) { sync("pattern", this.pattern = pattern); } }
@PropertySetter("maxvalue") public void setMaxvalue(T maxvalue) { if (!areEqual(maxvalue, this.maxvalue)) { this.maxvalue = maxvalue; sync("maxvalue", this._toString(maxvalue)); } }
/** * Sets the position of the label relative to the image. * * @param position May be one of: left, right. */ @Override @PropertySetter("position") public void setPosition(LabelPositionHorz position) { super.setPosition(position); }
/** * Sets the interval, in milliseconds, between timer events. * * @param interval The timer interval in milliseconds. Any value less than or equal to zero will * disable the timer. */ @PropertySetter("interval") public void setInterval(long interval) { if (interval != this.interval) { sync("interval", this.interval = interval); } }
@PropertySetter("orientation") public void setOrientation(Orientation orientation) { orientation = orientation == null ? Orientation.HORIZONTAL : orientation; if (orientation != this.orientation) { sync("orientation", this.orientation = orientation); } }
@PropertySetter("alt") public void setAlt(String alt) { if (!areEqual(alt = nullify(alt), this.alt)) { sync("alt", this.alt = alt); } } }
@Override @PropertySetter("label") public void setLabel(String label) { if (!areEqual(label = nullify(label), this.label)) { sync("label", this.label = label); } }
@PropertySetter("mode") public void setMode(Mode mode) { mode = mode == null ? Mode.INLINE : mode; if (mode != this.mode) { sync("mode", this.mode = mode); } }
@Override @PropertySetter("synchronized") public void setSynchronized(boolean synchronize) { super.setSynchronized(synchronize); }
@PropertySetter("content") @Override public void setContent(String content) { content = nullify(content); if (content != null) { setSrc(null); } super.setContent(content); }