@Override public void setWidth(String width) { if (!initialized) { super.setWidth(width); } else { throw new UnsupportedOperationException(errorMsg); } }
@Override public void setWidth(int width) { if (!initialized) { super.setWidth(width); } else { throw new UnsupportedOperationException(errorMsg); } }
/** * Set the size of this Dimension object to the specified width and height * and append "px" to both values. * * @see #setHeight(int) * @see #setWidth(int) */ public void setSize(int width, int height) { setWidth(width); setHeight(height); }
/** * Set the size of this Dimension object to the specified width and height. * * @see #setHeight(String) * @see #setWidth(String) */ public void setSize(String width, String height) { setWidth(width); setHeight(height); }
public SDimension(String width, String height) { setWidth(width); setHeight(height); }