|
|||||||||
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(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
ButtonItem(java.lang.String name)
|
|
ButtonItem(java.lang.String name,
java.lang.String title)
|
Method Summary | |
---|---|
HandlerRegistration |
addClickHandler(ClickHandler handler)
Add a click handler. |
java.lang.Boolean |
getAutoFit()
Should the button auto fit to its title. |
java.lang.String |
getBaseStyle()
Optional baseStyle will be applied to the button. |
Canvas |
getCanvas()
The canvas that will be displayed inside this item. |
java.lang.Boolean |
getEndRow()
These items are in a row by themselves by default |
java.lang.String |
getIcon()
Return the icon. |
static ButtonItem |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
java.lang.Boolean |
getShowTitle()
Buttons do not show a title by default. |
java.lang.Boolean |
getStartRow()
These items are in a row by themselves by default |
void |
setAutoFit(java.lang.Boolean autoFit)
Should the button auto fit to its title. |
void |
setBaseStyle(java.lang.String baseStyle)
Optional baseStyle will be applied to the button. |
void |
setEndRow(java.lang.Boolean endRow)
These items are in a row by themselves by default |
void |
setIcon(java.lang.String icon)
Set the icon. |
void |
setShowTitle(java.lang.Boolean showTitle)
Buttons do not show a title by default. |
void |
setStartRow(java.lang.Boolean startRow)
These items are in a row by themselves by default |
Methods inherited from class com.smartgwt.client.widgets.form.fields.CanvasItem |
---|
setCanvas |
Methods inherited from class com.smartgwt.client.core.RefDataClass |
---|
getRef, getRef |
Methods inherited from class com.smartgwt.client.core.DataClass |
---|
doAddHandler, fireEvent, getAttributeAsIntArray, getAttributeAsMap, getAttributeAsObject, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, 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(com.google.gwt.core.client.JavaScriptObject jsObj)
public ButtonItem(java.lang.String name)
public ButtonItem(java.lang.String name, java.lang.String title)
Method Detail |
---|
public static ButtonItem getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setBaseStyle(java.lang.String baseStyle)
baseStyle
will be applied to the button.
baseStyle
- baseStyle Default value is nullpublic java.lang.String getBaseStyle()
baseStyle
will be applied to the button.
public void setShowTitle(java.lang.Boolean showTitle)
setShowTitle
in class FormItem
showTitle
- showTitle Default value is falsepublic java.lang.Boolean getShowTitle()
getShowTitle
in class FormItem
public void setStartRow(java.lang.Boolean startRow)
setStartRow
in class FormItem
startRow
- startRow Default value is truepublic java.lang.Boolean getStartRow()
getStartRow
in class FormItem
public void setEndRow(java.lang.Boolean endRow)
setEndRow
in class FormItem
endRow
- endRow Default value is truepublic java.lang.Boolean getEndRow()
getEndRow
in class FormItem
public void setAutoFit(java.lang.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 java.lang.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 HandlerRegistration addClickHandler(ClickHandler handler)
Called when a ButtonItem is clicked on.
addClickHandler
in interface HasClickHandlers
addClickHandler
in class FormItem
handler
- the click handler
HandlerRegistration
used to remove this handlerpublic void setIcon(java.lang.String icon)
icon
- the iconpublic java.lang.String getIcon()
public Canvas getCanvas()
CanvasItem
canvasProperties
and
canvasConstructor
getCanvas
in class CanvasItem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |