@ -41,10 +41,13 @@ public class FreeButtonDefinePane extends ButtonDefinePane<FreeButton> {
}
}
public void populateSubButtonPane ( FreeButton e ) {
public void populateSubButtonPane ( FreeButton e ) {
if ( containsExtraPane ) {
return ;
}
backgroundCompPane . populate ( e ) ;
backgroundCompPane . populate ( e ) ;
frFontPane . setVisible ( e . isCustomStyle ( ) ) ;
frFontPane . setVisible ( e . isCustomStyle ( ) ) ;
fontLabel . setVisible ( e . isCustomStyle ( ) ) ;
fontLabel . setVisible ( e . isCustomStyle ( ) ) ;
if ( e . isCustomStyle ( ) ) {
if ( e . isCustomStyle ( ) ) {
FRFont frFont = e . getFont ( ) ;
FRFont frFont = e . getFont ( ) ;
if ( frFont ! = null ) {
if ( frFont ! = null ) {
frFontPane . populateBean ( e . getFont ( ) ) ;
frFontPane . populateBean ( e . getFont ( ) ) ;
@ -54,13 +57,15 @@ public class FreeButtonDefinePane extends ButtonDefinePane<FreeButton> {
public FreeButton updateSubButtonPane ( ) {
public FreeButton updateSubButtonPane ( ) {
FreeButton freeButton = ( FreeButton ) creator . toData ( ) ;
FreeButton freeButton = ( FreeButton ) creator . toData ( ) ;
if ( ! containsExtraPane ) {
backgroundCompPane . update ( freeButton ) ;
backgroundCompPane . update ( freeButton ) ;
frFontPane . setVisible ( freeButton . isCustomStyle ( ) ) ;
frFontPane . setVisible ( freeButton . isCustomStyle ( ) ) ;
fontLabel . setVisible ( freeButton . isCustomStyle ( ) ) ;
fontLabel . setVisible ( freeButton . isCustomStyle ( ) ) ;
if ( freeButton . isCustomStyle ( ) ) {
if ( freeButton . isCustomStyle ( ) ) {
FRFont frFont = freeButton . getFont ( ) = = null ? FRFont . getInstance ( ) : freeButton . getFont ( ) ;
FRFont frFont = freeButton . getFont ( ) = = null ? FRFont . getInstance ( ) : freeButton . getFont ( ) ;
freeButton . setFont ( frFontPane . update ( frFont ) ) ;
freeButton . setFont ( frFontPane . update ( frFont ) ) ;
}
}
}
return freeButton ;
return freeButton ;
}
}
}
}