|
|||||||||
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.Img
com.smartgwt.client.widgets.ImgSplitbar
public class ImgSplitbar
Subclass of the Img
class. As with the Splitbar
class, widgets of this class can be displayed as a resize-bar for widgets in Layouts where showResizeBar is set to
true. Provides a different appearance from the Splitbar
class.
To specify the resizeBar class for
some layout, use the resizeBarClass
property.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.smartgwt.client.widgets.BaseWidget |
---|
config, configOnly, id, isElementSet, scClassName |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
ImgSplitbar()
|
|
ImgSplitbar(JavaScriptObject jsObj)
|
Method Summary | |
---|---|
protected JavaScriptObject |
create()
|
Boolean |
getCanCollapse()
If this property is true, a click on the Splitbar will collapse its 'target' , hiding it and shifting the Splitbar and other members of the
layout across to fill the newly available space. |
Boolean |
getCanDrag()
canDrag set to true to allow dragging of the split bar. |
String |
getHSrc()
Default src to display when vertical is false, and src is unset. |
static ImgSplitbar |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getSkinImgDir()
Default directory for skin images (those defined by the class), relative to the Page-wide Page.getSkinDir() . |
String |
getSrc()
The base filename for the image. |
Boolean |
getVertical()
Is this split bar vertically orientated? When a Splitbar is created by a layout to be the resizeBar for
some member of the layout, the vertical property will be set to true if the layout is
horizontal, meaning this resizeBar will be taller than it is wide, and will allow horizontal resizing of the member. |
String |
getVSrc()
Default src to display when vertical is true, and src is unset. |
void |
setCanCollapse(Boolean canCollapse)
If this property is true, a click on the Splitbar will collapse its 'target' , hiding it and shifting the Splitbar and other members of the
layout across to fill the newly available space. |
void |
setCanDrag(Boolean canDrag)
canDrag set to true to allow dragging of the split bar. |
void |
setHSrc(String hSrc)
Default src to display when vertical is false, and src is unset. |
void |
setSkinImgDir(String skinImgDir)
Default directory for skin images (those defined by the class), relative to the Page-wide Page.getSkinDir() . |
void |
setSrc(String src)
The base filename for the image. |
void |
setVSrc(String vSrc)
Default src to display when vertical is true, and src is unset. |
Methods inherited from class com.smartgwt.client.widgets.Img |
---|
getImageHeight, getImageType, getImageWidth, getShowTitle, getSize, resetSrc, setImageHeight, setImageType, setImageWidth, setName, setShowTitle, setSize |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
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, 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 |
Constructor Detail |
---|
public ImgSplitbar()
public ImgSplitbar(JavaScriptObject jsObj)
Method Detail |
---|
public static ImgSplitbar getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create
in class Img
public Boolean getVertical() throws IllegalStateException
Splitbar
is created by a layout to be the resizeBar for
some member of the layout, the vertical
property will be set to true
if the layout is
horizontal, meaning this resizeBar will be taller than it is wide, and will allow horizontal resizing of the member.
Note : This method should be called only after the widget has been rendered.
IllegalStateException
- if widget has not yet been rendered.public void setCanDrag(Boolean canDrag)
canDrag
set to true to allow dragging of the split bar. Dragging the Splitbar will resize it's 'target'
setCanDrag
in class Canvas
canDrag
- canDrag Default value is truepublic Boolean getCanDrag()
canDrag
set to true to allow dragging of the split bar. Dragging the Splitbar will resize it's 'target'
getCanDrag
in class Canvas
public void setCanCollapse(Boolean canCollapse)
'target'
, hiding it and shifting the Splitbar and other members of the
layout across to fill the newly available space. If the target is already hidden a click will expand it again (showing
it at it's normal size).
canCollapse
- canCollapse Default value is truepublic Boolean getCanCollapse()
'target'
, hiding it and shifting the Splitbar and other members of the
layout across to fill the newly available space. If the target is already hidden a click will expand it again (showing
it at it's normal size).
public void setSkinImgDir(String skinImgDir) throws IllegalStateException
Page.getSkinDir()
.
setSkinImgDir
in class Canvas
skinImgDir
- skinImgDir Default value is "images/SplitBar/"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getSkinImgDir()
Page.getSkinDir()
.
getSkinImgDir
in class Canvas
public void setSrc(String src) throws IllegalStateException
If img.state
is set, it's value will be appended to the URL before the
file extension.
For example, given an src
of "findIcon.gif" and a state of "Disabled", the resulting
image name would be "findIcon_Disabled.gif". Compound states such as "Selected", "Focused" and "Over" or "Down" will
have an intervening underscore, resulting in, for example, "findIcon_Selected_Down.gif"
.
setSrc
in class Img
src
- src Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getSrc()
If img.state
is set, it's value will be appended to the URL before the
file extension.
For example, given an src
of "findIcon.gif" and a state of "Disabled", the resulting
image name would be "findIcon_Disabled.gif". Compound states such as "Selected", "Focused" and "Over" or "Down" will
have an intervening underscore, resulting in, for example, "findIcon_Selected_Down.gif"
.
getSrc
in class Img
public void setHSrc(String hSrc) throws IllegalStateException
vertical
is false, and src
is unset.
hSrc
- hSrc Default value is [SKIN]hgrip.png
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getHSrc()
vertical
is false, and src
is unset.
public void setVSrc(String vSrc) throws IllegalStateException
vertical
is true, and src
is unset.
vSrc
- vSrc Default value is [SKIN]vgrip.png
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getVSrc()
vertical
is true, and src
is unset.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |