public static void createHeader2Label ( final AbstractOrderedLayout panel , final String content ) { final Label label = new Label ( content ) ; label . setStyleName ( "Level2Header" ) ; panel . addComponent ( label ) ; panel . setExpandRatio ( label , ContentRatio . SMALL ) ; }
Creates a new Label object .