|
|||||||||
| 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.
Layout,
Splitbar| 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, nativeObject, scClassName |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ImgSplitbar()
|
|
ImgSplitbar(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
protected com.google.gwt.core.client.JavaScriptObject |
create()
|
java.lang.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. |
java.lang.Boolean |
getCanDrag()
canDrag set to true to allow dragging of the split bar. |
java.lang.String |
getHSrc()
Default src to display when vertical is false, and src is unset. |
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
|
static ImgSplitbar |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
java.lang.String |
getSkinImgDir()
Default directory for skin images (those defined by the class), relative to the Page-wide skinDir. |
java.lang.String |
getSrc()
The base filename for the image. |
java.lang.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. |
java.lang.String |
getVSrc()
Default src to display when vertical is true, and src is unset. |
void |
setCanCollapse(java.lang.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(java.lang.Boolean canDrag)
canDrag set to true to allow dragging of the split bar. |
static void |
setDefaultProperties(ImgSplitbar imgSplitbarProperties)
Class level method to set the default properties of this class. |
void |
setHSrc(java.lang.String hSrc)
Default src to display when vertical is false, and src is unset. |
void |
setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.ImgSplitbarLogicalStructure s)
|
void |
setSkinImgDir(java.lang.String skinImgDir)
Default directory for skin images (those defined by the class), relative to the Page-wide skinDir. |
void |
setSrc(java.lang.String src)
The base filename for the image. |
void |
setVSrc(java.lang.String vSrc)
Default src to display when vertical is true, and src is unset. |
| Methods inherited from class com.smartgwt.client.widgets.Img |
|---|
getAltText, getHoverHTML, getImageHeight, getImageType, getImageWidth, getPrompt, getShowTitle, getSize, getUsePNGFix, resetSrc, setAltText, setDefaultProperties, setImageHeight, setImageType, setImageWidth, setLogicalStructure, setName, setPrompt, setShowTitle, setSize, setUsePNGFix |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, 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, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, 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(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
public static ImgSplitbar getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)
setJavaScriptObject in class Imgprotected com.google.gwt.core.client.JavaScriptObject create()
create in class Imgpublic void setCanCollapse(java.lang.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 java.lang.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 setCanDrag(java.lang.Boolean canDrag)
canDrag set to true to allow dragging of the split bar. Dragging the Splitbar will resize it's target
setCanDrag in class CanvascanDrag - canDrag Default value is trueDragdrop overview and related methods,
Drag create Examplepublic java.lang.Boolean getCanDrag()
canDrag set to true to allow dragging of the split bar. Dragging the Splitbar will resize it's target
getCanDrag in class CanvasDragdrop overview and related methods,
Drag create Example
public void setHSrc(java.lang.String hSrc)
throws java.lang.IllegalStateException
vertical is false, and src is unset.
hSrc - . See String. Default value is [SKIN]hgrip.png
java.lang.IllegalStateException - this property cannot be changed after the component has been createdsetSrc(java.lang.String)public java.lang.String getHSrc()
vertical is false, and src is unset.
StringgetSrc()
public void setSkinImgDir(java.lang.String skinImgDir)
throws java.lang.IllegalStateException
skinDir.
setSkinImgDir in class CanvasskinImgDir - . See SCImgURL. Default value is "images/SplitBar/"
java.lang.IllegalStateException - this property cannot be changed after the component has been createdImages overview and related methodspublic java.lang.String getSkinImgDir()
skinDir.
getSkinImgDir in class CanvasSCImgURLImages overview and related methods
public void setSrc(java.lang.String src)
throws java.lang.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 Imgsrc - . See String. Default value is null
java.lang.IllegalStateException - this property cannot be changed after the component has been createdAppearance overview and related methodspublic java.lang.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 ImgStringAppearance overview and related methods
public java.lang.Boolean getVertical()
throws java.lang.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.
java.lang.IllegalStateException - if widget has not yet been rendered.
public void setVSrc(java.lang.String vSrc)
throws java.lang.IllegalStateException
vertical is true, and src is unset.
vSrc - . See SCImgURL. Default value is [SKIN]vgrip.png
java.lang.IllegalStateException - this property cannot be changed after the component has been createdsetSrc(java.lang.String)public java.lang.String getVSrc()
vertical is true, and src is unset.
SCImgURLgetSrc()public static void setDefaultProperties(ImgSplitbar imgSplitbarProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
imgSplitbarProperties - properties that should be used as new defaults when instances of this class are createdpublic com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.ImgSplitbarLogicalStructure s)
public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
getLogicalStructure in interface LogicalStructuregetLogicalStructure in class Img
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||