|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Sizeable
Interface to be implemented by components wishing to display some object that may be dynamically resized during runtime.
| Nested Class Summary | |
|---|---|
static class |
Sizeable.Unit
|
| Field Summary | |
|---|---|
static float |
SIZE_UNDEFINED
|
static Sizeable.Unit |
UNITS_CM
Deprecated. As of 7.0, use Sizeable.Unit.CM instead |
static Sizeable.Unit |
UNITS_EM
Deprecated. As of 7.0, use Sizeable.Unit.EM instead |
static Sizeable.Unit |
UNITS_EX
Deprecated. As of 7.0, use Sizeable.Unit.EX instead |
static Sizeable.Unit |
UNITS_INCH
Deprecated. As of 7.0, use Sizeable.Unit.INCH instead |
static Sizeable.Unit |
UNITS_MM
Deprecated. As of 7.0, use Sizeable.Unit.MM instead |
static Sizeable.Unit |
UNITS_PERCENTAGE
Deprecated. As of 7.0, use Sizeable.Unit.PERCENTAGE instead |
static Sizeable.Unit |
UNITS_PICAS
Deprecated. As of 7.0, use Sizeable.Unit.PICAS instead |
static Sizeable.Unit |
UNITS_PIXELS
Deprecated. As of 7.0, use Sizeable.Unit.PIXELS instead |
static Sizeable.Unit |
UNITS_POINTS
Deprecated. As of 7.0, use Sizeable.Unit.POINTS instead |
| Method Summary | |
|---|---|
float |
getHeight()
Gets the height of the object. |
Sizeable.Unit |
getHeightUnits()
Gets the height property units. |
float |
getWidth()
Gets the width of the object. |
Sizeable.Unit |
getWidthUnits()
Gets the width property units. |
void |
setHeight(float height,
Sizeable.Unit unit)
Sets the height of the object. |
void |
setHeight(java.lang.String height)
Sets the height of the component using String presentation. |
void |
setSizeFull()
Sets the size to 100% x 100%. |
void |
setSizeUndefined()
Clears any size settings. |
void |
setWidth(float width,
Sizeable.Unit unit)
Sets the width of the object. |
void |
setWidth(java.lang.String width)
Sets the width of the component using String presentation. |
| Field Detail |
|---|
@Deprecated static final Sizeable.Unit UNITS_PIXELS
Sizeable.Unit.PIXELS instead @Deprecated static final Sizeable.Unit UNITS_POINTS
Sizeable.Unit.POINTS instead @Deprecated static final Sizeable.Unit UNITS_PICAS
Sizeable.Unit.PICAS instead @Deprecated static final Sizeable.Unit UNITS_EM
Sizeable.Unit.EM instead @Deprecated static final Sizeable.Unit UNITS_EX
Sizeable.Unit.EX instead @Deprecated static final Sizeable.Unit UNITS_MM
Sizeable.Unit.MM instead @Deprecated static final Sizeable.Unit UNITS_CM
Sizeable.Unit.CM instead @Deprecated static final Sizeable.Unit UNITS_INCH
Sizeable.Unit.INCH instead @Deprecated static final Sizeable.Unit UNITS_PERCENTAGE
Sizeable.Unit.PERCENTAGE instead static final float SIZE_UNDEFINED
| Method Detail |
|---|
float getWidth()
float getHeight()
Sizeable.Unit getWidthUnits()
Sizeable.Unit getHeightUnits()
void setHeight(java.lang.String height)
height - in CSS style string representation
void setWidth(float width,
Sizeable.Unit unit)
width - the width of the object.unit - the unit used for the width.
void setHeight(float height,
Sizeable.Unit unit)
height - the height of the object.unit - the unit used for the width.void setWidth(java.lang.String width)
width - in CSS style string representation, null or empty string to
resetvoid setSizeFull()
void setSizeUndefined()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||