public class ComponentsHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PRINCIPAL
under this constant models are set in menu items
|
| Constructor and Description |
|---|
ComponentsHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createMenuWithUsers(Menupopup parentMenupopup,
PrincipalModel parentPrincipal,
java.util.Collection<PrincipalModel> checkedUsers,
EventListener listener)
Creates tree-like structure of menu positions containing users' groups and users, so that user can check/uncheck
them
|
static Popup |
createSimpleRenamePopup(java.lang.String defaultNameValue,
Component parent,
EventListener onOkListener) |
static void |
displayConfirmationPopup(EventListener onYesListener)
Displays yes/no confirmation popup.
|
static void |
displayConfirmationPopup(java.lang.String title,
java.lang.String message,
EventListener onYesListener)
Displays yes/no confirmation popup.
|
static void |
displayCustomNotification(java.lang.String title,
java.lang.String messageKey,
java.lang.Object... messageAttrs)
Displays notification with given title and messageKey.
|
static void |
displayNotification(java.lang.String captionKey,
java.lang.String messageKey,
java.lang.Object... messageAttrs)
Displays notification with given captionKey title and message
|
public static final java.lang.String PRINCIPAL
public static void createMenuWithUsers(Menupopup parentMenupopup,
PrincipalModel parentPrincipal,
java.util.Collection<PrincipalModel> checkedUsers,
EventListener listener)
parentMenupopup - to attach toparentPrincipal - top lever user/group to down traversecheckedUsers - users that should be marked as checkedlistener - to handle menu checkspublic static void displayNotification(java.lang.String captionKey,
java.lang.String messageKey,
java.lang.Object... messageAttrs)
public static void displayCustomNotification(java.lang.String title,
java.lang.String messageKey,
java.lang.Object... messageAttrs)
public static Popup createSimpleRenamePopup(java.lang.String defaultNameValue,
Component parent,
EventListener onOkListener)
defaultNameValue - default value typed in popupparent - component to which this popup will be attached and displayed directly under itonOkListener - listener to catch onOk event.public static void displayConfirmationPopup(java.lang.String title,
java.lang.String message,
EventListener onYesListener)
onYesListener - listener to handle clicks on 'yes' buttontitle - displayed messagemessage - displayed titlepublic static void displayConfirmationPopup(EventListener onYesListener)
onYesListener - listener to handle clicks on 'yes' buttonCopyright © 2018 SAP SE. All Rights Reserved.