@ -48,6 +48,7 @@ public class MobileStyleDefinePane extends BasicBeanPane<MobileStyle> {
private LineComboBox borderType ;
private NewColorSelectBox borderColor ;
private UISpinner borderRadius ;
private NewColorSelectBox iconColor ;
private MobileStyleFontConfigPane fontConfigPane ;
MobileStyleDefinePane ( Widget widget , Class < ? extends MobileStyleCustomDefinePane > customBeanPaneClass ,
@ -69,6 +70,9 @@ public class MobileStyleDefinePane extends BasicBeanPane<MobileStyle> {
borderColor . setSelectObject ( ob . getBorderColor ( ) ) ;
}
borderRadius . setValue ( ob . getBorderRadius ( ) ) ;
if ( ob . getIconColor ( ) ! = null ) {
iconColor . setSelectObject ( ob . getIconColor ( ) ) ;
}
if ( ob . getFont ( ) ! = null ) {
fontConfigPane . populateBean ( ob . getFont ( ) ) ;
}
@ -83,6 +87,7 @@ public class MobileStyleDefinePane extends BasicBeanPane<MobileStyle> {
mobileStyle . setBorderType ( borderType . getSelectedLineStyle ( ) ) ;
mobileStyle . setBorderColor ( borderColor . getSelectObject ( ) ) ;
mobileStyle . setBorderRadius ( borderRadius . getValue ( ) ) ;
mobileStyle . setIconColor ( iconColor . getSelectObject ( ) ) ;
mobileStyle . setFont ( fontConfigPane . updateBean ( ) ) ;
return mobileStyle ;
}
@ -123,16 +128,12 @@ public class MobileStyleDefinePane extends BasicBeanPane<MobileStyle> {
createBackgroundPane ( ) ;
createBorderPane ( ) ;
createIconSettingPane ( ) ;
createFontPane ( ) ;
}
private void createBackgroundPane ( ) {
colorSelectBox = new ColorSelectBox ( NORMAL_COMBO_WIDTH ) ;
colorSelectBox . addSelectChangeListener ( new ChangeListener ( ) {
@Override
public void stateChanged ( ChangeEvent e ) {
}
} ) ;
JPanel backgroundPane = createLeftRightComponentsPane ( createConfigLabel ( Toolkit . i18nText ( "Fine-Design_Mobile_Widget_Background" ) ) , colorSelectBox ) ;
commomPane . add ( backgroundPane ) ;
@ -143,11 +144,6 @@ public class MobileStyleDefinePane extends BasicBeanPane<MobileStyle> {
borderType . setSelectedLineStyle ( Constants . LINE_THIN ) ;
borderType . setPreferredSize ( new Dimension ( NORMAL_COMBO_WIDTH + 15 , 20 ) ) ;
borderColor = new NewColorSelectBox ( NORMAL_COMBO_WIDTH ) ;
borderColor . addSelectChangeListener ( new ChangeListener ( ) {
@Override
public void stateChanged ( ChangeEvent e ) {
}
} ) ;
borderRadius = new UISpinner ( 0 , Integer . MAX_VALUE , 1 , 2 ) ;
borderRadius . setPreferredSize ( new Dimension ( NORMAL_COMBO_WIDTH + 20 , 20 ) ) ;
commomPane . add ( createLeftRightComponentsPane ( createConfigLabel ( Toolkit . i18nText ( "Fine-Design_Mobile_Widget_BorderType" ) ) , borderType ) ) ;
@ -155,6 +151,11 @@ public class MobileStyleDefinePane extends BasicBeanPane<MobileStyle> {
commomPane . add ( createLeftRightComponentsPane ( createConfigLabel ( Toolkit . i18nText ( "Fine-Design_Mobile_Widget_BorderRadius" ) ) , borderRadius ) ) ;
}
private void createIconSettingPane ( ) {
iconColor = new NewColorSelectBox ( NORMAL_COMBO_WIDTH ) ;
commomPane . add ( createLeftRightComponentsPane ( createConfigLabel ( Toolkit . i18nText ( "Fine-Design_Mobile_Widget_Icon_Color" ) ) , iconColor ) ) ;
}
private void createFontPane ( ) {
fontConfigPane = new MobileStyleFontConfigPane ( ) ;
commomPane . add ( createLeftRightComponentsPane ( createConfigLabel ( Toolkit . i18nText ( "Fine-Design_Mobile_Widget_Font" ) ) , fontConfigPane ) ) ;