|
|
|
@ -90,28 +90,28 @@ public class XButton extends XWidgetCreator {
|
|
|
|
|
protected CRPropertyDescriptor creatNonListenerStyle(int i) throws IntrospectionException{ |
|
|
|
|
CRPropertyDescriptor[] crPropertyDescriptors = { |
|
|
|
|
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( |
|
|
|
|
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( |
|
|
|
|
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( |
|
|
|
|
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( |
|
|
|
|
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")) |
|
|
|
|
.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")) |
|
|
|
|
.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(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) |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
@ -163,7 +163,7 @@ public class XButton extends XWidgetCreator {
|
|
|
|
|
return new CRPropertyDescriptor[]{ |
|
|
|
|
new CRPropertyDescriptor("text", this.data.getClass()) |
|
|
|
|
.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() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -173,7 +173,7 @@ public class XButton extends XWidgetCreator {
|
|
|
|
|
}), |
|
|
|
|
new CRPropertyDescriptor("customStyle", this.data.getClass()).setI18NName( |
|
|
|
|
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() { |
|
|
|
|
|
|
|
|
|
@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")) |
|
|
|
|
.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( |
|
|
|
|
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) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|