public void setInputWidth ( final int inputWidth ) { if ( inputWidth > 100 ) { throw new IllegalArgumentException ( "inputWidth (" + inputWidth + ") cannot be greater than 100 percent." ) ; } getOrCreateComponentModel ( ) . inputWidth = Math . max ( 0 , inputWidth ) ; }
Sets the desired width of the input field as a percentage of the available space .