Package com.iizix.gyro
Interface IMessageBox
- All Known Subinterfaces:
- IAppSessionGyro,- IClientSessionGyro,- IComponent,- IContentItem,- IEntry,- IEUIComp,- IEUICompCommon,- IEUIContainer,- IEUIPanel,- IUIAction,- IUIAnimatedSingleIndexedSelectionComp,- IUIBooleanSelectionComp,- IUICellSelectionComp,- IUICheck2Component,- IUICheckComponent,- IUIComp,- IUICompRelativeTarget,- IUIContainer,- IUIDateTimeComponent,- IUIDateValueComponent,- IUIDoubleRangeValueComponent,- IUIDoubleValueComponent,- IUIHint,- IUIIndexedSelectionComp,- IUILabelForTarget,- IUINullableValueComponent,- IUIRadioComponent,- IUISelectionComp,- IUISingleIndexedSelectionComp,- IUITimeValueComponent,- IUITriStateSelectionComp,- IUIValueComponent,- IVSComponent,- IVSMessageComponent
- All Known Implementing Classes:
- AbstractContentUIContainer,- AbstractUIAction,- AppSessionGyro,- BaseEvent,- CalendarEvent,- ClientSessionGyro,- ECalendarEvent,- EditorVirtualSpace,- EditorVSAction,- EditorVSColumnHeader,- EditorVSField,- EditorVSGroup,- EditorVSRow,- EditorVSTable,- EMapMarkerProp,- EMapMarkers,- EMLGroup,- EMList,- EMLItemProp,- EMUIHeading,- EMUISimpleDialog,- EMUISwitch,- EMUITabBar,- EUIAccordion,- EUIButton,- EUICalendar,- EUICalendarList,- EUIChart,- EUICheckBox,- EUICheckedMenuItem,- EUIComboBox,- EUIContainer,- EUIContextMenu,- EUIDateTime,- EUIDialog,- EUIEmpty,- EUIGauge,- EUIImage,- EUIImage2,- EUILabel,- EUIMap,- EUIMedia,- EUIMenu,- EUIMenuBar,- EUIMenuItem,- EUIMenuSeparator,- EUIOutput,- EUIPanel,- EUIPanelPart,- EUIPanelPartCnr,- EUIProgress,- EUIRadioButton,- EUIRadioMenuItem,- EUISlider,- EUISpinner,- EUISwapContainer,- EUITabContainer,- EUITable,- EUITableColumn,- EUIText,- EUITextArea,- EUITitlePane,- MapMarkerProp,- MapMarkers,- MessageBox,- MLGroup,- MList,- MLItemProp,- MUIHeading,- MUISimpleDialog,- MUISwitch,- MUITabBar,- UIAbstractListChoice,- UIAccordion,- UIActionEvent,- UIBackEvent,- UIBaseEvent,- UIButton,- UICalendar,- UICalendarList,- UIChart,- UICheckBox,- UICheckedMenuItem,- UIComboBox,- UIComp,- UIConnectEvent,- UIContainer,- UIContextMenu,- UICreateEvent,- UIDateTime,- UIDestroyEvent,- UIDialog,- UIEmpty,- UIFocusEvent,- UIGauge,- UIImage,- UIImage2,- UILabel,- UIMap,- UIMedia,- UIMenu,- UIMenuBar,- UIMenuItem,- UIMenuSeparator,- UIOutput,- UIPanel,- UIPanelBase,- UIPanelPart,- UIPanelPartCnr,- UIProgress,- UIRadioButton,- UIRadioMenuItem,- UISelectionEvent,- UISlider,- UISpinner,- UISwapContainer,- UITabContainer,- UITable,- UITableColumn,- UIText,- UITextArea,- UITextChangeEvent,- UITitlePane,- UIValueChangeEvent,- VirtualSpace,- VSAction,- VSActionEvent,- VSBaseEvent,- VSBaseEventWithTrigger,- VSChangeEvent,- VSColumnHeader,- VSComponent,- VSCreateEvent,- VSDestroyEvent,- VSField,- VSFieldEvent,- VSFocusEvent,- VSGroup,- VSRow,- VSStateEvent,- VSTable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The message box API enables showing a message box for a specific client session for user interaction. If done on the application session, the first client session's reply will be used, and the other client sessions' message box will be disposed of.
The processing is model for the message box reply is a callback and can be aborted in case of client session failure if directed to a specific client session and it is closed. If the message box is displayed for an application session and that one is closed, no callback will be done.
- Author:
- Christopher Mindus
- Nested Class SummaryNested Classes
- Field SummaryFieldsModifier and TypeFieldDescription- static final intIcon option: error/critical/stop sign.- static final intIcon option: informational.- static final IMessageBox.Icon[]Table mapping icon values to Icon enum.- static final intIcon option: none.- static final intIcon option: question mark.- static final intIcon option: warning.
- Method SummaryModifier and TypeMethodDescription- default void- messageBox- (IMessageBoxReply reply, int icon, String title, String message) Displays a message box with the specified title and message.- default void- messageBox- (IMessageBoxReply reply, int icon, String title, String message, String... buttons) Displays a message box with the specified title and message.- void- messageBox- (IMessageBoxReply reply, IMessageBox.Icon icon, KString title, KString message, KString... buttons) Displays a message box with the specified title and message.
- Field Details- ICON_NONEstatic final int ICON_NONEIcon option: none.- See Also:
 
- ICON_INFORMATIONstatic final int ICON_INFORMATIONIcon option: informational.- See Also:
 
- ICON_QUESTIONstatic final int ICON_QUESTIONIcon option: question mark.- See Also:
 
- ICON_WARNINGstatic final int ICON_WARNINGIcon option: warning.- See Also:
 
- ICON_ERRORstatic final int ICON_ERRORIcon option: error/critical/stop sign.- See Also:
 
- ICON_MAPTable mapping icon values to Icon enum.
 
- Method Details- messageBoxDisplays a message box with the specified title and message. The icon can be specified as Informational, Question, Error or None.- Parameters:
- reply- The reply callback that is called when the user chooses a button or session is closed,- nullfor none.
- icon- Icon to display, see the- ICON_*values, e.g.- ICON_INFORMATION
- title- The title string, null for none.
- message- The message to display, must be non-null.
- Throws:
- NullPointerException- If- messageis null.
 
- messageBoxdefault void messageBox- (IMessageBoxReply reply, int icon, String title, String message, String... buttons) Displays a message box with the specified title and message. The icon can be specified as Informational, Question, Error or None.- Parameters:
- reply- The reply callback that is called when the user chooses a button or session is closed,- nullfor none.
- icon- Icon to display, see the- ICON_*values, e.g.- ICON_INFORMATION
- title- The title string, null for none.
- message- The message to display, must be non-null.
- buttons- The strings for the buttons to display, if none, just an- OKbutton is displayed. This array of buttons defined the index value returned by this method.
- Throws:
- NullPointerException- If- iconor- messageis null.
 
- messageBoxvoid messageBox- (IMessageBoxReply reply, IMessageBox.Icon icon, KString title, KString message, KString... buttons) Displays a message box with the specified title and message.- Parameters:
- reply- The reply callback that is called when the user chooses a button or session is closed,- nullfor none.
- icon- Icon to display, see the- {link Icon}enumeration.
- title- The title string, must be non-null.
- message- The message to display, must be non-null.
- buttons- The strings for the buttons to display, if none, just an- OKbutton is displayed. This array of buttons defined the index value returned by this method.
- Throws:
- NullPointerException- If- iconor- messageis null, or if any of the elements in- buttonsarray is null.