Class EMUISimpleDialog

All Implemented Interfaces:
IShowJavaSource, ILinkCapable, IJavaClassLinkEnabler, IJavaMethodLinkEnabler, IUIBuilderFromVSLinkEnabler, IUIComponentLinkEnabler, IEImagePreview, IEUICompBase, IEUICompCommon, IEUIContainer, IEUIPanel, IExtendsSelection, IPropDesigner, IPropRenameable, IPropUndoContext, ITransferContainerProps, IStylesFilter, IVSLinkEnabler, IVSParticipantLinkEnabler, EventListener, IFocusComp, IMessageBox, IUIPanelAnimation, IComponent, IClassReferenceOwner, ICustomDataProvider, IGProp<GProp<?>[]>, IPropCnr, IReferrerParticipant, ISelectorOwner, IUIClassReferenceOwner, IUIComp, IUIContainer, IUIContextMenuOwner, IUIFocusComp, IUIGroupSeparator, IUIPanelOwner, IUIHTMLTextComponent, IUITextComponent, IVSAccessor, IVSComponentListener, IVSComponentState, IVSFieldListener, IVSGenericComponentListener, IVSParticipant, Cloneable, IAdaptable

public class EMUISimpleDialog extends MUISimpleDialog implements IEUIPanel
Editor class for UISimpleDialog.
Author:
Christopher Mindus
  • Constructor Details Link icon

    • EMUISimpleDialog Link icon

      public EMUISimpleDialog()
      Creates the property container without a name. The name must be set in all cases using the setPropertyAtom call.
    • EMUISimpleDialog Link icon

      public EMUISimpleDialog(Atom propertyAtom)
      Creates the property container with the specified name. All system-reserved names for components begins with "$".
      Parameters:
      propertyAtom - the name of the component, unique within it's parent.
  • Method Details Link icon

    • createLayout Link icon

      public EPanelData createLayout()
      Create the layout property.
      Specified by:
      createLayout in interface IEUIPanel
      Overrides:
      createLayout in class UIPanelBase
      Returns:
      A new instance of EPanelData named Atom.LAYOUT.
    • createCompsCnr Link icon

      public EUIComps createCompsCnr()
      Creates the components for the Editor.
      Specified by:
      createCompsCnr in interface IEUIContainer
      Overrides:
      createCompsCnr in class UIContainer
    • createStyles Link icon

      public Styles createStyles()
      Creates the Styles container (can be overridden by Designer to create EditorStyles).
      Specified by:
      createStyles in interface IEUIContainer
      Overrides:
      createStyles in class UIComp
    • addPredefinedPropsImpl Link icon

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

      public void getPredefinedProps()
      Gets the references to predefined properties.
      Specified by:
      getPredefinedProps in interface IEUIContainer
      Overrides:
      getPredefinedProps in class UIPanelBase
    • getCompsCnr Link icon

      public EUIComps getCompsCnr()
      Gets the container associated with this layout manager and the UI container.
      Specified by:
      getCompsCnr in interface IUIContainer
      Overrides:
      getCompsCnr in class UIContainer
      Returns:
      The UI components container.
    • getImagePreview Link icon

      public ImagePreview getImagePreview()
      Gets the image preview.
      Specified by:
      getImagePreview in interface IEImagePreview
    • getDesigner Link icon

      public UIContainerDesignerProp getDesigner()
      Gets the Designer Extension for Properties.
      Specified by:
      getDesigner in interface IEUIContainer
      Specified by:
      getDesigner in interface IPropDesigner
      Returns:
      The instance of the Designer Extension.
    • getUndoContext Link icon

      public IUndoContext getUndoContext()
      Gets the undo context. For the UIPanel, this will ripple up to the editor containing this panel.
      Specified by:
      getUndoContext in interface IPropUndoContext
      Returns:
      The undo context for the Editor part(s) for this container.
    • getCNImage Link icon

      public Image getCNImage(boolean isMobile)
      Gets the image for the Common Navigator.
      Specified by:
      getCNImage in interface IEUICompBase
      Parameters:
      isMobile - The mobile theme flag.
      Returns:
      Image or null if there is no image.
    • getCNDescriptionType Link icon

      public String getCNDescriptionType()
      Provide a type description for the status bar view, if available.
      Specified by:
      getCNDescriptionType in interface IEUICompBase
      Specified by:
      getCNDescriptionType in interface ITransferContainerProps
      Returns:
      A type description for the status bar view, or null if not available.
    • clone Link icon

      public EMUISimpleDialog clone()
      Clone must be overridden.
      Overrides:
      clone in class UIPanelBase
    • getClassReference Link icon

      public EditorClassReference getClassReference(String id, boolean doCreateIfNotPresent)
      Gets or creates the ClassReference in the property container.

      Panel do not use "ID" because there is a single class connection with the name Atom.CLASS.

      Specified by:
      getClassReference in interface IClassReferenceOwner
      Specified by:
      getClassReference in interface IEUIPanel
      Specified by:
      getClassReference in interface IJavaClassLinkEnabler
      Specified by:
      getClassReference in interface IUIClassReferenceOwner
      Parameters:
      id - ID for the class reference if several exist, null for default.
      doCreateIfNotPresent - Flag to create the property (this flag can only be true in Designer)!
      Returns:
      The resolved class reference instance, null if the ClassReference doesn't exist if the create flag is false. If flag is true, an orphan unresolved EditorClassReference instance (ONLY for the Designer).
    • getPossibleChildren Link icon

      public Class<?>[] getPossibleChildren()
      Gets the acceptable children property classes that can be used in conjunction with e.g. a Paste operation.
      Specified by:
      getPossibleChildren in interface IPropCnr
      Overrides:
      getPossibleChildren in class PropCnr
      Returns:
      An array containing the classes of possible children, or null for no support.
    • validateClassInstances Link icon

      public boolean validateClassInstances(boolean doPerform, GProp<?>[] props, boolean isMove)
      Validates the target property container classes for paste/move with additional instance testing, extra check when the possible children are verified.

      Override this method that by default returns true to provide fine-tuned testing for validity.

      Specified by:
      validateClassInstances in interface IPropCnr
      Overrides:
      validateClassInstances in class PropCnr
      Parameters:
      doPerform - The perform flag, false means just testing.
      props - Properties to move or paste.
      isMove - Flag for move if true, false means paste.
      Returns:
      true if the class instances for move or paste are valid, false otherwise.
    • getPossibleCompChildren Link icon

      public Class<?>[] getPossibleCompChildren()
      Gets the acceptable component children property classes that can be used in conjunction with e.g. a Paste operation.
      Specified by:
      getPossibleCompChildren in interface IEUIContainer
      Returns:
      An array containing the classes of possible children, or null for no support.
    • getAcceptedLayoutMgrs Link icon

      public Class<?>[] getAcceptedLayoutMgrs()
      Gets the possible Layout Manager classes for this component.
      Specified by:
      getAcceptedLayoutMgrs in interface IEUIContainer
      Returns:
      null To accept all.
    • getStylesName Link icon

      public String getStylesName(EditorStyles styles)
      The name of this styles property for the common navigator.
      Specified by:
      getStylesName in interface IStylesFilter
      Parameters:
      styles - The Styles property container.
    • getSupportedStyles Link icon

      public String[] getSupportedStyles(EditorStyles styles)
      Gets the groups supported by the component.
      Specified by:
      getSupportedStyles in interface IStylesFilter
      Parameters:
      styles - The Styles property container.
      Returns:
      An array of property names of the styles. Names beginning with '*' indicates it's a group.
    • getExtendsPossibleClasses Link icon

      public Class<?>[] getExtendsPossibleClasses()
      Gets the possible classes this container supports for the Extends Framework. The default implementation is to return null.
      Specified by:
      getExtendsPossibleClasses in interface IPropCnr
      Overrides:
      getExtendsPossibleClasses in class PropCnr
      Returns:
      List of supported classes, or null for none.
    • getSelectPropDialogTitle Link icon

      public String getSelectPropDialogTitle()
      Gets the title for selection dialog.
      Specified by:
      getSelectPropDialogTitle in interface IExtendsSelection
    • getSelectPropViewerFilter Link icon

      public ViewerFilter getSelectPropViewerFilter()
      Gets the viewer filter for the tree in the dialog for selecting extends property name.
      Specified by:
      getSelectPropViewerFilter in interface IExtendsSelection
    • verify Link icon

      public boolean verify(PropVerification verification)
      Verifies this property container. The check performed is the extension of classes and that no circular reference is present.
      Specified by:
      verify in interface IGProp<GProp<?>[]>
      Overrides:
      verify in class UIPanelBase
      Parameters:
      verification - The property verification class.
      Returns:
      true if verification should proceed, false if disposed of and verification should not take place.
    • getTransferProps Link icon

      public Object[] getTransferProps()
      Returns the list of properties that are transferable between layout managers.
      Specified by:
      getTransferProps in interface ITransferContainerProps
      Returns:
      The list of String's or Atom's that are transferable, null for none.