Class Bs3Modal
- java.lang.Object
-
- com.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
-
- org.uberfire.client.views.pfly.modal.Bs3Modal
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Iterable<com.google.gwt.user.client.ui.Widget>,org.gwtbootstrap3.client.ui.base.HasId,org.gwtbootstrap3.client.ui.base.HasInlineStyle,org.gwtbootstrap3.client.ui.base.HasPull,org.gwtbootstrap3.client.ui.base.HasResponsiveness,org.gwtbootstrap3.client.ui.IsClosable
@Dependent public class Bs3Modal extends org.gwtbootstrap3.client.ui.ModalA modal dialog that floats above the workbench. Each instance can only be shown once.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
-
Constructor Summary
Constructors Constructor Description Bs3Modal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDefaultFooter()protected voidonAttach()voidsetBodyHeight(int height)Sets the pixel height of the main content container.voidsetContent(com.google.gwt.user.client.ui.IsWidget content)Replaces the contents within the main body area of the modal.voidsetFooterContent(com.google.gwt.user.client.ui.IsWidget content)Replaces the current contents of the footer area with the given widget.voidsetModalTitle(String title)protected voidsetup()voidshow()voidshow(org.uberfire.mvp.Command afterShown, org.uberfire.mvp.Command afterClosed)Shows this modal dialog above the current workbench.-
Methods inherited from class org.gwtbootstrap3.client.ui.Modal
add, addHiddenHandler, addHideHandler, addShowHandler, addShownHandler, hide, isClosable, onHidden, onHide, onLoad, onShow, onShown, onUnload, setClosable, setDataBackdrop, setDataKeyboard, setFade, setHideOtherModals, setRemoveOnHide, setSize, setTitle, setWidth, toggle
-
Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget
getId, getPull, insert, insert, remove, 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, iterator, 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, onBrowserEvent, onDetach, 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
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
setup
protected void setup()
-
onAttach
protected void onAttach()
- Overrides:
onAttachin classcom.google.gwt.user.client.ui.Widget
-
show
public void show(org.uberfire.mvp.Command afterShown, org.uberfire.mvp.Command afterClosed)Shows this modal dialog above the current workbench.- Parameters:
afterShown- the action to perform once the dialog has been shown. Not null. UseCommands.DO_NOTHINGif you don't have an "after show" action.afterClosed- the action to perform once the dialog has been dismissed. Not null. UseCommands.DO_NOTHINGif you don't have an "after close" action.
-
show
public void show()
- Overrides:
showin classorg.gwtbootstrap3.client.ui.Modal
-
setContent
public void setContent(com.google.gwt.user.client.ui.IsWidget content)
Replaces the contents within the main body area of the modal. By default, the main body area is empty.- Parameters:
content- the new content for the main body area.
-
addDefaultFooter
protected void addDefaultFooter()
-
setModalTitle
public void setModalTitle(String title)
-
setFooterContent
public void setFooterContent(com.google.gwt.user.client.ui.IsWidget content)
Replaces the current contents of the footer area with the given widget. By default (if you do not call this method), the footer contains an OK button that dismisses the dialog when clicked.- Parameters:
content- the new content for the footer area.
-
setBodyHeight
public void setBodyHeight(int height)
Sets the pixel height of the main content container.
-
-