Class EMLGroup

    • Constructor Detail

      • EMLGroup

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

        public EMLGroup​(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 Detail

      • createStyles

        public EditorStyles createStyles()
        Creates the Grid Frame Styles container (can be overridden by Designer to create EditorStyles).
        Specified by:
        createStyles in interface IEUIContainer
        Overrides:
        createStyles in class UIComp
        Returns:
        A new EditorStyles container.
      • createDefaultItemsStyles

        protected EditorStyles createDefaultItemsStyles()
        Creates the Styles container for default items (must be overridden by Designer to create EditorStyles).
        Overrides:
        createDefaultItemsStyles in class MLGroup
        Returns:
        A new EditorStyles container.
      • createDefaultDescriptionStyles

        protected EditorStyles createDefaultDescriptionStyles()
        Creates the Styles container for descriptions of items (must be overridden by Designer to create EditorStyles).
        Overrides:
        createDefaultDescriptionStyles in class MLGroup
        Returns:
        A new EditorStyles container.
      • clone

        public EMLGroup clone()
        Clone must be overridden.
        Overrides:
        clone in class MLGroup
        Returns:
        The cloned container.
      • hasEditedPropertyListChanged

        public boolean hasEditedPropertyListChanged​(GEvent event)
        Verifies if the property has changed. This will rebuild the property editor if the type changes.
        Specified by:
        hasEditedPropertyListChanged in interface IDynamicPropertyEditorList
        Parameters:
        event - The property event.
        Returns:
        true if it changed.
      • getCNImage

        public org.eclipse.swt.graphics.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.
      • getPossibleChildren

        public java.lang.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.
      • getPossibleCompChildren

        public java.lang.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.
      • getPossibleContainerParents

        public java.lang.Class<?>[] getPossibleContainerParents()
        Gets the supported containers the component can be placed inside.
        Specified by:
        getPossibleContainerParents in interface IEUICompBase
        Returns:
        An array of UIContainer classes, or null for any.
      • getAcceptedLayoutMgrs

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

        public java.lang.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

        public java.lang.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

        public java.lang.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.
      • getSelectPropViewerFilter

        public org.eclipse.jface.viewers.ViewerFilter getSelectPropViewerFilter()
        Gets the viewer filter for the tree in the dialog for selecting extends property name.
        Specified by:
        getSelectPropViewerFilter in interface IExtendsSelection
      • getClassReference

        public EditorClassReference getClassReference​(java.lang.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 IJavaClassLinkEnabler
        Overrides:
        getClassReference in class MLGroup
        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).
      • getTransferProps

        public java.lang.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.
      • createListItemProp

        protected MLItemProp createListItemProp​(Atom atom)
        Creates a list item property.
        Overrides:
        createListItemProp in class MLGroup
        Parameters:
        atom - The name.
        Returns:
        The property.