|
|
@ -90,28 +90,28 @@ public class XButton extends XWidgetCreator { |
|
|
|
protected CRPropertyDescriptor creatNonListenerStyle(int i) throws IntrospectionException{ |
|
|
|
protected CRPropertyDescriptor creatNonListenerStyle(int i) throws IntrospectionException{ |
|
|
|
CRPropertyDescriptor[] crPropertyDescriptors = { |
|
|
|
CRPropertyDescriptor[] crPropertyDescriptors = { |
|
|
|
new CRPropertyDescriptor("text", this.data.getClass()).setI18NName( |
|
|
|
new CRPropertyDescriptor("text", this.data.getClass()).setI18NName( |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Button_Name")).putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Button_Name")).putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced"), |
|
|
|
new CRPropertyDescriptor("customStyle", this.data.getClass()).setI18NName( |
|
|
|
new CRPropertyDescriptor("customStyle", this.data.getClass()).setI18NName( |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Button_Style")).setEditorClass( |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Button_Style")).setEditorClass( |
|
|
|
ButtonTypeEditor.class).putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
ButtonTypeEditor.class).putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced"), |
|
|
|
new CRPropertyDescriptor("initialBackground", this.data.getClass()).setEditorClass( |
|
|
|
new CRPropertyDescriptor("initialBackground", this.data.getClass()).setEditorClass( |
|
|
|
ImgBackgroundEditor.class).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Background_Initial")).putKeyValue( |
|
|
|
ImgBackgroundEditor.class).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Background_Initial")).putKeyValue( |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced"), |
|
|
|
new CRPropertyDescriptor("overBackground", this.data.getClass()).setEditorClass( |
|
|
|
new CRPropertyDescriptor("overBackground", this.data.getClass()).setEditorClass( |
|
|
|
ImgBackgroundEditor.class).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Background_Over")).putKeyValue( |
|
|
|
ImgBackgroundEditor.class).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Background_Over")).putKeyValue( |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced"), |
|
|
|
new CRPropertyDescriptor("clickBackground", this.data.getClass()).setEditorClass( |
|
|
|
new CRPropertyDescriptor("clickBackground", this.data.getClass()).setEditorClass( |
|
|
|
ImgBackgroundEditor.class).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Background_Click")).putKeyValue( |
|
|
|
ImgBackgroundEditor.class).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Background_Click")).putKeyValue( |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced"), |
|
|
|
new CRPropertyDescriptor("font", this.data.getClass()).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FR_Font")) |
|
|
|
new CRPropertyDescriptor("font", this.data.getClass()).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_FR_Font")) |
|
|
|
.setEditorClass(FontEditor.class).setRendererClass(FontCellRenderer.class).putKeyValue( |
|
|
|
.setEditorClass(FontEditor.class).setRendererClass(FontCellRenderer.class).putKeyValue( |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced"), |
|
|
|
new CRPropertyDescriptor("iconName", this.data.getClass()).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Icon")) |
|
|
|
new CRPropertyDescriptor("iconName", this.data.getClass()).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Icon")) |
|
|
|
.setEditorClass(IconEditor.class).setRendererClass(IconCellRenderer.class).putKeyValue( |
|
|
|
.setEditorClass(IconEditor.class).setRendererClass(IconCellRenderer.class).putKeyValue( |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced"), |
|
|
|
new CRPropertyDescriptor("hotkeys", this.data.getClass()) |
|
|
|
new CRPropertyDescriptor("hotkeys", this.data.getClass()) |
|
|
|
.setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Button_Hot_keys")) |
|
|
|
.setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Button_Hot_keys")) |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced") |
|
|
|
.setEditorClass(ShortCutTextEditor.class) |
|
|
|
.setEditorClass(ShortCutTextEditor.class) |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
@ -163,7 +163,7 @@ public class XButton extends XWidgetCreator { |
|
|
|
return new CRPropertyDescriptor[]{ |
|
|
|
return new CRPropertyDescriptor[]{ |
|
|
|
new CRPropertyDescriptor("text", this.data.getClass()) |
|
|
|
new CRPropertyDescriptor("text", this.data.getClass()) |
|
|
|
.setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Button_Name")) |
|
|
|
.setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Button_Name")) |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced") |
|
|
|
.setPropertyChangeListener(new PropertyChangeAdapter() { |
|
|
|
.setPropertyChangeListener(new PropertyChangeAdapter() { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -173,7 +173,7 @@ public class XButton extends XWidgetCreator { |
|
|
|
}), |
|
|
|
}), |
|
|
|
new CRPropertyDescriptor("customStyle", this.data.getClass()).setI18NName( |
|
|
|
new CRPropertyDescriptor("customStyle", this.data.getClass()).setI18NName( |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Button_Style")).setEditorClass( |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Button_Style")).setEditorClass( |
|
|
|
ButtonTypeEditor.class).putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
|
ButtonTypeEditor.class).putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced") |
|
|
|
.setPropertyChangeListener(new PropertyChangeAdapter() { |
|
|
|
.setPropertyChangeListener(new PropertyChangeAdapter() { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -183,10 +183,10 @@ public class XButton extends XWidgetCreator { |
|
|
|
}), |
|
|
|
}), |
|
|
|
new CRPropertyDescriptor("iconName", this.data.getClass()).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Icon")) |
|
|
|
new CRPropertyDescriptor("iconName", this.data.getClass()).setI18NName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Icon")) |
|
|
|
.setEditorClass(IconEditor.class).setRendererClass(IconCellRenderer.class).putKeyValue( |
|
|
|
.setEditorClass(IconEditor.class).setRendererClass(IconCellRenderer.class).putKeyValue( |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced"), |
|
|
|
new CRPropertyDescriptor("hotkeys", this.data.getClass()).setI18NName( |
|
|
|
new CRPropertyDescriptor("hotkeys", this.data.getClass()).setI18NName( |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Button_Hot_keys")) |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Button_Hot_keys")) |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Fine-Design_Basic_Advanced") |
|
|
|
.setEditorClass(ShortCutTextEditor.class) |
|
|
|
.setEditorClass(ShortCutTextEditor.class) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|