public class ComponentsHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static 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,
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(String defaultNameValue,
Component parent,
EventListener onOkListener) |
static void |
displayConfirmationPopup(EventListener onYesListener)
Displays yes/no confirmation popup.
|
static void |
displayConfirmationPopup(String title,
String message,
EventListener onYesListener)
Displays yes/no confirmation popup.
|
static void |
displayCustomNotification(String title,
String messageKey,
Object... messageAttrs)
Displays notification with given title and messageKey.
|
static void |
displayNotification(String captionKey,
String messageKey,
Object... messageAttrs)
Displays notification with given captionKey title and message
|
public static final String PRINCIPAL
public static void createMenuWithUsers(Menupopup parentMenupopup,
PrincipalModel parentPrincipal,
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(String captionKey, String messageKey, Object... messageAttrs)
public static void displayCustomNotification(String title, String messageKey, Object... messageAttrs)
public static Popup createSimpleRenamePopup(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(String title, 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 © 2017 SAP SE. All Rights Reserved.