Class ElementProperties

    • Method Detail

      • getProperties

        public List<Key> getProperties()
        Returns the properties of this object.
        Returns:
        the properties of this object
      • getPropertyType

        public ObjectType getPropertyType​(Key key)
        Returns the java script type of the property.
        Parameters:
        key - name of the java script property.
        Returns:
        the java script type of the property.
      • getIntValue

        public int getIntValue​(Key key)
        Returns a value (int) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property
      • getIntValues

        public List<Integer> getIntValues​(Key key)
        Returns a value (list of integers) in the embedded JavaScript object at specific property.
        This must be used when a java script property can contain an array or a integer.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property (list of integers)
      • getDoubleValue

        public double getDoubleValue​(Key key)
        Returns a value (double) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property
      • getDoubleValues

        public List<Double> getDoubleValues​(Key key)
        Returns a value (list of doubles) in the embedded JavaScript object at specific property.
        This must be used when a java script property can contain an array or a double.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property (list of doubles)
      • getBooleanValue

        public boolean getBooleanValue​(Key key)
        Returns a value (boolean) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property
      • getStringValue

        public String getStringValue​(Key key)
        Returns a value (string) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property
      • getStringValues

        public List<String> getStringValues​(Key key)
        Returns a value (list of strings) in the embedded JavaScript object at specific property.
        This must be used when a java script property can contain an array or a string.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property (list of strings)
      • getDateValue

        public Date getDateValue​(Key key)
        Returns a value (date) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property
      • getCanvasValue

        public Canvas getCanvasValue​(Key key)
        Returns a value (canvas) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property
      • getImgValue

        public Img getImgValue​(Key key)
        Returns a value (image) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property
      • getCanvasGradientValue

        public CanvasGradientItem getCanvasGradientValue​(Key key)
        Returns a value ((CanvasGradientItem)) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property
      • getCanvasPatternValue

        public CanvasPatternItem getCanvasPatternValue​(Key key)
        Returns a value (CanvasPatternItem) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property
      • getEnumeratedValue

        public <T extends Key> T getEnumeratedValue​(Key key,
                                                    T[] enumValues)
        Returns a value (key) in the embedded JavaScript object at specific property.
        Type Parameters:
        T - type of key
        Parameters:
        key - key of the property of JavaScript object.
        enumValues - all enumeration values
        Returns:
        value of the property
      • getEnumeratedValues

        public <T extends KeyList<T> getEnumeratedValues​(Key key,
                                                           T[] enumValues)
        Returns a value (list of Key) in the embedded JavaScript object at specific property.
        Type Parameters:
        T - type of key
        Parameters:
        key - key of the property of JavaScript object.
        enumValues - all enumeration values
        Returns:
        value of the property (list of Key)
      • getHtmlElementValue

        public BaseHtmlElement getHtmlElementValue​(Key key)
        Returns a value (BaseHtmlElement) in the embedded JavaScript object at specific property.
        Parameters:
        key - key of the property of JavaScript object.
        Returns:
        value of the property