|
|||||||||
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.layout.Layout
com.smartgwt.client.widgets.toolbar.ToolStrip
public class ToolStrip
Base class for creating toolstrips like those found in browsers and office applications: a mixed set of controls
including ImgButton
, 'radio
button groups'
, MenuButton
, ComboBoxItem
, LayoutSpacer
, Label
and SelectItem
.
All of the
above components are placed in the 'members array'
to
form a ToolStrip. Note that the FormItem
mentioned above (ComboBox and
drop-down selects) need to be placed within a DynamicForm
as usual.
The special strings "separator" and "resizer" can be placed in the members array to create separators and resizers respectively.
Also see the ${isc.DocUtils.linkForExampleId('toolstrip')} example in the Feature Explorer.
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 | |
---|---|
ToolStrip()
|
|
ToolStrip(JavaScriptObject jsObj)
|
Method Summary | |
---|---|
void |
addMember(Canvas component)
Add a canvas to the layout, optionally at a specific position. |
void |
addMember(Canvas component,
int position)
Add a canvas to the layout, optionally at a specific position. |
protected JavaScriptObject |
create()
|
static ToolStrip |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getResizeBarClass()
Customized resizeBar with typical appearance for a ToolStrip |
int |
getResizeBarSize()
Thickness of the resizeBars in pixels |
String |
getSeparatorClass()
Class to create when the string "separator" appears in members . |
int |
getSeparatorSize()
Separator thickness in pixels |
String |
getStyleName()
The CSS class applied to this widget as a whole. |
Boolean |
getVertical()
Indicates whether the components are drawn horizontally from left to right (false), or vertically from top to bottom (true). |
void |
setResizeBarClass(String resizeBarClass)
Customized resizeBar with typical appearance for a ToolStrip |
void |
setResizeBarSize(int resizeBarSize)
Thickness of the resizeBars in pixels |
void |
setSeparatorClass(String separatorClass)
Class to create when the string "separator" appears in members . |
void |
setSeparatorSize(int separatorSize)
Separator thickness in pixels |
void |
setStyleName(String styleName)
The CSS class applied to this widget as a whole. |
void |
setVertical(Boolean vertical)
Indicates whether the components are drawn horizontally from left to right (false), or vertically from top to bottom (true). |
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 ToolStrip()
public ToolStrip(JavaScriptObject jsObj)
Method Detail |
---|
public static ToolStrip getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create
in class Layout
public void setStyleName(String styleName)
setStyleName
in class Canvas
styleName
- styleName Default value is "toolStrip"public String getStyleName()
getStyleName
in class Canvas
public void setVertical(Boolean vertical)
setVertical
in class Layout
vertical
- vertical Default value is falsepublic Boolean getVertical()
getVertical
in class Layout
public void setResizeBarClass(String resizeBarClass)
setResizeBarClass
in class Layout
resizeBarClass
- resizeBarClass Default value is "ToolStripResizer"public String getResizeBarClass()
getResizeBarClass
in class Layout
public void setResizeBarSize(int resizeBarSize) throws IllegalStateException
Note : This is an advanced setting
setResizeBarSize
in class Layout
resizeBarSize
- resizeBarSize Default value is 14
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getResizeBarSize()
getResizeBarSize
in class Layout
public void setSeparatorClass(String separatorClass)
members
.
separatorClass
- separatorClass Default value is "ToolStripSeparator"public String getSeparatorClass()
members
.
public void setSeparatorSize(int separatorSize) throws IllegalStateException
separatorSize
- separatorSize Default value is 8
IllegalStateException
- this property cannot be changed after the component has been createdpublic int getSeparatorSize()
public void addMember(Canvas component, int position)
addMember
in class Layout
component
- the canvas object to be added to the layoutposition
- the position in the layout to place newMember (starts with 0); if omitted, it will be added at
the last positionpublic void addMember(Canvas component)
addMember
in class Layout
component
- the canvas object to be added to the layout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |