|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.smartgwt.client.widgets.BaseWidget
com.smartgwt.client.widgets.Canvas
com.smartgwt.client.widgets.StatefulCanvas
com.smartgwt.client.widgets.StretchImg
public class StretchImg
The StretchImg widget class implements a widget type that displays a list of multiple images that make up a single image.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.smartgwt.client.widgets.BaseWidget |
---|
config, configOnly, id, isElementSet |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
StretchImg()
|
|
StretchImg(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary | |
---|---|
protected com.google.gwt.core.client.JavaScriptObject |
create()
|
int |
getCapSize()
If the default items are used, capSize is the size in pixels of the first and last images in this stretchImg. |
java.lang.String |
getHSrc()
Base URL for the image if vertical is false and
src is unset. |
ImageStyle |
getImageType()
Indicates whether the image should be tiled/cropped, stretched, or centered when the size of this widget does not match the size of the image. |
java.lang.String |
getItemBaseStyle()
If specified this css class will be applied to the individual item images within this StretchImg. May be overridden by specifying item-specific base styles to each object in the items . |
static StretchImg |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
java.lang.Boolean |
getShowGrip()
Should we show a "grip" image floating above the center of this widget? |
java.lang.Boolean |
getShowTitle()
Determines whether any specified StatefulCanvas.getTitle() will be
displayed for this component.Applies to Image-based components only, where the title will be rendered out in a label floating over the component |
java.lang.String |
getSrc()
The base URL for the image. |
java.lang.Boolean |
getVertical()
Indicates whether the list of images is drawn vertically from top to bottom (true), or horizontally from left to right (false). |
java.lang.String |
getVSrc()
Base URL for the image if vertical is true and
src is unset. |
void |
setCapSize(int capSize)
If the default items are used, capSize is the size in pixels of the first and last images in this stretchImg. |
void |
setHSrc(java.lang.String hSrc)
Base URL for the image if vertical is false and
src is unset. |
void |
setImageType(ImageStyle imageType)
Indicates whether the image should be tiled/cropped, stretched, or centered when the size of this widget does not match the size of the image. |
void |
setItemBaseStyle(java.lang.String itemBaseStyle)
If specified this css class will be applied to the individual item images within this StretchImg. May be overridden by specifying item-specific base styles to each object in the items . |
void |
setShowGrip(java.lang.Boolean showGrip)
Should we show a "grip" image floating above the center of this widget? |
void |
setShowTitle(java.lang.Boolean showTitle)
Determines whether any specified StatefulCanvas.getTitle() will be
displayed for this component.Applies to Image-based components only, where the title will be rendered out in a label floating over the component |
void |
setSrc(java.lang.String src)
The base URL for the image. |
void |
setState(java.lang.String newState)
Set the specified image's state to newState and update the displayed image given by whichPart, or set the state for all images to newState and update the displayed images if whichPart is not provided. |
void |
setState(java.lang.String newState,
java.lang.String whichPart)
Set the specified image's state to newState and update the displayed image given by whichPart, or set the state for all images to newState and update the displayed images if whichPart is not provided. |
void |
setVertical(java.lang.Boolean vertical)
Indicates whether the list of images is drawn vertically from top to bottom (true), or horizontally from left to right (false). |
void |
setVSrc(java.lang.String vSrc)
Base URL for the image if vertical is true and
src is unset. |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public StretchImg()
public StretchImg(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
public static StretchImg getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
protected com.google.gwt.core.client.JavaScriptObject create()
create
in class StatefulCanvas
public void setVertical(java.lang.Boolean vertical)
vertical
- vertical Default value is truepublic java.lang.Boolean getVertical()
public void setCapSize(int capSize)
capSize
- capSize Default value is 2public int getCapSize()
public void setSrc(java.lang.String src)
As with src
, the State
of the component is added to this URL. Then,
the image segment name as specified by items
is added.
For example, for a stretchImg in "Over" state with a src
of "button.png"
and a segment name of "stretch", the resulting URL would be "button_Over_stretch.png".
src
- src Default value is nullpublic java.lang.String getSrc()
As with src
, the State
of the component is added to this URL. Then,
the image segment name as specified by items
is added.
For example, for a stretchImg in "Over" state with a src
of "button.png"
and a segment name of "stretch", the resulting URL would be "button_Over_stretch.png".
public void setHSrc(java.lang.String hSrc)
vertical
is false and
src
is unset.
hSrc
- hSrc Default value is nullpublic java.lang.String getHSrc()
vertical
is false and
src
is unset.
public void setVSrc(java.lang.String vSrc)
vertical
is true and
src
is unset.
vSrc
- vSrc Default value is nullpublic java.lang.String getVSrc()
vertical
is true and
src
is unset.
public void setImageType(ImageStyle imageType)
imageType
- imageType Default value is Img.STRETCHpublic ImageStyle getImageType()
public void setShowGrip(java.lang.Boolean showGrip) throws java.lang.IllegalStateException
Note : This is an advanced setting
showGrip
- showGrip Default value is null
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getShowGrip()
public void setShowTitle(java.lang.Boolean showTitle)
StatefulCanvas.getTitle()
will be
displayed for this component.Note : This is an advanced setting
showTitle
- showTitle Default value is falsepublic java.lang.Boolean getShowTitle()
StatefulCanvas.getTitle()
will be
displayed for this component.
public void setItemBaseStyle(java.lang.String itemBaseStyle)
items
. This base style will have standard stateful suffixes
appended to indicate the state of this component (as described in
baseStyle
).
itemBaseStyle
- itemBaseStyle Default value is nullpublic java.lang.String getItemBaseStyle()
items
. This base style will have standard stateful suffixes
appended to indicate the state of this component (as described in
baseStyle
).
public void setState(java.lang.String newState)
newState
- name for the new state ("off", "down", etc)public void setState(java.lang.String newState, java.lang.String whichPart)
newState
- name for the new state ("off", "down", etc)whichPart
- name of the piece to set ("start", "stretch" or "end") if not specified, sets them all
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |