public class BootstrapModal extends com.helger.html.hc.html.grouping.AbstractHCDiv<BootstrapModal>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_FADE |
static boolean |
DEFAULT_SCROLL_BODY |
static boolean |
DEFAULT_SHOW_CLOSE |
static boolean |
DEFAULT_VERTICALLY_CENTERED |
static String |
JS_EVENT_HIDDEN
This event is fired when the modal has finished being hidden from the user
(will wait for CSS transitions to complete).
|
static String |
JS_EVENT_HIDE
This event is fired immediately when the hide instance method has been
called.
|
static String |
JS_EVENT_LOADED
This event is fired when the modal has loaded content using the remote
option.
|
static String |
JS_EVENT_SHOW
This event fires immediately when the show instance method is called.
|
static String |
JS_EVENT_SHOWN
This event is fired when the modal has been made visible to the user (will
wait for CSS transitions to complete).
|
| Constructor and Description |
|---|
BootstrapModal() |
BootstrapModal(EBootstrapModalSize eSize) |
| Modifier and Type | Method and Description |
|---|---|
EBootstrapModalSize |
getSize() |
boolean |
isFade() |
boolean |
isScrollBody() |
boolean |
isShowClose() |
boolean |
isVerticallyCentered() |
com.helger.html.jscode.JSInvocation |
jsModal() |
com.helger.html.jscode.JSInvocation |
jsModalDispose() |
com.helger.html.jscode.JSInvocation |
jsModalHandleUpdate()
Readjusts the modal's positioning to counter a scrollbar in case one should
appear, which would make the modal jump to the left.
|
com.helger.html.jscode.JSInvocation |
jsModalHide()
Manually hides a modal.
|
com.helger.html.jscode.JSInvocation |
jsModalShow()
Manually opens a modal.
|
com.helger.html.jscode.JSInvocation |
jsModalToggle()
Manually toggles a modal.
|
protected void |
onFinalizeNodeState(com.helger.html.hc.IHCConversionSettingsToNode aConversionSettings,
com.helger.html.hc.IHCHasChildrenMutable<?,? super com.helger.html.hc.IHCNode> aTargetNode) |
com.helger.html.jscode.JSPackage |
openModal(EBootstrapModalOptionBackdrop aBackdrop,
Boolean aKeyboard,
Boolean aFocus,
Boolean aShow,
String sRemotePath)
Activates your content as a modal.
|
BootstrapModal |
setBody(com.helger.html.hc.IHCNode... aBody) |
BootstrapModal |
setBody(com.helger.html.hc.IHCNode aBody) |
BootstrapModal |
setBody(Iterable<? extends com.helger.html.hc.IHCNode> aBody) |
BootstrapModal |
setBody(String sBody) |
BootstrapModal |
setFade(boolean bFade) |
BootstrapModal |
setFooter(com.helger.html.hc.IHCNode... aFooter) |
BootstrapModal |
setFooter(com.helger.html.hc.IHCNode aFooter) |
BootstrapModal |
setFooter(Iterable<? extends com.helger.html.hc.IHCNode> aFooter) |
BootstrapModal |
setFooter(String sFooter) |
BootstrapModal |
setHeader(com.helger.html.hc.IHCNode... aHeader) |
BootstrapModal |
setHeader(com.helger.html.hc.IHCNode aHeader) |
BootstrapModal |
setHeader(Iterable<? extends com.helger.html.hc.IHCNode> aHeader) |
BootstrapModal |
setHeader(String sHeader) |
BootstrapModal |
setScrollBody(boolean bScrollBody) |
BootstrapModal |
setShowClose(boolean bShowClose) |
BootstrapModal |
setSize(EBootstrapModalSize eSize) |
BootstrapModal |
setVerticallyCentered(boolean bVerticallyCentered) |
fillMicroElement, getName, setName, toStringaddChild, addChildAt, afterAddChild, afterRemoveChild, beforeAddChild, canConvertToMicroNode, children, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getAllChildrenAsNodeList, getChildAtIndex, getChildCount, getChildren, getChildrenFormEmitting, getFirstChild, getLastChild, getPlainText, hasChildren, removeAllChildren, removeChild, removeChildAt, sortAllChildrenaddClass, addEventHandler, addStyle, containsClass, containsEventHandler, containsStyle, createMicroElement, customAttrs, finishMicroElement, getAccessKey, getAllClasses, getAllClassesAsString, getAllClassNames, getAllStyles, getAllStylesAsString, getAllStyleValues, getContentEditable, getContextMenu, getDirection, getDraggable, getDropZone, getElement, getEventHandler, getEventMap, getID, getLanguage, getRole, getStyleValue, getTabIndex, getTagName, getTitle, getTranslate, hasAnyClass, hasAnyStyle, hasStyle, internalConvertToMicroNode, isHidden, isSpellCheck, isTranslateOff, isTranslateOn, isTranslateUndefined, isUnfocusable, isValidID, onConsistencyCheck, prependEventHandler, removeAllClasses, removeAllEventHandler, removeAllStyles, removeClass, removeStyle, setAccessKey, setContentEditable, setContextMenu, setDirection, setDraggable, setDropZone, setEventHandler, setHidden, setID, setID, setLanguage, setRole, setSpellCheck, setTabIndex, setTitle, setTranslate, setUnfocusableconsistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, internalSetNodeState, onCustomizeNode, onRegisterExternalResources, registerExternalResourcesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrecursiveContainsChildWithTagNameaddEventHandler, containsEventHandler, customAttrs, getAccessKey, getContentEditable, getContextMenu, getDirection, getDraggable, getDropZone, getElement, getEventHandler, getEventMap, getLanguage, getRole, getTabIndex, getTagName, getTitle, getTranslate, isHidden, isSpellCheck, isTranslateOff, isTranslateOn, isTranslateUndefined, isUnfocusable, prependEventHandler, removeAllEventHandler, setAccessKey, setContentEditable, setContextMenu, setDirection, setDraggable, setDropZone, setEventHandler, setHidden, setLanguage, setRole, setSpellCheck, setTabIndex, setTitle, setTranslate, setTranslate, setUnfocusableensureID, getID, hasID, hasNoID, setID, setUniqueIDaddStyle, addStyle, addStyles, addStyles, addStyles, containsStyle, getAllStyles, getAllStylesAsString, getAllStyleValues, getStyleValue, hasAnyStyle, hasStyle, removeAllStyles, removeStyleaddClass, addClasses, addClasses, addClasses, containsClass, getAllClasses, getAllClassesAsString, getAllClassNames, hasAnyClass, removeAllClasses, removeClassaddChild, addChildAt, addChildren, addChildren, setChildaddAndReturnChild, addAndReturnChildAt, addChild, addChildAt, addChildren, addChildren, addChildren, addChildrenAt, addChildrenAt, getAllChildrenAsNodeList, removeAllChildren, removeChild, removeChildAt, setChild, sortAllChildrencanConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, getPlainText, registerExternalResourcesfindFirstChild, findFirstChildMapped, getAllChildren, getChildAtIndex, getFirstChild, getLastChildpublic static final String JS_EVENT_SHOW
public static final String JS_EVENT_SHOWN
public static final String JS_EVENT_HIDE
public static final String JS_EVENT_HIDDEN
public static final String JS_EVENT_LOADED
public static final boolean DEFAULT_FADE
public static final boolean DEFAULT_VERTICALLY_CENTERED
public static final boolean DEFAULT_SCROLL_BODY
public static final boolean DEFAULT_SHOW_CLOSE
public BootstrapModal()
public BootstrapModal(@Nonnull EBootstrapModalSize eSize)
@Nonnull public final EBootstrapModalSize getSize()
@Nonnull public final BootstrapModal setSize(@Nonnull EBootstrapModalSize eSize)
public final boolean isFade()
@Nonnull public final BootstrapModal setFade(boolean bFade)
public final boolean isVerticallyCentered()
@Nonnull public final BootstrapModal setVerticallyCentered(boolean bVerticallyCentered)
public final boolean isScrollBody()
@Nonnull public final BootstrapModal setScrollBody(boolean bScrollBody)
public final boolean isShowClose()
@Nonnull public final BootstrapModal setShowClose(boolean bShowClose)
@Nonnull public final BootstrapModal setHeader(@Nullable String sHeader)
@Nonnull public final BootstrapModal setHeader(@Nullable com.helger.html.hc.IHCNode aHeader)
@Nonnull public final BootstrapModal setHeader(@Nullable com.helger.html.hc.IHCNode... aHeader)
@Nonnull public final BootstrapModal setHeader(@Nullable Iterable<? extends com.helger.html.hc.IHCNode> aHeader)
@Nonnull public final BootstrapModal setBody(@Nullable String sBody)
@Nonnull public final BootstrapModal setBody(@Nullable com.helger.html.hc.IHCNode aBody)
@Nonnull public final BootstrapModal setBody(@Nullable com.helger.html.hc.IHCNode... aBody)
@Nonnull public final BootstrapModal setBody(@Nullable Iterable<? extends com.helger.html.hc.IHCNode> aBody)
@Nonnull public final BootstrapModal setFooter(@Nullable String sFooter)
@Nonnull public final BootstrapModal setFooter(@Nullable com.helger.html.hc.IHCNode aFooter)
@Nonnull public final BootstrapModal setFooter(@Nullable com.helger.html.hc.IHCNode... aFooter)
@Nonnull public final BootstrapModal setFooter(@Nullable Iterable<? extends com.helger.html.hc.IHCNode> aFooter)
protected void onFinalizeNodeState(@Nonnull com.helger.html.hc.IHCConversionSettingsToNode aConversionSettings, @Nonnull com.helger.html.hc.IHCHasChildrenMutable<?,? super com.helger.html.hc.IHCNode> aTargetNode)
onFinalizeNodeState in class com.helger.html.hc.html.AbstractHCElement<BootstrapModal>@Nonnull public com.helger.html.jscode.JSInvocation jsModal()
@Nonnull public com.helger.html.jscode.JSPackage openModal(@Nullable EBootstrapModalOptionBackdrop aBackdrop, @Nullable Boolean aKeyboard, @Nullable Boolean aFocus, @Nullable Boolean aShow, @Nullable String sRemotePath)
aBackdrop - Includes a modal-backdrop element. Alternatively, specify static for
a backdrop which doesn't close the modal on click.aKeyboard - Closes the modal when escape key is pressedaFocus - Puts the focus on the modal when initialized.aShow - Shows the modal when initialized.sRemotePath - If a remote URL is provided, content will be loaded one time via
jQuery's load method and injected into the .modal-content div.@Nonnull public com.helger.html.jscode.JSInvocation jsModalToggle()
@Nonnull public com.helger.html.jscode.JSInvocation jsModalShow()
@Nonnull public com.helger.html.jscode.JSInvocation jsModalHide()
@Nonnull public com.helger.html.jscode.JSInvocation jsModalHandleUpdate()
@Nonnull public com.helger.html.jscode.JSInvocation jsModalDispose()
Copyright © 2015–2020 Philip Helger. All rights reserved.