|
|||||||||
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.
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 | |
---|---|
Splitbar()
|
|
Splitbar(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. |
Cursor |
getCursor()
Splitbars' cursors are set at init time based on whether they are to be used for vertical or horizontal resize. |
java.lang.String |
getGripImgSuffix()
part name for the 'grip' image if showGrip is true |
Cursor |
getHResizeCursor()
Cursor to display if this Splitbar is to be used for horizontal resize of widgets. |
java.lang.String |
getHSrc()
Base URL for the image if vertical is false and
src is unset. |
static Splitbar |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
java.lang.Boolean |
getShowClosedGrip()
If showGrip is true, this property determines whether the grip image
displayed should show the "Closed" state when the target
is hidden. |
java.lang.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. |
java.lang.Boolean |
getShowGrip()
Should we show a "grip" image floating above the center of this widget? |
java.lang.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. |
java.lang.String |
getSrc()
The base URL 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. |
Cursor |
getVResizeCursor()
Cursor to display if this Splitbar is to be used for vertical resize of widgets. |
java.lang.String |
getVSrc()
Base URL for the image if 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. |
void |
setCursor(Cursor cursor)
Splitbars' cursors are set at init time based on whether they are to be used for vertical or horizontal resize. |
void |
setGripImgSuffix(java.lang.String gripImgSuffix)
part name for 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(java.lang.String hSrc)
Base URL for the image if vertical is false and
src is unset. |
void |
setShowClosedGrip(java.lang.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(java.lang.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(java.lang.Boolean showGrip)
Should we show a "grip" image floating above the center of this widget? |
void |
setShowRollOverGrip(java.lang.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(java.lang.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(java.lang.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, setImageType, setItemBaseStyle, setShowTitle, setState, setState, setVertical |
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 Splitbar()
public Splitbar(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
public static Splitbar getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
protected com.google.gwt.core.client.JavaScriptObject create()
create
in class StretchImg
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.
getVertical
in class StretchImg
java.lang.IllegalStateException
- if widget has not yet been rendered.public void setSrc(java.lang.String src) throws java.lang.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 StretchImg
src
- src Default value is null
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic 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".
getSrc
in class StretchImg
public void setHSrc(java.lang.String hSrc) throws java.lang.IllegalStateException
vertical
is false and
src
is unset.
setHSrc
in class StretchImg
hSrc
- hSrc Default value is null
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getHSrc()
vertical
is false and
src
is unset.
getHSrc
in class StretchImg
public void setVSrc(java.lang.String vSrc) throws java.lang.IllegalStateException
vertical
is true and
src
is unset.
setVSrc
in class StretchImg
vSrc
- vSrc Default value is null
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getVSrc()
vertical
is true and
src
is unset.
getVSrc
in class StretchImg
public void setShowGrip(java.lang.Boolean showGrip) throws java.lang.IllegalStateException
Note : This is an advanced setting
setShowGrip
in class StretchImg
showGrip
- showGrip Default value is null
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getShowGrip()
getShowGrip
in class StretchImg
public void setGripImgSuffix(java.lang.String gripImgSuffix) throws java.lang.IllegalStateException
showGrip
is true
Note : This is an advanced setting
gripImgSuffix
- gripImgSuffix Default value is "grip"
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getGripImgSuffix()
showGrip
is true
public void setShowDownGrip(java.lang.Boolean showDownGrip) throws java.lang.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
showDownGrip
- showDownGrip Default value is null
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.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
public void setShowRollOverGrip(java.lang.Boolean showRollOverGrip) throws java.lang.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
showRollOverGrip
- showRollOverGrip Default value is null
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.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
public void setShowClosedGrip(java.lang.Boolean showClosedGrip) throws java.lang.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
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.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 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 Canvas
canDrag
- canDrag Default value is truepublic 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 Canvas
public 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 setCursor(Cursor cursor)
vResizeCursor
or hResizeCursor
rather than this property.
setCursor
in class Canvas
cursor
- cursor Default value is "hand"public Cursor getCursor()
vResizeCursor
or hResizeCursor
rather than this property.
getCursor
in class Canvas
public void setVResizeCursor(Cursor vResizeCursor) throws java.lang.IllegalStateException
vResizeCursor
- vResizeCursor Default value is "row-resize"
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic Cursor getVResizeCursor()
public void setHResizeCursor(Cursor hResizeCursor) throws java.lang.IllegalStateException
hResizeCursor
- hResizeCursor Default value is "col-resize"
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic Cursor getHResizeCursor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |