public class MsgBox extends Window
| Modifier and Type | Class and Description |
|---|---|
static interface |
MsgBox.IAnswer |
static interface |
MsgBox.IAnswer2 |
static interface |
MsgBox.IInput<T> |
static class |
MsgBox.Type |
| Modifier | Constructor and Description |
|---|---|
protected |
MsgBox() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addButton(MsgBoxButton mbb)
Add a default kind of button.
|
protected void |
addButton(String lbl,
Object selval) |
protected void |
answer(Object sel) |
static DefaultButton |
areYouSureButton(String text,
String message,
IClicked<DefaultButton> ch)
Create a button which will show an "are you sure" yes/no dialog with a specified text.
|
static DefaultButton |
areYouSureButton(String text,
String icon,
String message,
IClicked<DefaultButton> ch)
Create a button which will show an "are you sure" yes/no dialog with a specified text.
|
static LinkButton |
areYouSureLinkButton(String text,
String message,
IClicked<LinkButton> ch)
Create a button which will show an "are you sure" yes/no dialog with a specified text.
|
static LinkButton |
areYouSureLinkButton(String text,
String icon,
String message,
IClicked<LinkButton> ch)
Create a LinkButton which will show an "are you sure" yes/no dialog with a specified text.
|
static void |
continueCancel(NodeBase dad,
String string,
IClicked<MsgBox> onAnswer)
Ask a continue/cancel confirmation, and call the IClicked handler for CONTINUE only.
|
static void |
continueCancel(NodeBase dad,
String string,
MsgBox.IAnswer onAnswer)
Ask a continue/cancel confirmation.
|
static MsgBox |
create(NodeBase parent) |
static void |
dialog(NodeBase dad,
String title,
MsgBox.IAnswer onAnswer,
INodeContentRenderer<String> contentRenderer) |
static void |
error(NodeBase dad,
NodeContainer string) |
static void |
error(NodeBase dad,
String string) |
static void |
flexDialog(NodeBase dad,
MsgBox.Type boxType,
String message,
MsgBox.IAnswer2 onAnswer,
Object... buttonresultpairs) |
protected INodeContentRenderer<String> |
getDataRenderer() |
IControl<?> |
getInputControl() |
protected MsgBox.IAnswer |
getOnAnswer() |
MsgBox.IAnswer2 |
getOnAnswer2() |
MsgBox.IInput<?> |
getOninput() |
static void |
info(NodeBase dad,
NodeContainer string) |
static void |
info(NodeBase dad,
String string) |
static <T,C extends IControl<T>> |
input(NodeBase dad,
String prompt,
C input,
MsgBox.IInput<T> onanswer)
Show any single control to get input from.
|
static <T> void |
inputString(NodeBase dad,
String message,
Text<T> input,
MsgBox.IInput<T> onanswer) |
static void |
message(NodeBase dad,
MsgBox.Type mt,
NodeContainer content) |
static void |
message(NodeBase dad,
MsgBox.Type mt,
String string) |
static void |
message(NodeBase dad,
MsgBox.Type mt,
String string,
MsgBox.IAnswer onAnswer) |
static void |
message(NodeBase dad,
String iconSrc,
String string)
Provides interface to create INFO type messages with custom icon.
|
static void |
message(NodeBase dad,
String iconSrc,
String string,
MsgBox.IAnswer onAnswer)
Provides interface to create INFO type messages with custom icon.
|
static void |
message(NodeBase dad,
String iconSrc,
String title,
MsgBox.IAnswer onAnswer,
INodeContentRenderer<String> msgRenderer)
Provides interface to create INFO type messages with custom title, icon, data section and optional callback.
|
static void |
message(NodeBase dad,
UIMessage msg)
Shows specified UIMessage as message box, with proper message box type.
|
static void |
message(NodeBase dad,
UIMsgException msgEx)
Shows specified UIMsgException as message box, with proper message box type.
|
static void |
okMore(NodeBase dad,
MsgBox.Type type,
String string,
MsgBox.IAnswer onAnswer)
Show message of specified type, and provide details (More...) button.
|
protected void |
setDataRenderer(INodeContentRenderer<String> dataRenderer) |
void |
setDimensions(int width,
int height)
Change the width and height for the dialog - only valid before it has been
built!! The minimum size is 250x200 pixels.
|
void |
setInputControl(IControl<?> inputControl) |
protected void |
setMessage(String txt) |
protected void |
setOnAnswer(MsgBox.IAnswer onAnswer) |
void |
setOnAnswer2(MsgBox.IAnswer2 onAnswer2) |
void |
setOninput(MsgBox.IInput<?> oninput) |
protected void |
setType(MsgBox.Type type) |
static void |
warning(NodeBase dad,
NodeContainer string) |
static void |
warning(NodeBase dad,
String string) |
static void |
yesNo(NodeBase dad,
MsgBox.Type msgtype,
String string,
IClicked<MsgBox> onAnswer)
Ask a yes/no confirmation; call the onAnswer handler if YES is selected and do nothing otherwise.
|
static void |
yesNo(NodeBase dad,
String string,
IClicked<MsgBox> onAnswer)
Ask a yes/no confirmation; call the onAnswer handler if YES is selected and do nothing otherwise.
|
static void |
yesNo(NodeBase dad,
String string,
MsgBox.IAnswer onAnswer)
Ask a yes/no confirmation, and pass either YES or NO to the onAnswer delegate.
|
static void |
yesNo(NodeBase dad,
String string,
MsgBox.IAnswer onAnswer,
INodeContentRenderer<String> msgRenderer)
Ask a yes/no confirmation, and pass either YES or NO to the onAnswer delegate.
|
static void |
yesNoCancel(NodeBase dad,
String string,
MsgBox.IAnswer onAnswer) |
createFrame, createTitleBar, getBottomContent, getTopContent, getWindowTitle, isClosable, modal, modal, resizable, setClosable, setIcon, setWindowTitle, size, title, widthbeforeCreateContent, callCloseHandler, close, close, closePressed, getBrowserWindowSize, getClientBounds, getOnClose, internalGetHider, internalSetHider, isAutoClose, isModal, isResizable, onClosed, onRemoveFromPage, setAutoClose, setOnClose, setOnSizeAndPositionChange, verticallyAlignToCenterafterCreateContent, componentHandleWebAction, fadeIn, fadeOut, getCustomUpdatesCallJS, getDragHandler, getDropBody, getDropHandler, getDropMode, getReturnPressed, setDragHandler, setDropBody, setDropHandler, setReturnPressed, slideDown, slideUp, tb, visitadd, add, add, addTable, addTableForLayout, addTableForLayout, appendTreeErrors, canContain, delegateTo, disableAllChildControlsDeep, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChildren, getDelegate, getErrorFence, getTextContents, hasError, internalAdd, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalCreateFrame, internalGetNodeCount, internalGetOldChildren, internalOnBeforeRender, internalShelve, internalUnshelve, iterator, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setErrorFence, setErrorFence, setText, setValue, undelegatedAdd, undelegatedGetChild$, acceptRequestParameter, addBinding, addCssClass, addGlobalMessage, addNotificationListener, alignToLeft, alignToLeft, alignToMiddle, alignToMiddle, alignTopToBottom, alignTopToBottom, alignToRight, alignToRight, alignToTop, alignToTop, appendAfterMe, appendBeforeMe, appendCreateJS, appendJavascript, appendJQuerySelector, appendJsCustomUpdatesContributor, appendShowOverflowTextAsTitleJs, appendStatement, bind, bind, bindErrors, build, calcTestID, changed, changedJavascriptState, clearFocusRequested, clearGlobalMessage, clearGlobalMessage, clearGlobalMessage, clearMessage, clearValidationFailure, componentHandleWebDataRequest, createContent, createStatement, findComponentBundle, findParent, getActualID, getAllocationTracepoint, getBindingErrors, getBindingList, getCalculatedTestID, getClicked, getComponentBundle, getComponentDataURL, getComponentDataURL, getComponentInfo, getComponentJSONURL, getCreateJS, getCssClass, getErrorList, getErrorLocation, getFocusID, getMessage, getOnClickJS, getOnMouseDownJS, getOnSizeAndPositionChange, getPage, getParent, getParent, getParent, getParentOfTypes, getSharedContext, getSharedContextFactory, getSpecialAttribute, getSpecialAttributeList, getTag, getTestID, getTestRepeatId, getThemedResourceRURL, getTitle, getUserObject, handleDrop, hasCssClass, hasParent, internalGetOldParent, internalGetParent, internalHasChangedAttributes, internalNeedClickHandler, internalOnClicked, internalOnValueChanged, internalRenderJavascriptDelta, internalRenderJavascriptState, internalSetHasChangedAttributes, internalSetHasChangedAttributes, internalSetLogAllocations, internalSetTag, isAttached, isBuilt, isFocusable, isFocusRequested, isRendersOwnClose, isStretchHeight, lc, notify, notifyParentOrOpenerPage, onAddedToPage, onBeforeFullRender, onBeforeRender, onForceRebuild, onHeaderContributors, onShelve, onUnshelve, refresh, remove, removeBinding, removeCssClass, renderJavascriptDelta, renderJavascriptState, renderJavascriptState, replaceWith, setBrowserWindowSize, setCalculcatedId, setCalculcatedId, setClicked, setClientBounds, setComponentBundle, setCssClass, setErrorLocation, setFocus, setMessage, setOnClickJS, setOnMouseDownJS, setOverrideTitle, setSpecialAttribute, setStretchHeight, setTestID, setTestRepeatID, setTitle, setUserObject, toStringgetBackgroundAttachment, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorderBottomColor, getBorderBottomStyle, getBorderBottomWidth, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderTopColor, getBorderTopStyle, getBorderTopWidth, getBottom, getCachedStyle, getClear, getColor, getDisplay, getFloat, getFontFamily, getFontSize, getFontSizeAdjust, getFontStyle, getFontVariant, getFontWeight, getHeight, getLeft, getLineHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOverflow, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPosition, getRight, getTextAlign, getTop, getTransform, getVerticalAlign, getVisibility, getWidth, getZIndex, internalSetDisplay, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorder, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setBottom, setBottom, setCachedStyle, setClear, setColor, setDisplay, setFloat, setFontFamily, setFontSize, setFontSizeAdjust, setFontStyle, setFontVariant, setFontWeight, setHeight, setLeft, setLeft, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPosition, setRight, setRight, setTextAlign, setTop, setTop, setTransform, setVerticalAlign, setVisibility, setWidth, setZIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected void setType(MsgBox.Type type)
protected void setMessage(String txt)
public static void message(NodeBase dad, MsgBox.Type mt, String string)
public static void message(NodeBase dad, MsgBox.Type mt, NodeContainer content)
public static void message(NodeBase dad, String iconSrc, String string)
dad - iconSrc - string - public static void message(NodeBase dad, String iconSrc, String string, MsgBox.IAnswer onAnswer)
dad - iconSrc - string - onAnswer - public static void message(NodeBase dad, String iconSrc, String title, MsgBox.IAnswer onAnswer, INodeContentRenderer<String> msgRenderer)
dad - iconSrc - title - onAnswer - msgRenderer - public static void info(NodeBase dad, NodeContainer string)
public static void warning(NodeBase dad, NodeContainer string)
public static void error(NodeBase dad, NodeContainer string)
public static void message(NodeBase dad, MsgBox.Type mt, String string, MsgBox.IAnswer onAnswer)
public static void dialog(NodeBase dad, String title, MsgBox.IAnswer onAnswer, INodeContentRenderer<String> contentRenderer)
public static void yesNoCancel(NodeBase dad, String string, MsgBox.IAnswer onAnswer)
public static void yesNo(NodeBase dad, String string, MsgBox.IAnswer onAnswer)
dad - string - onAnswer - public static void yesNo(NodeBase dad, String string, MsgBox.IAnswer onAnswer, INodeContentRenderer<String> msgRenderer)
dad - string - onAnswer - msgRenderer - Provides custom rendering of specified string message.public static void yesNo(NodeBase dad, String string, IClicked<MsgBox> onAnswer)
dad - string - onAnswer - public static void yesNo(NodeBase dad, MsgBox.Type msgtype, String string, IClicked<MsgBox> onAnswer)
dad - string - onAnswer - public static void okMore(NodeBase dad, MsgBox.Type type, String string, MsgBox.IAnswer onAnswer)
dad - type - string - onAnswer - public static void continueCancel(NodeBase dad, String string, MsgBox.IAnswer onAnswer)
dad - string - onAnswer - public static <T> void inputString(NodeBase dad, String message, Text<T> input, MsgBox.IInput<T> onanswer)
public static <T,C extends IControl<T>> void input(NodeBase dad, String prompt, C input, MsgBox.IInput<T> onanswer)
T - C - dad - prompt - input - onanswer - public static void continueCancel(NodeBase dad, String string, IClicked<MsgBox> onAnswer)
dad - string - onAnswer - public static void flexDialog(@Nonnull NodeBase dad, @Nonnull MsgBox.Type boxType, @Nonnull String message, @Nonnull MsgBox.IAnswer2 onAnswer, Object... buttonresultpairs)
dad - boxType - message - onAnswer - buttonresultpairs - @Nonnull public static DefaultButton areYouSureButton(String text, String icon, String message, IClicked<DefaultButton> ch)
icon - text - The button's text.message - The message to show in the are you sure popupch - The delegate to call when the user is sure.@Nonnull public static DefaultButton areYouSureButton(String text, String message, IClicked<DefaultButton> ch)
text - The button's text.message - The message to show in the are you sure popupch - The delegate to call when the user is sure.@Nonnull public static LinkButton areYouSureLinkButton(String text, String icon, String message, IClicked<LinkButton> ch)
icon - text - The button's text.message - The message to show in the are you sure popupch - The delegate to call when the user is sure.@Nonnull public static LinkButton areYouSureLinkButton(String text, String message, IClicked<LinkButton> ch)
text - The button's text.message - The message to show in the are you sure popupch - The delegate to call when the user is sure.public void setDimensions(int width,
int height)
FloatingDivsetDimensions in class Windowprotected void addButton(MsgBoxButton mbb)
mbb - protected MsgBox.IAnswer getOnAnswer()
protected void setOnAnswer(MsgBox.IAnswer onAnswer)
public MsgBox.IAnswer2 getOnAnswer2()
public void setOnAnswer2(MsgBox.IAnswer2 onAnswer2)
public MsgBox.IInput<?> getOninput()
public void setOninput(MsgBox.IInput<?> oninput)
public IControl<?> getInputControl()
public void setInputControl(IControl<?> inputControl)
protected INodeContentRenderer<String> getDataRenderer()
protected void setDataRenderer(INodeContentRenderer<String> dataRenderer)
public static void message(@Nonnull NodeBase dad, @Nonnull UIMessage msg)
dad - msg - public static void message(@Nonnull NodeBase dad, @Nonnull UIMsgException msgEx)
dad - msgEx - Copyright © 2017 etc.to. All rights reserved.