Class 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.Modal
    A 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
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      Bs3Modal()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addDefaultFooter()  
      protected void onAttach()  
      void setBodyHeight​(int height)
      Sets the pixel height of the main content container.
      void setContent​(com.google.gwt.user.client.ui.IsWidget content)
      Replaces the contents within the main body area of the modal.
      void setFooterContent​(com.google.gwt.user.client.ui.IsWidget content)
      Replaces the current contents of the footer area with the given widget.
      void setModalTitle​(String title)  
      protected void setup()  
      void show()  
      void show​(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
    • Constructor Detail

      • Bs3Modal

        public Bs3Modal()
    • Method Detail

      • setup

        protected void setup()
      • onAttach

        protected void onAttach()
        Overrides:
        onAttach in class com.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. Use Commands.DO_NOTHING if you don't have an "after show" action.
        afterClosed - the action to perform once the dialog has been dismissed. Not null. Use Commands.DO_NOTHING if you don't have an "after close" action.
      • show

        public void show()
        Overrides:
        show in class org.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.