|
|||||||||
| 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.layout.VLayout
com.smartgwt.client.widgets.toolbar.ToolStripGroup
public class ToolStripGroup
A widget that groups other controls for use in tool-strips.
| 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 | |
|---|---|
ToolStripGroup()
|
|
ToolStripGroup(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
void |
addControl(Canvas control)
Adds a control to this toolStripGroup, creating a new column if necessary, according to the control's rowSpan attribute and the group's numRows attribute. |
void |
addControl(Canvas control,
int index)
Adds a control to this toolStripGroup, creating a new column if necessary, according to the control's rowSpan attribute and the group's numRows attribute. |
void |
addControls(Canvas... controls)
Adds an array of controls to this group, creating new columns as necessary according to each control's rowSpan attribute and the group's numRows attribute. |
protected JavaScriptObject |
create()
|
String |
getBodyConstructor()
Smart GWT class for the body. |
Canvas[] |
getControls()
The array of controls to show in this group. |
String |
getLabelConstructor()
Smart GWT class for the title label. |
int |
getNumRows()
The number of rows of controls to display in each column. |
static ToolStripGroup |
getOrCreateRef(JavaScriptObject jsObj)
|
int |
getRowHeight()
The height of rows in each column. |
String |
getStyleName()
CSS class applied to this ToolStripGroup. |
Alignment |
getTitleAlign()
Controls the horizontal alignment of the group-title in its label. |
int |
getTitleHeight()
The height of the title label in this group. |
VerticalAlignment |
getTitleOrientation()
Controls the horizontal alignment of the group-title in its label. |
String |
getTitleStyle()
CSS class applied to this ToolStripGroup. |
void |
removeControl(Canvas control)
Removes a control from this toolStripGroup, destroying an existing column if this is the last widget in that column. |
void |
setBodyConstructor(String bodyConstructor)
Smart GWT class for the body. |
void |
setControlColumn(Canvas control)
Return the column widget that contains the passed control. |
void |
setControls(Canvas... controls)
The array of controls to show in this group. |
static void |
setDefaultProperties(ToolStripGroup toolStripGroupProperties)
Class level method to set the default properties of this class. |
void |
setLabelConstructor(String labelConstructor)
Smart GWT class for the title label. |
void |
setNumRows(int numRows)
The number of rows of controls to display in each column. |
void |
setRowHeight(int rowHeight)
The height of rows in each column. |
void |
setShowTitle(boolean showTitle)
This method forcibly shows or hides this group's title after initial draw. |
void |
setStyleName(String styleName)
CSS class applied to this ToolStripGroup. |
void |
setTitle(String title)
Sets the header-text for this group. |
void |
setTitleAlign(Alignment titleAlign)
Controls the horizontal alignment of the group-title in its label. |
void |
setTitleHeight(int titleHeight)
The height of the title label in this group. |
void |
setTitleOrientation(VerticalAlignment titleOrientation)
Controls the horizontal alignment of the group-title in its label. |
void |
setTitleStyle(String titleStyle)
CSS class applied to this ToolStripGroup. |
| Methods inherited from class com.smartgwt.client.widgets.layout.VLayout |
|---|
setDefaultProperties |
| 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, 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, 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 ToolStripGroup()
public ToolStripGroup(JavaScriptObject jsObj)
| Method Detail |
|---|
public static ToolStripGroup getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create in class VLayout
public void setBodyConstructor(String bodyConstructor)
throws IllegalStateException
Note : This is an advanced setting
bodyConstructor - bodyConstructor Default value is "HLayout"
IllegalStateException - this property cannot be changed after the component has been createdpublic String getBodyConstructor()
public void setLabelConstructor(String labelConstructor)
throws IllegalStateException
Note : This is an advanced setting
labelConstructor - labelConstructor Default value is "Label"
IllegalStateException - this property cannot be changed after the component has been createdpublic String getLabelConstructor()
public void setNumRows(int numRows)
numRows - numRows Default value is 1public int getNumRows()
public void setRowHeight(int rowHeight)
rowHeight - rowHeight Default value is 20public int getRowHeight()
public void setStyleName(String styleName)
setStyleName in class CanvasstyleName - styleName Default value is "toolStripGroup"Appearance overview and related methods,
CSS styles Examplepublic String getStyleName()
getStyleName in class CanvasAppearance overview and related methods,
CSS styles Examplepublic void setTitleAlign(Alignment titleAlign)
groupTitleAlign on the containing
ToolStrip.
titleAlign - the new alignment for the text, left or right. Default value is "center"public Alignment getTitleAlign()
groupTitleAlign on the containing
ToolStrip.
public void setTitleHeight(int titleHeight)
title label in this group.
titleHeight - titleHeight Default value is 18public int getTitleHeight()
title label in this group.
public void setTitleOrientation(VerticalAlignment titleOrientation)
groupTitleOrientation on the
containing ToolStrip.
titleOrientation - the new orientation for the title, either bottom or top. Default value is "top"public VerticalAlignment getTitleOrientation()
groupTitleOrientation on the
containing ToolStrip.
public void setTitleStyle(String titleStyle)
titleStyle - titleStyle Default value is "toolStripGroupTitle"public String getTitleStyle()
public void addControl(Canvas control)
numRows attribute.
control - a widget to add to this group
public void addControl(Canvas control,
int index)
numRows attribute.
control - a widget to add to this groupindex - optional insertion index for this controlpublic void removeControl(Canvas control)
control - a widget to remove from this grouppublic void setControlColumn(Canvas control)
control - the control to find in this grouppublic void setShowTitle(boolean showTitle)
showTitle - should be show the title be shown or hidden?public void setTitle(String title)
setTitle in class Canvastitle - The new title for this grouppublic static void setDefaultProperties(ToolStripGroup toolStripGroupProperties)
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.
toolStripGroupProperties - properties that should be used as new defaults when instances of this class are created
public void setControls(Canvas... controls)
throws IllegalStateException
controls - an array of widgets to add to this group. Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Canvas[] getControls()
public void addControls(Canvas... controls)
controls - an array of widgets to add to this group
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||