public int getMaxLength ( ) { // Survey the first few to get the max length (Only called when setting up screen field) String string ; int maxLength = 1 ; for ( int index = 0 ; index < 10 ; index ++ ) { string = this . getNextConverter ( ) . convertIndexToDisStr ( index ) ; if ( index > 0 ) if ( string . length ( ) == 0 ) break ; // Far Enough if ( string . length ( ) > ( short ) maxLength ) maxLength = string . length ( ) ; } return maxLength ; }
Get the maximum length of this field . Survey the first 10 items in the display list and return the longest length .