protected void updateGui ( ) { ButtonLayoutStyle buttonButtonLayoutStyle = buttonAction . getButtonLayoutStyle ( ) ; if ( ButtonLayoutStyle . ICON_TITLE_AND_DESCRIPTION . equals ( buttonButtonLayoutStyle ) ) { buildGuiWithDescription ( ) ; } else { // LayoutParameter.Layout.ICON_AND_TITLE || null || ... setWidth ( 50 ) ; if ( titleAlignment . equals ( TitleAlignment . BOTTOM ) ) { setHeight100 ( ) ; outer = new VStack ( ) ; outer . setOverflow ( Overflow . VISIBLE ) ; outer . setWidth ( GuwLayout . ribbonButtonWidth ) ; outer . setAutoHeight ( ) ; outer . addMember ( icon ) ; if ( showTitles && ! GuwLayout . hideRibbonTitles ) { titleLabel . setBaseStyle ( getBaseStyle ( ) + "LargeTitle" ) ; titleLabel . setAutoHeight ( ) ; titleLabel . setWidth ( GuwLayout . ribbonButtonWidth ) ; outer . addMember ( titleLabel ) ; } outer . setAlign ( Alignment . CENTER ) ; } else { setAutoHeight ( ) ; outer = new HStack ( GuwLayout . ribbonButtonInnerMargin ) ; outer . setOverflow ( Overflow . VISIBLE ) ; outer . setWidth100 ( ) ; outer . setAutoHeight ( ) ; outer . addMember ( icon ) ; if ( showTitles ) { titleLabel . setBaseStyle ( getBaseStyle ( ) + "SmallTitle" ) ; titleLabel . setAutoHeight ( ) ; titleLabel . setAutoWidth ( ) ; outer . addMember ( titleLabel ) ; } } } }
Update the GUI to reflect the settings .