/** Sets whether it is disabled. * @see #setAutodisable */ public void setDisabled(boolean disabled) { if ((_auxinf != null && _auxinf.disabled) != disabled) { initAuxInfo().disabled = disabled; smartUpdate("disabled", isDisabled()); } }
/** Sets the target frame or window. * @param target the name of the frame or window to hyperlink. */ public void setTarget(String target) { if (target != null && target.length() == 0) target = null; if (!Objects.equals(_auxinf != null ? _auxinf.target : null, target)) { initAuxInfo().target = target; smartUpdate("target", getTarget()); } }
/** Sets the direction to layout image. * @param dir either "normal" or "reverse". */ public void setDir(String dir) throws WrongValueException { if (!NORMAL.equals(dir) && !"reverse".equals(dir)) throw new WrongValueException(dir); if (!Objects.equals(_auxinf != null ? _auxinf.dir : NORMAL, dir)) { initAuxInfo().dir = dir; smartUpdate("dir", getDir()); } }
/** Sets the href. */ public void setHref(String href) { if (href != null && href.length() == 0) href = null; if (!Objects.equals(_auxinf != null ? _auxinf.href : null, href)) { initAuxInfo().href = href; smartUpdate("href", new EncodedHref()); //Bug 1850895 } }
/** Sets the orient to layout image. * @param orient either "horizontal" or "vertical". */ public void setOrient(String orient) throws WrongValueException { if (!HORIZONTAL.equals(orient) && !"vertical".equals(orient)) throw new WrongValueException(orient); if (!Objects.equals(_auxinf != null ? _auxinf.orient : HORIZONTAL, orient)) { initAuxInfo().orient = orient; smartUpdate("orient", getOrient()); } }
/** Sets the button type. * <p>Default: "button". * It is meaningful only if it is used with a HTML form. * Refer to <a href="http://www.htmlcodetutorial.com/forms/_BUTTON_TYPE.html">HTML Button Type</a> * for details. * @param type either "button", "submit" or "reset". * @since 5.0.4 */ public void setType(String type) throws WrongValueException { if (!BUTTON.equals(type) && !"submit".equals(type) && !"reset".equals(type)) throw new WrongValueException(type); if (!Objects.equals(_auxinf != null ? _auxinf.type : BUTTON, type)) { initAuxInfo().type = type; smartUpdate("type", getType()); } }
smartUpdate("upload", getRealUpload());
if (!Objects.equals(_auxinf != null ? _auxinf.autodisable : null, autodisable)) { initAuxInfo().autodisable = autodisable; smartUpdate("autodisable", getAutodisable());