Class StretchItem
- All Implemented Interfaces:
- HasHandlers
StretchImg. Each
 item of a StretchImg's items array is a StretchItem.- 
Field SummaryFields inherited from class com.smartgwt.client.core.DataClassfactoryCreated, factoryProperties
- 
Constructor SummaryConstructorsConstructorDescriptionStretchItem(JavaScriptObject jsObj) StretchItem(String name, int width, int height) StretchItem(String name, int width, String height) StretchItem(String name, String width, int height) StretchItem(String name, String width, String height) 
- 
Method SummaryModifier and TypeMethodDescriptionThe height of the image.getHSrc()The URL of the media file for this StretchItem if the parentStretchImgisnot verticalandsrcis unset.getName()static StretchItemgetOrCreateRef(JavaScriptObject jsObj) getSrc()The URL of the media file for this StretchItem.getVSrc()The URL of the media file for this StretchItem if the parentStretchImgisverticalandsrcis unset.getWidth()The width of the image.setHeight(int height) The height of the image.The height of the image.The URL of the media file for this StretchItem if the parentStretchImgisnot verticalandsrcis unset.The URL of the media file for this StretchItem.The URL of the media file for this StretchItem if the parentStretchImgisverticalandsrcis unset.setWidth(int width) The width of the image.The width of the image.Methods inherited from class com.smartgwt.client.core.DataClassapplyFactoryProperties, 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
- 
Constructor Details- 
StretchItempublic StretchItem()
- 
StretchItem
- 
StretchItem
- 
StretchItem
- 
StretchItem
- 
StretchItem
 
- 
- 
Method Details- 
getOrCreateRef
- 
setHeightThe height of the image. This can either be a number (for the number of pixels tall), the string "*" (remaining space, divided amongst all items that specify height:"*"), or the name of a property on the StretchImg component, such as "capSize" for the StretchImg'scapSize.NOTE: The height is only used if the StretchImg stacks its images vertically ( StretchImg.verticalis true).- Parameters:
- height- New height value. Default value is null
- Returns:
- StretchIteminstance, for chaining setter calls
 
- 
setHeightThe height of the image. This can either be a number (for the number of pixels tall), the string "*" (remaining space, divided amongst all items that specify height:"*"), or the name of a property on the StretchImg component, such as "capSize" for the StretchImg'scapSize.NOTE: The height is only used if the StretchImg stacks its images vertically ( StretchImg.verticalis true).- Parameters:
- height- New height value. Default value is null
- Returns:
- StretchIteminstance, for chaining setter calls
 
- 
setHSrcThe URL of the media file for this StretchItem if the parentStretchImgisnot verticalandsrcis unset.- Parameters:
- hSrc- New hSrc value. Default value is null
- Returns:
- StretchIteminstance, for chaining setter calls
- See Also:
 
- 
getHSrcThe URL of the media file for this StretchItem if the parentStretchImgisnot verticalandsrcis unset.- Returns:
- Current hSrc value. Default value is null
- See Also:
 
- 
setNameA string that is appended as a suffix to the StretchImg'ssrcURL in order to fetch the media file for this StretchItem, if a separatesrcis 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.srcof "button.png" and a name of "stretch", the resulting URL would be "button_Over_stretch.png".- Parameters:
- name- New name value. Default value is null
- Returns:
- StretchIteminstance, for chaining setter calls
 
- 
getNameA string that is appended as a suffix to the StretchImg'ssrcURL in order to fetch the media file for this StretchItem, if a separatesrcis 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.srcof "button.png" and a name of "stretch", the resulting URL would be "button_Over_stretch.png".- Returns:
- Current name value. Default value is null
 
- 
setSrcThe URL of the media file for this StretchItem.- Parameters:
- src- New src value. Default value is null
- Returns:
- StretchIteminstance, for chaining setter calls
- See Also:
 
- 
getSrcThe URL of the media file for this StretchItem.- Returns:
- Current src value. Default value is null
- See Also:
 
- 
setVSrcThe URL of the media file for this StretchItem if the parentStretchImgisverticalandsrcis unset.- Parameters:
- vSrc- New vSrc value. Default value is null
- Returns:
- StretchIteminstance, for chaining setter calls
- See Also:
 
- 
getVSrcThe URL of the media file for this StretchItem if the parentStretchImgisverticalandsrcis unset.- Returns:
- Current vSrc value. Default value is null
- See Also:
 
- 
setWidthThe width of the image. This can either be a number (for the number of pixels wide), the string "*" (remaining space, divided amongst all items that specify width:"*"), or the name of a property on the StretchImg component, such as "capSize" for the StretchImg'scapSize.NOTE: The width is only used if the StretchImg stacks its images horizontally ( StretchImg.verticalis false).- Parameters:
- width- New width value. Default value is null
- Returns:
- StretchIteminstance, for chaining setter calls
 
- 
setWidthThe width of the image. This can either be a number (for the number of pixels wide), the string "*" (remaining space, divided amongst all items that specify width:"*"), or the name of a property on the StretchImg component, such as "capSize" for the StretchImg'scapSize.NOTE: The width is only used if the StretchImg stacks its images horizontally ( StretchImg.verticalis false).- Parameters:
- width- New width value. Default value is null
- Returns:
- StretchIteminstance, for chaining setter calls
 
- 
getWidthThe width of the image. This can either be a number (for the number of pixels wide), the string "*" (remaining space, divided amongst all items that specify width:"*"), or the name of a property on the StretchImg component, such as "capSize" for the StretchImg'scapSize.NOTE: The width is only used if the StretchImg stacks its images horizontally ( verticalis false).- Returns:
- Integer or String
 
- 
getHeightThe height of the image. This can either be a number (for the number of pixels tall), the string "*" (remaining space, divided amongst all items that specify height:"*"), or the name of a property on the StretchImg component, such as "capSize" for the StretchImg'scapSize.NOTE: The height is only used if the StretchImg stacks its images vertically ( verticalis true).- Returns:
- Integer or String
 
 
-