|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.form.fields.FormItem
com.smartgwt.client.widgets.form.fields.CanvasItem
com.smartgwt.client.widgets.form.fields.ButtonItem
public class ButtonItem
FormItem for adding a Button to a form.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
ButtonItem()
|
|
ButtonItem(JavaScriptObject jsObj)
|
|
ButtonItem(String name)
|
|
ButtonItem(String name,
String title)
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addClickHandler(ClickHandler handler)
Add a click handler. |
Boolean |
getAutoFit()
Should the button auto fit to its title. |
String |
getBaseStyle()
Optional baseStyle will be applied to the button. |
Canvas |
getCanvas()
The canvas that will be displayed inside this item. |
Boolean |
getEndRow()
These items are in a row by themselves by default |
String |
getIcon()
Optional icon image to display on the button for this item. |
static ButtonItem |
getOrCreateRef(JavaScriptObject jsObj)
|
Boolean |
getShowTitle()
Buttons do not show a title by default. |
Boolean |
getStartRow()
These items are in a row by themselves by default |
void |
setAutoFit(Boolean autoFit)
Should the button auto fit to its title. |
void |
setBaseStyle(String baseStyle)
Optional baseStyle will be applied to the button. |
void |
setButtonProperties(Button buttonProperties)
Custom Properties to apply to the button item. |
void |
setEndRow(Boolean endRow)
These items are in a row by themselves by default |
void |
setIcon(String icon)
Optional icon image to display on the button for this item. |
void |
setJavaScriptObject(JavaScriptObject jsObj)
|
void |
setShowTitle(Boolean showTitle)
Buttons do not show a title by default. |
void |
setStartRow(Boolean startRow)
These items are in a row by themselves by default |
| Methods inherited from class com.smartgwt.client.widgets.form.fields.CanvasItem |
|---|
addShowValueHandler, createCanvas, getApplyPromptToCanvas, getAutoDestroy, getEditCriteriaInInnerForm, getOverflow, getPrompt, getShouldSaveValue, hasAdvancedCriteria, setApplyPromptToCanvas, setAutoDestroy, setCanEditCriterionPredicate, setCanvas, setCriterionGetter, setCriterionSetter, setEditCriteriaInInnerForm, setOverflow, setPrompt, setShouldSaveValue, setupCanvasConstructor, storeValue, storeValue, storeValue |
| Methods inherited from class com.smartgwt.client.core.RefDataClass |
|---|
getRef, getRef |
| Methods inherited from class com.smartgwt.client.core.DataClass |
|---|
doAddHandler, fireEvent, getAttributeAsDoubleArray, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute |
| Methods inherited from class com.smartgwt.client.core.JsObject |
|---|
setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public ButtonItem()
public ButtonItem(JavaScriptObject jsObj)
public ButtonItem(String name)
public ButtonItem(String name,
String title)
| Method Detail |
|---|
public static ButtonItem getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject in class CanvasItempublic void setAutoFit(Boolean autoFit)
autoFit
attribute. Note that if an explicit width or height is specified for this item, it will be respected, disabling autoFit
behavior
autoFit - autoFit Default value is truepublic Boolean getAutoFit()
autoFit
attribute. Note that if an explicit width or height is specified for this item, it will be respected, disabling autoFit
behavior
public void setBaseStyle(String baseStyle)
baseStyle will be applied to the button.
baseStyle - . See CSSStyleName. Default value is nullAppearance overview and related methodspublic String getBaseStyle()
baseStyle will be applied to the button.
CSSStyleNameAppearance overview and related methodspublic void setEndRow(Boolean endRow)
setEndRow in class FormItemendRow - endRow Default value is trueFormLayout overview and related methodspublic Boolean getEndRow()
getEndRow in class FormItemFormLayout overview and related methodspublic void setIcon(String icon)
icon.
icon - . See SCImgURL. Default value is nullAppearance overview and related methodspublic String getIcon()
icon.
SCImgURLAppearance overview and related methodspublic void setShowTitle(Boolean showTitle)
setShowTitle in class FormItemshowTitle - showTitle Default value is falseAppearance overview and related methodspublic Boolean getShowTitle()
getShowTitle in class FormItemAppearance overview and related methodspublic void setStartRow(Boolean startRow)
setStartRow in class FormItemstartRow - startRow Default value is trueFormLayout overview and related methodspublic Boolean getStartRow()
getStartRow in class FormItemFormLayout overview and related methodspublic HandlerRegistration addClickHandler(ClickHandler handler)
Called when a ButtonItem is clicked on.
addClickHandler in interface HasClickHandlersaddClickHandler in class FormItemhandler - the click handler
HandlerRegistration used to remove this handlerpublic Canvas getCanvas()
CanvasItemCanvasItem.createCanvas to dynamically create the canvas when the FormItem is initialized. If canvas
and createCanvas() are unspecified, the canvas for this item will be auto-created using the overrideable
defaults: canvasProperties and canvasConstructor
Note that canvasItem will be set on the canvas to point back to this item.
getCanvas in class CanvasItempublic void setButtonProperties(Button buttonProperties)
buttonProperties - properties to apply to the button item.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||