public class StretchItem extends DataClass
StretchImg
. Each
item of a StretchImg's items
array is a StretchItem.factoryCreated, factoryProperties
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.
|
StretchItem |
setHeight(int height)
The height of the image.
|
StretchItem |
setHeight(java.lang.String height)
The height of the image.
|
StretchItem |
setName(java.lang.String name)
|
StretchItem |
setSrc(java.lang.String src)
The URL of the media file for this StretchItem.
|
StretchItem |
setWidth(int width)
The width of the image.
|
StretchItem |
setWidth(java.lang.String width)
The width of the image.
|
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, 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, setFactoryCreated
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 StretchItem setHeight(int height)
capSize
. NOTE: The
height is only used if the StretchImg stacks its images vertically (StretchImg.vertical
is true).
height
- New height value. Default value is nullStretchItem
instance, for chaining setter callspublic StretchItem setHeight(java.lang.String height)
capSize
. NOTE: The
height is only used if the StretchImg stacks its images vertically (StretchImg.vertical
is true).
height
- New height value. Default value is nullStretchItem
instance, for chaining setter callspublic StretchItem 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 StretchImg.src
of "button.png" and a name of "stretch", the resulting URL
would be "button_Over_stretch.png".
name
- New name value. Default value is nullStretchItem
instance, for chaining setter callspublic 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 StretchImg.src
of "button.png" and a name of "stretch", the resulting URL
would be "button_Over_stretch.png".
public StretchItem setSrc(java.lang.String src)
src
- New src value. Default value is nullStretchItem
instance, for chaining setter callsSCImgURL
public java.lang.String getSrc()
SCImgURL
public StretchItem setWidth(int width)
capSize
. NOTE: The
width is only used if the StretchImg stacks its images horizontally (StretchImg.vertical
is false).
width
- New width value. Default value is nullStretchItem
instance, for chaining setter callspublic StretchItem setWidth(java.lang.String width)
capSize
. NOTE: The
width is only used if the StretchImg stacks its images horizontally (StretchImg.vertical
is false).
width
- New width value. Default value is nullStretchItem
instance, for chaining setter callspublic 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).