Class EditorVSGroup

    • Constructor Detail

      • EditorVSGroup

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

        public EditorVSGroup​(Atom propertyAtom)
        Creates the VirtualSpace group 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

      • 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.
      • onEventSelf

        public void onEventSelf​(GEvent event)
        Checks for state change events and fires it to listeners.
        Specified by:
        onEventSelf in interface IGProp<GProp<?>[]>
        Overrides:
        onEventSelf in class VSComponent
        Parameters:
        event - The property event.
      • 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.
      • canCreateUI

        public boolean canCreateUI​(LinkData data)
        Method returning if this property could potentially be (action, field or table) or contain (group) properties that can create UI components when drag-dropped.

        The VSGroup recurses down its VS components to query them for creation support.

        Specified by:
        canCreateUI in interface IUICreationFromVS
        Parameters:
        data - The link data.
        Returns:
        true if the result would lead to UI creations, false otherwise.
      • addCreateUILinkOperations

        public void addCreateUILinkOperations​(LinkData data,
                                              java.util.Collection<ILinkOperation> linkOps)
        Adds all possible operations that could be done in a link operation for UI creation from VS.

        The VSGroup recurses down its VS components so that they can add what is required.

        Specified by:
        addCreateUILinkOperations in interface IUICreationFromVS
        Parameters:
        data - The link data.
        linkOps - List of link operations is filled in when operations are found.
      • verify

        public void 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 PropCnr
        Parameters:
        verification - The property verification class.