|
|
@ -10,9 +10,11 @@ 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.ElementCaseToolBarEditor; |
|
|
|
import com.fr.design.mainframe.widget.editors.BooleanEditor; |
|
|
|
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; |
|
|
@ -81,13 +83,6 @@ 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") |
|
|
@ -97,12 +92,11 @@ 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("ToolBars", this.data.getClass()).setEditorClass(ElementCaseToolBarEditor.class) |
|
|
|
new CRPropertyDescriptor("showToolBar", this.data.getClass()).setEditorClass(BooleanEditor.class) |
|
|
|
.setI18NName(Inter.getLocText("Form-EC_toolbar")) |
|
|
|
.setI18NName(Inter.getLocText("Form-EC_toolbar")) |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced") |
|
|
|
}; |
|
|
|
}; |
|
|
|