|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.github.gwtbootstrap.client.ui.base.ComplexWidget
com.github.gwtbootstrap.client.ui.base.DropdownBase
public abstract class DropdownBase
Base class for dropdown widgets.
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.user.client.ui.HasWidgets |
---|
HasWidgets.ForIsWidget |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
---|
IndexedPanel.ForIsWidget |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
DropdownBase(String type)
Creates a new widget of the given type. |
Method Summary | |
---|---|
void |
add(Widget widget)
Adds a widget to the dropdown menu. |
HandlerRegistration |
addChangeHandler(ChangeHandler handler)
|
HandlerRegistration |
addClickHandler(ClickHandler handler)
|
protected void |
addWidget(Widget widget)
Adds a widget to the the dropdown widget, not to the dropdown menu. |
void |
clear()
|
protected abstract IconAnchor |
createTrigger()
Implement this method to create the trigger appropriate for your widget. |
NavLink |
getLastSelectedNavLink()
Method to get the NavLink that has been clicked most recently. |
String |
getText()
|
protected void |
onLoad()
|
void |
setDropup(boolean dropup)
Set dropup style. |
void |
setRightDropdown(boolean rightDropdown)
Pull the dropdown menu to right |
void |
setText(String text)
Sets the text of the dropdown trigger. |
Methods inherited from class com.github.gwtbootstrap.client.ui.base.ComplexWidget |
---|
addStyle, insert, removeStyle, setHideOn, setShowOn, setStyle |
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
---|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
iterator, remove |
Constructor Detail |
---|
public DropdownBase(String type)
type
- the HTML tag to be used for the widgetMethod Detail |
---|
public void setText(String text)
setText
in interface HasText
text
- public String getText()
getText
in interface HasText
protected abstract IconAnchor createTrigger()
IconAnchor
or a subtype.
public void setDropup(boolean dropup)
dropup
- true:Set Dropup false:Un-set Dropupprotected void onLoad()
onLoad
in class Widget
public void add(Widget widget)
add
in interface HasWidgets
add
in class ComplexWidget
widget
- the widget that will be added to the menuaddWidget(Widget)
public HandlerRegistration addChangeHandler(ChangeHandler handler)
addChangeHandler
in interface HasChangeHandlers
protected void addWidget(Widget widget)
Use add(Widget)
if you want to add a widget to the dropdown
menu.
widget
- the widget to be added.public void setRightDropdown(boolean rightDropdown)
rightDropdown
- true
pull to right, otherwise to left. Default is
false
public NavLink getLastSelectedNavLink()
NavLink
that has been clicked most recently.
null
if none have been
clicked.public void clear()
clear
in interface HasWidgets
clear
in class Panel
public HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler
in interface HasClickHandlers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |