|
|
@ -7,19 +7,22 @@ import com.fr.design.designer.creator.XCreator; |
|
|
|
import com.fr.design.form.util.XCreatorConstants; |
|
|
|
import com.fr.design.form.util.XCreatorConstants; |
|
|
|
import com.fr.design.gui.itable.AbstractPropertyTable; |
|
|
|
import com.fr.design.gui.itable.AbstractPropertyTable; |
|
|
|
import com.fr.design.gui.itable.PropertyGroup; |
|
|
|
import com.fr.design.gui.itable.PropertyGroup; |
|
|
|
import com.fr.design.gui.xtable.PropertyGroupModel; |
|
|
|
import com.fr.design.gui.xtable.ReportAppPropertyGroupModel; |
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
import com.fr.design.mainframe.WidgetPropertyPane; |
|
|
|
import com.fr.design.mainframe.WidgetPropertyPane; |
|
|
|
import com.fr.design.mainframe.widget.editors.DoubleEditor; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.widget.editors.InChangeBooleanEditor; |
|
|
|
import com.fr.design.mainframe.widget.editors.InChangeBooleanEditor; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.widget.editors.RefinedDoubleEditor; |
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
import com.fr.form.ui.ElementCaseEditor; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
import com.fr.stable.fun.ReportFitAttrProvider; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.table.TableModel; |
|
|
|
import javax.swing.table.TableModel; |
|
|
|
import java.beans.IntrospectionException; |
|
|
|
import java.beans.IntrospectionException; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Created by Administrator on 2016/5/16/0016. |
|
|
|
* Created by Administrator on 2016/5/16/0016. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -42,6 +45,8 @@ public class ElementCasePropertyTable extends AbstractPropertyTable{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected List<CRPropertyDescriptor> createNonListenerProperties() throws IntrospectionException { |
|
|
|
protected List<CRPropertyDescriptor> createNonListenerProperties() throws IntrospectionException { |
|
|
|
|
|
|
|
ReportFitAttrProvider attr = designer.getTarget().getFitAttr(); |
|
|
|
|
|
|
|
|
|
|
|
CRPropertyDescriptor[] propertyTableEditor = { |
|
|
|
CRPropertyDescriptor[] propertyTableEditor = { |
|
|
|
new CRPropertyDescriptor("horziontalAttr", this.xCreator.toData().getClass()).setEditorClass(MobileFitEditor.class) |
|
|
|
new CRPropertyDescriptor("horziontalAttr", this.xCreator.toData().getClass()).setEditorClass(MobileFitEditor.class) |
|
|
|
.setRendererClass(MobileFitRender.class) |
|
|
|
.setRendererClass(MobileFitRender.class) |
|
|
@ -65,7 +70,7 @@ public class ElementCasePropertyTable extends AbstractPropertyTable{ |
|
|
|
|
|
|
|
|
|
|
|
protected CRPropertyDescriptor[] revealHeightLimit() throws IntrospectionException { |
|
|
|
protected CRPropertyDescriptor[] revealHeightLimit() throws IntrospectionException { |
|
|
|
CRPropertyDescriptor heightLimitProperty = new CRPropertyDescriptor("heightPercent", this.xCreator.toData().getClass()) |
|
|
|
CRPropertyDescriptor heightLimitProperty = new CRPropertyDescriptor("heightPercent", this.xCreator.toData().getClass()) |
|
|
|
.setEditorClass(DoubleEditor.class) |
|
|
|
.setEditorClass(RefinedDoubleEditor.class) |
|
|
|
.setI18NName(Inter.getLocText("Form-EC_heightpercent")) |
|
|
|
.setI18NName(Inter.getLocText("Form-EC_heightpercent")) |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced"); |
|
|
|
.putKeyValue(XCreatorConstants.PROPERTY_CATEGORY, "Advanced"); |
|
|
|
ArrayList<CRPropertyDescriptor> defaultList = (ArrayList<CRPropertyDescriptor>) createNonListenerProperties(); |
|
|
|
ArrayList<CRPropertyDescriptor> defaultList = (ArrayList<CRPropertyDescriptor>) createNonListenerProperties(); |
|
|
@ -91,7 +96,7 @@ public class ElementCasePropertyTable extends AbstractPropertyTable{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
groups.add(new PropertyGroup(new PropertyGroupModel(Inter.getLocText("FR-Designer_Fit-App"), xCreator, propertyTableEditor, designer))); |
|
|
|
groups.add(new PropertyGroup(new ReportAppPropertyGroupModel(Inter.getLocText("FR-Designer_Fit-App"), xCreator, propertyTableEditor, designer))); |
|
|
|
|
|
|
|
|
|
|
|
TableModel model = new BeanTableModel(); |
|
|
|
TableModel model = new BeanTableModel(); |
|
|
|
setModel(model); |
|
|
|
setModel(model); |
|
|
@ -107,4 +112,9 @@ public class ElementCasePropertyTable extends AbstractPropertyTable{ |
|
|
|
this.designer = designer; |
|
|
|
this.designer = designer; |
|
|
|
initPropertyGroups(this.designer.getTarget()); |
|
|
|
initPropertyGroups(this.designer.getTarget()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public boolean isCellEditable(int row, int column) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|