static public < C , T extends C > Value < C , T > percentWidth ( Toolkit < C , T > toolkit , final float percent , final C widget ) { return new Value < C , T > ( toolkit ) { @ Override public float get ( Cell < C , T > cell ) { return toolkit . getWidth ( widget ) * percent ; } @ Override public float get ( Object table ) { return toolkit . getWidth ( widget ) * percent ; } } ; }
Returns a value that is a percentage of the specified widget s width .