Package com.mendix.webui
Class FeedbackHelper
java.lang.Object
com.mendix.webui.FeedbackHelper
Provides helper methods for providing action feedback.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCloseCallerFeedback
(IContext context) Add close caller feedback to context.static void
addLoginFeedback
(IContext context) Add show login feedback to context.static void
addLogoutFeedback
(IContext context) Add logout feedback to context.static void
addOpenFormFeedback
(IContext context, String formName, IFeedback.FormTarget target) Add open form feedback to context.static void
addOpenFormFeedback
(IContext context, String formName, IFeedback.FormTarget target, boolean isResizable, int width, int height) Add open form feedback to context.static void
addOpenFormFeedback
(IContext context, String formName, IFeedback.FormTarget target, boolean isResizable, int width, int height, IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) Add open form feedback to context.static void
addOpenFormFeedback
(IContext context, String formName, IFeedback.FormTarget target, IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) Add open form feedback to context.static void
addOpenFormFeedback
(IContext context, String formName, String title, IFeedback.FormTarget target) Add open form feedback to context.static void
addOpenFormFeedback
(IContext context, String formName, String title, IFeedback.FormTarget target, boolean isResizable, int width, int height, IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) Add open form feedback to context.static void
addOpenFormFeedback
(IContext context, String formName, String title, IFeedback.FormTarget target, IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) Add open form feedback to context.static void
addOpenFormFeedback
(IContext context, String formName, String title, IFeedback.FormTarget target, Boolean isResizable, int width, int height) Add open form feedback to context.static void
addRefreshClass
(IContext context, String objectClass) Add refresh class object feedback to context.static void
addRefreshObjectFeedback
(IContext context, IMendixIdentifier id) Add refresh object feedback to context.static void
addRefreshObjectListFeedback
(IContext context, List<IMendixIdentifier> ids) Add refresh object list feedback to context.static void
addTextMessageFeedback
(IContext context, IFeedback.MessageType messageType, String message, boolean blocking) Add text message feedback to context.
-
Constructor Details
-
FeedbackHelper
public FeedbackHelper()
-
-
Method Details
-
addTextMessageFeedback
public static void addTextMessageFeedback(IContext context, IFeedback.MessageType messageType, String message, boolean blocking) Add text message feedback to context.- Parameters:
context
- the context to add this feedback tomessageType
- the message typemessage
- the message contentblocking
- whether the message is blocking (user has to take action before message disappears)
-
addRefreshObjectFeedback
Add refresh object feedback to context.- Parameters:
context
- the context to add this feedback toid
- the id of the object to refresh
-
addRefreshObjectListFeedback
Add refresh object list feedback to context.- Parameters:
context
- the context to add this feedback toids
- the ids of the objects to refresh
-
addRefreshClass
Add refresh class object feedback to context.- Parameters:
context
- the context to add this feedback toobjectClass
- the name of the class to refresh
-
addOpenFormFeedback
public static void addOpenFormFeedback(IContext context, String formName, IFeedback.FormTarget target) Add open form feedback to context.- Parameters:
context
- the context to add this feedback toformName
- path to the form to opentarget
- is target content, window (popup) or modal window- Throws:
MendixRuntimeException
- if the form does not exist, or if the form expects multiple parameters.
-
addOpenFormFeedback
public static void addOpenFormFeedback(IContext context, String formName, IFeedback.FormTarget target, IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) Add open form feedback to context.- Parameters:
context
- the context to add this feedback toformName
- path to the form to opentarget
- is target content, window (popup) or modal windowcurrentIdentifier
- the currentIdentifierconstraints
- the context objects- Throws:
MendixRuntimeException
- if the form does not exist, or if the form expects multiple parameters.
-
addOpenFormFeedback
public static void addOpenFormFeedback(IContext context, String formName, String title, IFeedback.FormTarget target) Add open form feedback to context.- Parameters:
context
- the context to add this feedback toformName
- path to the form to opentitle
- the title of the formtarget
- is target content, window (popup) or modal window- Throws:
MendixRuntimeException
- if the form does not exist, or if the form expects multiple parameters.
-
addOpenFormFeedback
public static void addOpenFormFeedback(IContext context, String formName, String title, IFeedback.FormTarget target, IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) Add open form feedback to context.- Parameters:
context
- the context to add this feedback toformName
- path to the form to opentitle
- the title of the formtarget
- is target content, window (popup) or modal windowcurrentIdentifier
- the currentIdentifierconstraints
- the context objects- Throws:
MendixRuntimeException
- if the form does not exist, or if the form expects multiple parameters.
-
addOpenFormFeedback
public static void addOpenFormFeedback(IContext context, String formName, String title, IFeedback.FormTarget target, Boolean isResizable, int width, int height) Add open form feedback to context.- Parameters:
context
- the context to add this feedback toformName
- path to the form to opentitle
- the title of the formtarget
- is target content, window (popup) or modal windowisResizable
- whether the form is resizeable or notwidth
- the width of the formheight
- the height of the form- Throws:
MendixRuntimeException
- if the form does not exist, or if the form expects multiple parameters.
-
addOpenFormFeedback
public static void addOpenFormFeedback(IContext context, String formName, IFeedback.FormTarget target, boolean isResizable, int width, int height) Add open form feedback to context.- Parameters:
context
- the context to add this feedback toformName
- path to the form to opentarget
- is target content, window (popup) or modal windowisResizable
- whether the form is resizeable or notwidth
- the width of the formheight
- the height of the form- Throws:
MendixRuntimeException
- if the form does not exist, or if the form expects multiple parameters.
-
addOpenFormFeedback
public static void addOpenFormFeedback(IContext context, String formName, IFeedback.FormTarget target, boolean isResizable, int width, int height, IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) Add open form feedback to context.- Parameters:
context
- the context to add this feedback toformName
- path to the form to opentarget
- is target content, window (popup) or modal windowisResizable
- whether the form is resizeable or notwidth
- the width of the formheight
- the height of the formcurrentIdentifier
- the currentIdentifierconstraints
- the context objects- Throws:
MendixRuntimeException
- if the form does not exist, or if the form expects multiple parameters.
-
addOpenFormFeedback
public static void addOpenFormFeedback(IContext context, String formName, String title, IFeedback.FormTarget target, boolean isResizable, int width, int height, IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) Add open form feedback to context.- Parameters:
context
- the context to add this feedback toformName
- path to the form to opentitle
- the title of the formtarget
- is target content, window (popup) or modal windowisResizable
- whether the form is resizeable or notwidth
- the width of the formheight
- the height of the formcurrentIdentifier
- the currentIdentifierconstraints
- the context objects- Throws:
MendixRuntimeException
- if the form does not exist, or if the form expects multiple parameters.
-
addLoginFeedback
Add show login feedback to context.- Parameters:
context
- the context to add this feedback to
-
addLogoutFeedback
Add logout feedback to context.- Parameters:
context
- the context to add this feedback to
-
addCloseCallerFeedback
Add close caller feedback to context.- Parameters:
context
- the context to add this feedback to
-