|
||||||||||
| 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.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
org.gwtbootstrap3.client.ui.base.ComplexWidget
org.gwtbootstrap3.client.ui.html.Div
org.gwtbootstrap3.client.ui.Modal
public class Modal
Modal dialog.
<b:Modal title="Important information" b:id="modal1">
<b:ModalBody>
<g:HTML>Lorem ipsum...</g:HTML>
</b:ModalBody>
<b:ModalFooter>
<b:Button type="PRIMARY">Do something</b:Button>
<b:Button type="DANGER" dismiss="MODAL">Close</b:Button>
</b:ModalFooter>
</b:Modal>
<b:Button target="#modal1" toggle="MODAL">Show modal</b:Button>
It's also possible to specify a custom modal header:
<b:Modal>
<b:ModalHeader>
<g:HTML>
<h4>Custom header</h4>
</g:HTML>
</b:ModalHeader>
...
</b:Modal>
ModalHeader,
ModalBody,
ModalFooter,
ModalShowEvent,
ModalShownEvent,
ModalHideEvent,
ModalHiddenEvent| 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.IndexedPanel |
|---|
IndexedPanel.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Modal()
|
|
| Method Summary | |
|---|---|
void |
add(Widget w)
|
HandlerRegistration |
addHiddenHandler(ModalHiddenHandler modalHiddenHandler)
|
HandlerRegistration |
addHideHandler(ModalHideHandler modalHideHandler)
|
HandlerRegistration |
addShowHandler(ModalShowHandler modalShowHandler)
|
HandlerRegistration |
addShownHandler(ModalShownHandler modalShownHandler)
|
void |
hide()
|
boolean |
isClosable()
|
protected void |
onHidden(Event evt)
Can be override by subclasses to handle Modal's "hidden" event however it's recommended to add an event handler to the modal. |
protected void |
onHide(Event evt)
Can be override by subclasses to handle Modal's "hide" event however it's recommended to add an event handler to the modal. |
protected void |
onLoad()
|
protected void |
onShow(Event evt)
Can be override by subclasses to handle Modal's "show" event however it's recommended to add an event handler to the modal. |
protected void |
onShown(Event evt)
Can be override by subclasses to handle Modal's "shown" event however it's recommended to add an event handler to the modal. |
void |
setClosable(boolean closable)
|
void |
setDataBackdrop(ModalBackdrop backdrop)
Sets backdrop of modal. |
void |
setDataKeyboard(boolean keyboard)
|
void |
setFade(boolean fade)
If set Modal will fade in/out. |
void |
setHideOtherModals(boolean hideOtherModals)
If set to true, when the modal is shown it will force hide all other modals |
void |
setRemoveOnHide(boolean removeOnHide)
If set to true, will remove the modal from the DOM completely and unbind any events to the modal |
void |
setSize(ModalSize size)
|
void |
setTitle(String title)
|
void |
setWidth(String width)
|
void |
show()
|
void |
toggle()
|
| Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget |
|---|
getId, getPull, insert, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
|---|
add, 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, clear, 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, unsinkEvents |
| 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, setVisible, setVisible, sinkBitlessEvent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Modal()
| Method Detail |
|---|
public void setWidth(String width)
setWidth in class UIObjectpublic void setSize(ModalSize size)
protected void onLoad()
onLoad in class Widgetpublic void add(Widget w)
ComplexWidget
add in interface HasWidgetsadd in class ComplexWidgetpublic void setTitle(String title)
setTitle in class UIObjectpublic void setClosable(boolean closable)
setClosable in interface IsClosablepublic boolean isClosable()
isClosable in interface IsClosablepublic void setHideOtherModals(boolean hideOtherModals)
hideOtherModals - - true to force hide other modals, false to keep them shownpublic void setRemoveOnHide(boolean removeOnHide)
removeOnHide - - true to remove modal and unbind events on hide, false to keep it in the DOMpublic void setFade(boolean fade)
fade - If true modal will fade in/outpublic void setDataBackdrop(ModalBackdrop backdrop)
backdrop - Backdrop of modalModalBackdroppublic void setDataKeyboard(boolean keyboard)
public void toggle()
public void show()
public void hide()
public HandlerRegistration addShowHandler(ModalShowHandler modalShowHandler)
public HandlerRegistration addShownHandler(ModalShownHandler modalShownHandler)
public HandlerRegistration addHideHandler(ModalHideHandler modalHideHandler)
public HandlerRegistration addHiddenHandler(ModalHiddenHandler modalHiddenHandler)
protected void onShow(Event evt)
evt - EventModalShowEventprotected void onShown(Event evt)
evt - EventModalShownEventprotected void onHide(Event evt)
evt - EventModalHideEventprotected void onHidden(Event evt)
evt - EventModalHiddenEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||