Class InputFieldRenderer

    • Constructor Detail

      • InputFieldRenderer

        public InputFieldRenderer​(InputField modelElement)
        Creates a new InputFieldRenderer instance.
        Parameters:
        modelElement - the model element
    • Method Detail

      • getNextRenderer

        public IRenderer getNextRenderer()
        Gets a new instance of this class to be used as a next renderer, after this renderer is used, if IRenderer.layout(LayoutContext) is called more than once.
        Returns:
        new renderer instance
      • getSize

        public int getSize()
        Gets the size of the input field.
        Returns:
        the input field size
      • isPassword

        public boolean isPassword()
        Checks if the input field is a password field.
        Returns:
        true, if the input field is a password field
      • getProperty

        public <T1> T1 getProperty​(int key)
        Gets the property from this entity. Compared to IPropertyContainer.getOwnProperty(int), this method can check parent's properties, styles, etc, depending on the origin of the instance
        Specified by:
        getProperty in interface IPropertyContainer
        Overrides:
        getProperty in class AbstractRenderer
        Type Parameters:
        T1 - the return type associated with the property
        Parameters:
        key - the property to be retrieved
        Returns:
        the value of the given property. null will be returned if the property value was not found
      • obfuscatePassword

        private java.lang.String obfuscatePassword​(java.lang.String text)
        Obfuscates the content of a password input field.
        Parameters:
        text - the password
        Returns:
        a string consisting of '*' characters.