Class CaptureScreenProp

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizigo.term.capture.prop.CaptureScreenProp
All Implemented Interfaces:
IPropDesigner, IPropUndoContext, EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable, IAdaptable

public class CaptureScreenProp extends PropCnr implements IPropDesigner, IPropUndoContext
This Capture Screen property container holds the screen capture and fields for a EE host screen.
  • Constructor Details

    • 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 Details

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

      public CaptureDesignerProp getDesigner()
      Gets the Designer Extension for Properties.
      Specified by:
      getDesigner in interface IPropDesigner
      Returns:
      The instance of the Designer Extension.
    • getName

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

      Clone must be overridden.
      Overrides:
      clone in class PropCnr
      Throws:
      CloneNotSupportedException - If cloning fails.
    • getPossibleChildren

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

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