Class UserPanel

java.lang.Object
org.adempiere.webui.panel.UserPanel
All Implemented Interfaces:
Serializable, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>

public class UserPanel extends Object implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>, Serializable
Desktop header panel for user info
Author:
Ashley G Ramdass
See Also:
  • Field Details

    • ctx

      protected Properties ctx
    • lblUserNameValue

      protected Label lblUserNameValue
    • preferencePopup

      protected WPreference preferencePopup
    • feedbackMenu

      protected Menupopup feedbackMenu
    • component

      protected org.zkoss.zk.ui.Component component
    • userProfileChip

      protected org.zkoss.zk.ui.Component userProfileChip
    • userAvatar

      protected org.zkoss.zk.ui.Component userAvatar
    • userSubText

      protected Label userSubText
    • notificationBell

      protected org.zkoss.zk.ui.Component notificationBell
    • notificationBadge

      protected Label notificationBadge
  • Constructor Details

    • UserPanel

      public UserPanel()
      Default constructor
  • Method Details

    • onCreate

      protected void onCreate()
      Call when UI is compose from zul definition
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Throws:
      Exception
    • openUserMenuPopup

      protected void openUserMenuPopup()
      Open the modern user menu popup (profile card + actions)
    • openNotificationPopup

      protected void openNotificationPopup()
      Open the notification popup showing MDocumentStatus indicators
    • getInitials

      protected String getInitials()
      Returns:
      initials of the user
    • getActivitiesCount

      protected int getActivitiesCount()
      Get the activities count by evaluating all document status indicators
      Returns:
      total count of activities
    • updateNotificationBadge

      protected void updateNotificationBadge(int count)
      Update the notification badge with the given count
      Parameters:
      count - number of pending activities
    • doAfterCompose

      public void doAfterCompose(org.zkoss.zk.ui.Component comp) throws Exception
      Specified by:
      doAfterCompose in interface org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>
      Throws:
      Exception