Class CaptureScreenProp

    • Constructor Detail

      • CaptureScreenProp

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

        public CaptureScreenProp​(Atom propertyAtom)
        Creates the capture screen 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

      • usesPropIndex

        public final boolean usesPropIndex()
        Use of index for the property container is enabled.
        Specified by:
        usesPropIndex in interface IPropCnr
        Overrides:
        usesPropIndex in class PropCnr
        Returns:
        true for this container.
      • setScreen

        public void setScreen​(EEScreen screen)
        Sets the screen and builds the properties.
        Parameters:
        screen - Assigns the screen.
      • getScreen

        public EEScreen getScreen()
        Gets the screen.
        Returns:
        The screen, null if not assigned.
      • getName

        public java.lang.String getName()
        Gets the name of the screen.
        Returns:
        The EE screen name.
      • clone

        public CaptureScreenProp clone()
                                throws java.lang.CloneNotSupportedException
        Clone must be overridden.
        Overrides:
        clone in class PropCnr
        Throws:
        java.lang.CloneNotSupportedException - If cloning fails.
      • 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.
      • getUndoContext

        public org.eclipse.core.commands.operations.IUndoContext getUndoContext()
        Gets the Undo Context.
        Specified by:
        getUndoContext in interface IPropUndoContext
        Returns:
        The undo context.
      • getFields

        public CaptureFieldProp[] getFields()
        Gets all fields.
        Returns:
        All fields, never null.
      • createField

        public CaptureDesignerProp createField​(int x,
                                               int y,
                                               int length)
        Creates a new field.
        Parameters:
        x - X position.
        y - Y position.
        length - The length, can wrap screen.
        Returns:
        The field property created.
      • reorder

        public void reorder()
        Reorders the properties according to position/length.