public class StretchItem extends DataClass
StretchImg
. Each
item of a StretchImg's items
array is a StretchItem.Constructor and Description |
---|
StretchItem() |
StretchItem(com.google.gwt.core.client.JavaScriptObject jsObj) |
StretchItem(java.lang.String name,
int width,
int height) |
StretchItem(java.lang.String name,
int width,
java.lang.String height) |
StretchItem(java.lang.String name,
java.lang.String width,
int height) |
StretchItem(java.lang.String name,
java.lang.String width,
java.lang.String height) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getHeight()
The height of the image.
|
java.lang.String |
getName()
|
static StretchItem |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getSrc()
The URL of the media file for this StretchItem.
|
java.lang.Object |
getWidth()
The width of the image.
|
void |
setHeight(int height)
The height of the image.
|
void |
setHeight(java.lang.String height)
The height of the image.
|
void |
setName(java.lang.String name)
|
void |
setSrc(java.lang.String src)
The URL of the media file for this StretchItem.
|
void |
setWidth(int width)
The width of the image.
|
void |
setWidth(java.lang.String width)
The width of the image.
|
doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject
public StretchItem()
public StretchItem(com.google.gwt.core.client.JavaScriptObject jsObj)
public StretchItem(java.lang.String name, int width, int height)
public StretchItem(java.lang.String name, int width, java.lang.String height)
public StretchItem(java.lang.String name, java.lang.String width, int height)
public StretchItem(java.lang.String name, java.lang.String width, java.lang.String height)
public static StretchItem getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setHeight(int height)
capSize
. NOTE: The
height is only used if the StretchImg stacks its images vertically (vertical
is true).
height
- Default value is -1public void setHeight(java.lang.String height)
capSize
. NOTE: The
height is only used if the StretchImg stacks its images vertically (vertical
is true).
height
- Default value is -1public void setName(java.lang.String name)
src
URL
in order to fetch the media file for this StretchItem, if a separate src
is not provided. Note that the special name "blank", possibly
suffixed by one or more digits which are used to differentiate blank items, means no image will be shown for this
StretchItem. For example, for a StretchImg in "Over" state with a src
of "button.png" and a name of "stretch", the resulting URL would be
"button_Over_stretch.png".
name
- Default value is nullpublic java.lang.String getName()
src
URL
in order to fetch the media file for this StretchItem, if a separate src
is not provided. Note that the special name "blank", possibly
suffixed by one or more digits which are used to differentiate blank items, means no image will be shown for this
StretchItem. For example, for a StretchImg in "Over" state with a src
of "button.png" and a name of "stretch", the resulting URL would be
"button_Over_stretch.png".
public void setSrc(java.lang.String src)
src
- See SCImgURL
. Default value is nullpublic java.lang.String getSrc()
SCImgURL
public void setWidth(int width)
capSize
. NOTE: The
width is only used if the StretchImg stacks its images horizontally (vertical
is false).
width
- Default value is -1public void setWidth(java.lang.String width)
capSize
. NOTE: The
width is only used if the StretchImg stacks its images horizontally (vertical
is false).
width
- Default value is -1public java.lang.Object getWidth()
capSize
. NOTE: The
width is only used if the StretchImg stacks its images horizontally (vertical
is false).
public java.lang.Object getHeight()
capSize
. NOTE: The
height is only used if the StretchImg stacks its images vertically (vertical
is true).