|
|
@ -10,11 +10,9 @@ import com.fr.design.fun.WidgetPropertyUIProvider; |
|
|
|
import com.fr.design.fun.impl.AbstractFormElementCaseEditorProvider; |
|
|
|
import com.fr.design.fun.impl.AbstractFormElementCaseEditorProvider; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.mainframe.*; |
|
|
|
import com.fr.design.mainframe.*; |
|
|
|
import com.fr.design.mainframe.widget.editors.BooleanEditor; |
|
|
|
import com.fr.design.mainframe.widget.editors.ElementCaseToolBarEditor; |
|
|
|
import com.fr.design.mainframe.widget.editors.PaddingMarginEditor; |
|
|
|
import com.fr.design.mainframe.widget.editors.PaddingMarginEditor; |
|
|
|
import com.fr.design.mainframe.widget.editors.WLayoutBorderStyleEditor; |
|
|
|
import com.fr.design.mainframe.widget.editors.WLayoutBorderStyleEditor; |
|
|
|
import com.fr.design.mainframe.widget.renderer.LayoutBorderStyleRenderer; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.widget.renderer.PaddingMarginCellRenderer; |
|
|
|
|
|
|
|
import com.fr.form.FormElementCaseContainerProvider; |
|
|
|
import com.fr.form.FormElementCaseContainerProvider; |
|
|
|
import com.fr.form.FormElementCaseProvider; |
|
|
|
import com.fr.form.FormElementCaseProvider; |
|
|
|
import com.fr.form.FormProvider; |
|
|
|
import com.fr.form.FormProvider; |
|
|
@ -83,6 +81,13 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme |
|
|
|
CRPropertyDescriptor[] propertyTableEditor = new CRPropertyDescriptor[]{ |
|
|
|
CRPropertyDescriptor[] propertyTableEditor = new CRPropertyDescriptor[]{ |
|
|
|
new CRPropertyDescriptor("widgetName", this.data.getClass()) |
|
|
|
new CRPropertyDescriptor("widgetName", this.data.getClass()) |
|
|
|
.setI18NName(Inter.getLocText("Form-Widget_Name")), |
|
|
|
.setI18NName(Inter.getLocText("Form-Widget_Name")), |
|
|
|
|
|
|
|
new CRPropertyDescriptor("visible", this.data.getClass()).setI18NName( |
|
|
|
|
|
|
|
Inter.getLocText("FR-Designer_Widget-Visible")).setPropertyChangeListener(new PropertyChangeAdapter() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void propertyChange() { |
|
|
|
|
|
|
|
makeVisible(toData().isVisible());} |
|
|
|
|
|
|
|
}), |
|
|
|
new CRPropertyDescriptor("borderStyle", this.data.getClass()).setEditorClass( |
|
|
|
new CRPropertyDescriptor("borderStyle", this.data.getClass()).setEditorClass( |
|
|
|
WLayoutBorderStyleEditor.class).setI18NName( |
|
|
|
WLayoutBorderStyleEditor.class).setI18NName( |
|
|
|
Inter.getLocText("FR-Designer-Widget_Style")).putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
|
Inter.getLocText("FR-Designer-Widget_Style")).putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
@ -92,11 +97,12 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme |
|
|
|
public void propertyChange() { |
|
|
|
public void propertyChange() { |
|
|
|
initStyle(); |
|
|
|
initStyle(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}), |
|
|
|
}), |
|
|
|
new CRPropertyDescriptor("margin", this.data.getClass()).setEditorClass(PaddingMarginEditor.class) |
|
|
|
new CRPropertyDescriptor("margin", this.data.getClass()).setEditorClass(PaddingMarginEditor.class) |
|
|
|
.setI18NName(Inter.getLocText("FR-Layout_Padding")) |
|
|
|
.setI18NName(Inter.getLocText("FR-Layout_Padding")) |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced"), |
|
|
|
new CRPropertyDescriptor("showToolBar", this.data.getClass()).setEditorClass(BooleanEditor.class) |
|
|
|
new CRPropertyDescriptor("ToolBars", this.data.getClass()).setEditorClass(ElementCaseToolBarEditor.class) |
|
|
|
.setI18NName(Inter.getLocText("Form-EC_toolbar")) |
|
|
|
.setI18NName(Inter.getLocText("Form-EC_toolbar")) |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
|
}; |
|
|
|
}; |
|
|
|