|
||||||||||
| 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.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.cell.CellComponent<C>
com.sencha.gxt.widget.core.client.button.CellButtonBase<C>
public class CellButtonBase<C>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor |
|---|
Editor.Ignore, Editor.Path |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
CellButtonBase()
|
|
CellButtonBase(ButtonCell<C> cell)
|
|
CellButtonBase(ButtonCell<C> cell,
C initialValue)
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addArrowSelectHandler(ArrowSelectEvent.ArrowSelectHandler handler)
Adds a ArrowSelectEvent.ArrowSelectHandler handler for ArrowSelectEvent
events. |
HandlerRegistration |
addBeforeSelectHandler(BeforeSelectEvent.BeforeSelectHandler handler)
Adds a BeforeSelectEvent.BeforeSelectHandler handler for BeforeSelectEvent events. |
HandlerRegistration |
addSelectHandler(SelectEvent.SelectHandler handler)
Adds a SelectEvent.SelectHandler handler for SelectEvent events. |
ButtonCell.ButtonArrowAlign |
getArrowAlign()
Returns the button's arrow alignment. |
java.lang.String |
getHTML()
|
ImageResource |
getIcon()
Returns the icon. |
ButtonCell.IconAlign |
getIconAlign()
Returns the button's icon alignment. |
Menu |
getMenu()
Returns the button's menu (if it has one). |
Style.AnchorAlignment |
getMenuAlign()
Returns the button's menu alignment. |
int |
getMinWidth()
Returns the button's minimum width. |
boolean |
getMouseEvents()
Returns false if mouse over effect is disabled. |
ButtonCell.ButtonScale |
getScale()
Returns the button's scale. |
java.lang.String |
getText()
|
void |
hideMenu()
Hide this button's menu (if it has one). |
void |
onBrowserEvent(Event event)
|
void |
setArrowAlign(ButtonCell.ButtonArrowAlign arrowAlign)
Sets the arrow alignment (defaults to RIGHT). |
void |
setHTML(SafeHtml html)
|
void |
setHTML(java.lang.String html)
|
void |
setIcon(ImageResource icon)
Sets the icon. |
void |
setIconAlign(ButtonCell.IconAlign iconAlign)
Sets the icon alignment (defaults to LEFT). |
void |
setMenu(Menu menu)
Sets the button's menu. |
void |
setMenuAlign(Style.AnchorAlignment menuAlign)
Sets the position to align the menu to, see XElement.alignTo(com.google.gwt.dom.client.Element, com.sencha.gxt.core.client.Style.AnchorAlignment, int[]) for
more details (defaults to 'tl-bl?', pre-render). |
void |
setMinWidth(int minWidth)
Sets he minimum width for this button (used to give a set of buttons a common width) |
void |
setMouseEvents(boolean handleMouseEvents)
False to disable visual cues on mouseover, mouseout and mousedown (defaults to true). |
void |
setScale(ButtonCell.ButtonScale scale)
Sets the button's scale. |
void |
setText(java.lang.String text)
|
void |
showMenu()
Show this button's menu (if it has one). |
| Methods inherited from class com.sencha.gxt.widget.core.client.cell.CellComponent |
|---|
addValueChangeHandler, getCell, getElement, getKeyProvider, getValue, redraw, setValue, setValue, setValue |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public CellButtonBase()
public CellButtonBase(ButtonCell<C> cell)
public CellButtonBase(ButtonCell<C> cell,
C initialValue)
| Method Detail |
|---|
public HandlerRegistration addArrowSelectHandler(ArrowSelectEvent.ArrowSelectHandler handler)
ArrowSelectEvent.HasArrowSelectHandlersArrowSelectEvent.ArrowSelectHandler handler for ArrowSelectEvent
events.
addArrowSelectHandler in interface ArrowSelectEvent.HasArrowSelectHandlershandler - the handler
public HandlerRegistration addBeforeSelectHandler(BeforeSelectEvent.BeforeSelectHandler handler)
BeforeSelectEvent.HasBeforeSelectHandlersBeforeSelectEvent.BeforeSelectHandler handler for BeforeSelectEvent events.
addBeforeSelectHandler in interface BeforeSelectEvent.HasBeforeSelectHandlershandler - the handler
public HandlerRegistration addSelectHandler(SelectEvent.SelectHandler handler)
SelectEvent.HasSelectHandlersSelectEvent.SelectHandler handler for SelectEvent events.
addSelectHandler in interface SelectEvent.HasSelectHandlershandler - the handler
public ButtonCell.ButtonArrowAlign getArrowAlign()
public java.lang.String getHTML()
getHTML in interface HasHTMLpublic ImageResource getIcon()
HasIcon
getIcon in interface HasIconpublic ButtonCell.IconAlign getIconAlign()
public Menu getMenu()
public Style.AnchorAlignment getMenuAlign()
public int getMinWidth()
public boolean getMouseEvents()
public ButtonCell.ButtonScale getScale()
public java.lang.String getText()
getText in interface HasTextpublic void hideMenu()
public void onBrowserEvent(Event event)
onBrowserEvent in interface EventListeneronBrowserEvent in class CellComponent<C>public void setArrowAlign(ButtonCell.ButtonArrowAlign arrowAlign)
arrowAlign - the arrow alignmentpublic void setHTML(SafeHtml html)
setHTML in interface HasSafeHtmlpublic void setHTML(java.lang.String html)
setHTML in interface HasHTMLpublic void setIcon(ImageResource icon)
HasIcon
setIcon in interface HasIconicon - the iconpublic void setIconAlign(ButtonCell.IconAlign iconAlign)
iconAlign - the icon alignment
@UiChild(limit=1,
tagname="menu")
public void setMenu(Menu menu)
menu - the menupublic void setMenuAlign(Style.AnchorAlignment menuAlign)
XElement.alignTo(com.google.gwt.dom.client.Element, com.sencha.gxt.core.client.Style.AnchorAlignment, int[]) for
more details (defaults to 'tl-bl?', pre-render).
menuAlign - the menu alignmentpublic void setMinWidth(int minWidth)
minWidth - the minimum widthpublic void setMouseEvents(boolean handleMouseEvents)
handleMouseEvents - false to disable mouse over changespublic void setScale(ButtonCell.ButtonScale scale)
scale - the scalepublic void setText(java.lang.String text)
setText in interface HasTextpublic void showMenu()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||