Class UIDialog

All Implemented Interfaces:
EventListener, IFocusComp, IMessageBox, IUIPanelAnimation, IComponent, IClassReferenceOwner, ICustomDataProvider, IGProp<GProp<?>[]>, IPropCnr, IReferrerParticipant, ISelectorOwner, IUIClassReferenceOwner, IUIComp, IUIContainer, IUIContextMenuOwner, IUIFocusComp, IUIGroupSeparator, IUIPanelOwner, IUIPlainTextComponent, IUITextComponent, IVSAccessor, IVSComponentListener, IVSComponentState, IVSFieldListener, IVSGenericComponentListener, IVSParticipant, Cloneable
Direct Known Subclasses:
EUIDialog

public class UIDialog extends UIPanelBase implements IUIPlainTextComponent
Desktop popup dialog.
Author:
Christopher Mindus
  • Field Details

    • clientStyles

      protected Styles clientStyles
      The style container for client.
  • Constructor Details

    • UIDialog

      public UIDialog()
      Creates the container without name with a null value.
    • UIDialog

      public UIDialog(Atom propertyAtom)
      Creates the container with the specified name with a null value.
      Parameters:
      propertyAtom - the property atom.
  • Method Details

    • createClientStyles

      protected Styles createClientStyles()
      Creates the Client Styles container (can be overridden by Designer to create EditorStyles).
    • addPredefinedProps

      public void addPredefinedProps() throws PropException
      Adds the predefined containers for identifications, fields and actions. This method is overridden fully by the Editor versions of the class.
      Overrides:
      addPredefinedProps in class UIContainer
      Throws:
      PropException - For property exceptions.
    • getPredefinedProps

      public void getPredefinedProps()
      Gets the references to predefined properties. If the Styles is created, make sure to get it.
      Overrides:
      getPredefinedProps in class UIPanelBase
    • getClientAreaStyles

      public Styles getClientAreaStyles()
      Gets the client area styles.
      Returns:
      The client area styles container.
    • getParticipantType

      public String getParticipantType()
      Returns the given type of the referrer participant.
      Specified by:
      getParticipantType in interface IReferrerParticipant
      Overrides:
      getParticipantType in class UIPanelBase
    • getDeviceType

      public final int getDeviceType()
      Gets the device type: -1=mobile, 0=both, 1=desktop.
      Specified by:
      getDeviceType in interface IUIComp
      Overrides:
      getDeviceType in class UIPanelBase
    • isPopupPanel

      public boolean isPopupPanel()
      Returns if this is a pop-up panel placed on top of main panels.
      Overrides:
      isPopupPanel in class UIPanelBase
      Returns:
      The default panel returns false.
    • getOnCreateExistingPanelProcessing

      public int getOnCreateExistingPanelProcessing()
      Returns how to process pop-up panels when this panel is virtualized.
      Overrides:
      getOnCreateExistingPanelProcessing in class UIPanelBase
      Returns:
      Mobile simple dialogs are never stacked, so this method returns PP_REPLACE_ALL_POPUPS = replace all pop-up panels with this one.
    • hasExplicitWidth

      public boolean hasExplicitWidth()
      Verifies if the component has a width.

      This means a width that is either present due to the component or that the width has explicitly been set, or that it is in a container that sets the outer bounds of the component.

      Overrides:
      hasExplicitWidth in class UIComp
      Returns:
      true if the width is defined and non-zero, false otherwise.
    • hasExplicitHeight

      public boolean hasExplicitHeight()
      Verifies if the component has an implicit height.

      This means a height that is either present due to the component or that the height has explicitly been set, or that it is in a container that sets the outer bounds of the component.

      Overrides:
      hasExplicitHeight in class UIComp
      Returns:
      true if the height is defined and non-zero, false otherwise.