public int getMaxValue ( ) { if ( type == V4L4JConstants . CTRL_TYPE_LONG ) throw new UnsupportedMethod ( "This control is a long control and does not support calls to getMaxValue()" ) ; synchronized ( state ) { if ( state . isNotReleased ( ) ) return max ; else throw new StateException ( "This control has been released and must not be used" ) ; } }
This method retrieves the maximum value this control will accept . If this control is a string control this method returns the maximum string size that can be set on this control .