Class EditorVSField

    • Constructor Detail

      • EditorVSField

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

        public EditorVSField​(Atom propertyAtom)
        Creates the VirtualSpace Field property container with the specified name. All system-reserved names for components begins with "$".
        propertyAtom - the name of the component, unique within it's parent.
    • Method Detail

      • getActors

        public EditorFieldActors getActors()
        Gets the field actors container.
        getActors in class VSField
        The field actors for this field if the field is located in the VirtualSpace or in a VirtualSpace group, otherwise the table column field actors if inside a table.
      • onEventSelf

        public void onEventSelf​(GEvent event)
        Checks for state change events and fires it to listeners.
        Specified by:
        onEventSelf in interface IGProp<GProp<?>[]>
        onEventSelf in class VSField
        event - The property event.
      • getTable

        public EditorVSTable getTable()
        Gets the table.
        getTable in class VSField
        The table instance, or null if this field is not added to a table, i.e. directly in the VirtualSpace or a VirtualSpace group.
      • getColumn

        public EditorVSColumnHeader getColumn()
        Gets the column instance of this field when it is in a table.
        getColumn in class VSField
        The column instance or null if not inside table or column is not found.
      • getRows

        public EditorVSRows getRows()
        Gets the rows container.
        getRows in class VSField
        The rows instance, or null if field is not inside a table.
      • onListenerChanged

        protected void onListenerChanged​(IVSFieldListener listener)
        Called when a listener is added or removed. This method is overridden by the Designer to update connections.
        onListenerChanged in class VSField
      • isBackReferenceValid

        public java.lang.String isBackReferenceValid​(AnnotationType annotationType,
                                                     java.lang.String name,
                                                     boolean isRefOnly)
        Validates if the back-reference specified is referenced in the first place, i.e. is valid or not. /** Validates if the back-reference specified is referenced in the first place, i.e. is valid or not.
        Specified by:
        isBackReferenceValid in interface IBackReferenceProvider
        annotationType - The annotation type.
        name - The class or method name.
        isRefOnly - Flag indicating the back reference is not required, but must be valid otherwise.
        null for valid, otherwise an error message.
      • 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
        getExtendsPossibleClasses in class PropCnr
        List of supported classes, or null for none.
      • getRelativeMethodAnnotationReference

        public java.lang.String getRelativeMethodAnnotationReference()
        Gets the annotation relative reference to the element.
        Specified by:
        getRelativeMethodAnnotationReference in interface IJavaMethodLinkEnabler
        The relative reference in the method annotation of e.g. "OnUIFocus" for this component.
      • isLinkCapable

        public org.eclipse.core.runtime.IStatus isLinkCapable​(LinkData data)
        Returns if this property container could potentially be link capable.

        This call is done many times during drag-drop and must be very fast and not cause too much garbage collection.

        Specified by:
        isLinkCapable in interface IJavaMethodLinkEnabler
        Specified by:
        isLinkCapable in interface ILinkCapable
        Specified by:
        isLinkCapable in interface IUICreationFromVS
        data - The link data.
        The status of capability of the operation.
      • 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<?>[]>
        verify in class PropCnr
        verification - The property verification class.
      • getAllowNullSeverity

        public int getAllowNullSeverity()
        Returns whether allowNull has an error.
        The severity, or -1 for none.