*/
public float getWidth();
- /**
- * Sets the width of the object. Negative number implies unspecified size
- * (terminal is free to set the size).
- *
- * @param width
- * the width of the object in units specified by widthUnits
- * property.
- * @deprecated Consider using {@link #setWidth(String)} instead. This method
- * works, but is error-prone since the unit must be set
- * separately (and components might have different default
- * unit).
- */
- @Deprecated
- public void setWidth(float width);
-
/**
* Gets the height of the object. Negative number implies unspecified size
* (terminal is free to set the size).
*/
public float getHeight();
- /**
- * Sets the height of the object. Negative number implies unspecified size
- * (terminal is free to set the size).
- *
- * @param height
- * the height of the object in units specified by heightUnits
- * property.
- * @deprecated Consider using {@link #setHeight(String)} or
- * {@link #setHeight(float, int)} instead. This method works,
- * but is error-prone since the unit must be set separately (and
- * components might have different default unit).
- */
- @Deprecated
- public void setHeight(float height);
-
/**
* Gets the width property units.
*
*/
public int getWidthUnits();
- /**
- * Sets the width property units.
- *
- * @param units
- * the units used in width property.
- * @deprecated Consider setting width and unit simultaneously using
- * {@link #setWidth(String)} or {@link #setWidth(float, int)},
- * which is less error-prone.
- */
- @Deprecated
- public void setWidthUnits(int units);
-
/**
* Gets the height property units.
*
*/
public int getHeightUnits();
- /**
- * Sets the height property units.
- *
- * @param units
- * the units used in height property.
- * @deprecated Consider setting height and unit simultaneously using
- * {@link #setHeight(String)} or {@link #setHeight(float, int)},
- * which is less error-prone.
- */
- @Deprecated
- public void setHeightUnits(int units);
-
/**
* Sets the height of the component using String presentation.
*
return widthUnit;
}
- /*
- * (non-Javadoc)
- *
- * @see com.vaadin.terminal.Sizeable#setHeight(float)
- */
- @Deprecated
- public void setHeight(float height) {
- setHeight(height, getHeightUnits());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.vaadin.terminal.Sizeable#setHeightUnits(int)
- */
- @Deprecated
- public void setHeightUnits(int unit) {
- setHeight(getHeight(), unit);
- }
-
/*
* (non-Javadoc)
*
setHeight(-1, UNITS_PIXELS);
}
- /*
- * (non-Javadoc)
- *
- * @see com.vaadin.terminal.Sizeable#setWidth(float)
- */
- @Deprecated
- public void setWidth(float width) {
- setWidth(width, getWidthUnits());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see com.vaadin.terminal.Sizeable#setWidthUnits(int)
- */
- @Deprecated
- public void setWidthUnits(int unit) {
- setWidth(getWidth(), unit);
- }
-
/*
* (non-Javadoc)
*