ActiveTextArea Component

Provides feedback by displaying an active character count. The maximum, 'suggested', character count, called the overdraft. is exceeded, the amount exceeded is display to provide guidance in trimming the text to fit the allowed character limit.

NB: This component will not truncate the user's input text to maximum character count. This should be done by the business logic on the server side. For example, a field could be set to allow a maximum of 200 characters but the server side could allow 256 characters to be written to the database.

ActiveTextArea - Demonstration

Three independent ActiveTextArea components are show below. All components are being rendered using the Echo Freestanding Client JavaScript class, FreeClient , no Java is running on the server. The top component set height and width only, no overdraft limit. The second component implements an overdraft limit, while the third component implements a foreground/background color scheme to emphasis the overdraft.

ActiveTextArea - Summary API

                   
    package org.informagen.echo.app;
    
    import nextapp.echo.app.Color;
    import nextapp.echo.app.TextArea;

    public class ActiveTextArea extends TextArea {

        public void setOverdraft(int overdraft)
        public int getOverdraft() 
           
        public void setOverdraftForegroundColor(Color color) 
        public Color getOverdraftForegroundColor() 
    
        public void setOverdraftBackgroundColor(Color color) 
        public Color getOverdraftBackgroundColor() 
    
    }