Class ImagePreview

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable

public class ImagePreview extends PropCnr
Image preview property for use with any UI component or container. The image is stored through interface so that e.g. a distributed database can be used. The JavaScript client in Panel Editor mode is the one single instance providing this property with image data.
Author:
Christopher Mindus
  • Constructor Details

    • ImagePreview

      public ImagePreview()
      Creates an Image preview Property Container without name with a null value.
    • ImagePreview

      public ImagePreview(Atom propertyAtom)
      Creates an Image preview Property Container with the specified name with a null value.
      Parameters:
      propertyAtom - the property atom.
  • Method Details

    • getDOMElement

      public DOMElement getDOMElement()
      Gets the DOMElement.
      Returns:
      The instance, or null if not yet created on the client side.
    • equalsTree

      protected Object equalsTree(PropCnr pc2, int how)
      Checks for equality in the whole container structure.

      NOTE: This method should not be overridden except in extreme situations, e.g. for MememtoPropCnr.

      Overrides:
      equalsTree in class PropCnr
      Parameters:
      pc2 - The property value to compare with.
      how - Flags EQC_* values for equal checking.
      Returns:
      Both atom and value are equal on all levels.