|
|||||||||
| 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
com.smartgwt.client.widgets.Splitbar
public class Splitbar
Subclass of the StretchImg class. As with the ImgSplitbar 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 ImgSplitbar
class.
To specify the resizeBar class for some layout, use the resizeBarClass property.
Layout,
ImgSplitbar| 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 | |
|---|---|
Splitbar()
|
|
Splitbar(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. |
Cursor |
getCursor()
Splitbars' cursors are set at init time based on whether they are to be used for vertical or horizontal resize. |
String |
getGripImgSuffix()
Suffix used the 'grip' image if showGrip is true. |
Cursor |
getHResizeCursor()
Cursor to display if this Splitbar is to be used for horizontal resize of widgets. |
String |
getHSrc()
Base URL for the image if vertical is false and src is unset. |
static Splitbar |
getOrCreateRef(JavaScriptObject jsObj)
|
Boolean |
getShowClosedGrip()
If showGrip is true, this property determines whether the grip
image displayed should show the "Closed" state when the target is hidden. |
Boolean |
getShowDownGrip()
If showGrip is true, this property determines whether to show
the 'Down' state on the grip image when the user mousedown's on this widget. |
Boolean |
getShowGrip()
Should we show a "grip" image floating above the center of this widget? |
Boolean |
getShowRollOverGrip()
If showGrip is true, this property determines whether to show
the 'Over' state on the grip image when the user rolls over on this widget. |
String |
getSrc()
The base URL 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. |
Cursor |
getVResizeCursor()
Cursor to display if this Splitbar is to be used for vertical resize of widgets. |
String |
getVSrc()
Base URL for the image if 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 |
setCursor(Cursor cursor)
Splitbars' cursors are set at init time based on whether they are to be used for vertical or horizontal resize. |
static void |
setDefaultProperties(Splitbar splitbarProperties)
Class level method to set the default properties of this class. |
void |
setGripImgSuffix(String gripImgSuffix)
Suffix used the 'grip' image if showGrip is true. |
void |
setHResizeCursor(Cursor hResizeCursor)
Cursor to display if this Splitbar is to be used for horizontal resize of widgets. |
void |
setHSrc(String hSrc)
Base URL for the image if vertical is false and src is unset. |
void |
setShowClosedGrip(Boolean showClosedGrip)
If showGrip is true, this property determines whether the grip
image displayed should show the "Closed" state when the target is hidden. |
void |
setShowDownGrip(Boolean showDownGrip)
If showGrip is true, this property determines whether to show
the 'Down' state on the grip image when the user mousedown's on this widget. |
void |
setShowGrip(Boolean showGrip)
Should we show a "grip" image floating above the center of this widget? |
void |
setShowRollOverGrip(Boolean showRollOverGrip)
If showGrip is true, this property determines whether to show
the 'Over' state on the grip image when the user rolls over on this widget. |
void |
setSrc(String src)
The base URL for the image. |
void |
setVResizeCursor(Cursor vResizeCursor)
Cursor to display if this Splitbar is to be used for vertical resize of widgets. |
void |
setVSrc(String vSrc)
Base URL for the image if vertical is true and src is unset. |
| Methods inherited from class com.smartgwt.client.widgets.StretchImg |
|---|
getCapSize, getImageType, getItemBaseStyle, getShowTitle, setCapSize, setDefaultProperties, setImageType, setItemBaseStyle, setShowTitle, setState, setState, setVertical |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, 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, setStyleDependentName, setStyleName, 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 Splitbar()
public Splitbar(JavaScriptObject jsObj)
| Method Detail |
|---|
public static Splitbar getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create in class StretchImgpublic 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 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 CanvascanDrag - canDrag Default value is trueDragdrop overview and related methods,
Drag create Examplepublic 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 Examplepublic void setCursor(Cursor cursor)
vResizeCursor
or hResizeCursor rather than this property.
setCursor in class Canvascursor - cursor Default value is "hand"Cues overview and related methods,
Drag create Example,
Cursors Examplepublic Cursor getCursor()
vResizeCursor
or hResizeCursor rather than this property.
getCursor in class CanvasCues overview and related methods,
Drag create Example,
Cursors Example
public void setGripImgSuffix(String gripImgSuffix)
throws IllegalStateException
showGrip is true.
Note : This is an advanced setting
setGripImgSuffix in class StretchImggripImgSuffix - gripImgSuffix Default value is "grip"
IllegalStateException - this property cannot be changed after the component has been createdpublic String getGripImgSuffix()
showGrip is true.
getGripImgSuffix in class StretchImg
public void setHResizeCursor(Cursor hResizeCursor)
throws IllegalStateException
hResizeCursor - hResizeCursor Default value is "col-resize"
IllegalStateException - this property cannot be changed after the component has been createdpublic Cursor getHResizeCursor()
public void setHSrc(String hSrc)
throws IllegalStateException
vertical is false and src is unset.
setHSrc in class StretchImghSrc - hSrc Default value is null
IllegalStateException - this property cannot be changed after the component has been createdStretchImg.setSrc(java.lang.String),
StretchImg.setVSrc(java.lang.String),
Appearance overview and related methodspublic String getHSrc()
vertical is false and src is unset.
getHSrc in class StretchImgStretchImg.getSrc(),
StretchImg.getVSrc(),
Appearance overview and related methods
public void setShowClosedGrip(Boolean showClosedGrip)
throws IllegalStateException
showGrip is true, this property determines whether the grip
image displayed should show the "Closed" state when the target is hidden.
Note : This is an advanced setting
showClosedGrip - showClosedGrip Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getShowClosedGrip()
showGrip is true, this property determines whether the grip
image displayed should show the "Closed" state when the target is hidden.
public void setShowDownGrip(Boolean showDownGrip)
throws IllegalStateException
showGrip is true, this property determines whether to show
the 'Down' state on the grip image when the user mousedown's on this widget. Has no effect if showDown is false.
Note : This is an advanced setting
setShowDownGrip in class StretchImgshowDownGrip - showDownGrip Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getShowDownGrip()
showGrip is true, this property determines whether to show
the 'Down' state on the grip image when the user mousedown's on this widget. Has no effect if showDown is false.
getShowDownGrip in class StretchImg
public void setShowGrip(Boolean showGrip)
throws IllegalStateException
Note : This is an advanced setting
setShowGrip in class StretchImgshowGrip - showGrip Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getShowGrip()
getShowGrip in class StretchImg
public void setShowRollOverGrip(Boolean showRollOverGrip)
throws IllegalStateException
showGrip is true, this property determines whether to show
the 'Over' state on the grip image when the user rolls over on this widget. Has no effect if showRollOver is false.
Note : This is an advanced setting
setShowRollOverGrip in class StretchImgshowRollOverGrip - showRollOverGrip Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getShowRollOverGrip()
showGrip is true, this property determines whether to show
the 'Over' state on the grip image when the user rolls over on this widget. Has no effect if showRollOver is false.
getShowRollOverGrip in class StretchImg
public void setSrc(String src)
throws IllegalStateException
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".
setSrc in class StretchImgsrc - src Default value is null
IllegalStateException - this property cannot be changed after the component has been createdStretchImg.setHSrc(java.lang.String),
StretchImg.setVSrc(java.lang.String),
Appearance overview and related methodspublic 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".
getSrc in class StretchImgStretchImg.getHSrc(),
StretchImg.getVSrc(),
Appearance overview and related methods
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.
getVertical in class StretchImgIllegalStateException - if widget has not yet been rendered.Appearance overview and related methods
public void setVResizeCursor(Cursor vResizeCursor)
throws IllegalStateException
vResizeCursor - vResizeCursor Default value is "row-resize"
IllegalStateException - this property cannot be changed after the component has been createdpublic Cursor getVResizeCursor()
public void setVSrc(String vSrc)
throws IllegalStateException
vertical is true and src is unset.
setVSrc in class StretchImgvSrc - vSrc Default value is null
IllegalStateException - this property cannot be changed after the component has been createdStretchImg.setSrc(java.lang.String),
StretchImg.setVSrc(java.lang.String),
Appearance overview and related methodspublic String getVSrc()
vertical is true and src is unset.
getVSrc in class StretchImgStretchImg.getSrc(),
StretchImg.getVSrc(),
Appearance overview and related methodspublic static void setDefaultProperties(Splitbar splitbarProperties)
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.
splitbarProperties - properties that should be used as new defaults when instances of this class are created
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||