帆软报表设计器源代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.3 KiB

package com.fr.poly;
import java.awt.BorderLayout;
import javax.swing.Icon;
import com.fr.design.mainframe.DockingView;
import com.fr.general.Inter;
/**
* 聚合报表的聚合块属性编辑docking
* @editor zhou
* @since 2012-3-23下午3:41:33
*/
public class PolyBlockProperPane extends DockingView {
public static PolyBlockProperPane getInstance(PolyDesigner designer) {
HOLDER.singleton.setEditingPolyDesigner(designer);
return HOLDER.singleton;
}
private static class HOLDER {
private static PolyBlockProperPane singleton = new PolyBlockProperPane();
}
private PolyDesigner designer;
private PolyBlockProperTable polyBlockProperTable;
private PolyBlockProperPane() {
polyBlockProperTable = new PolyBlockProperTable();
this.setLayout(new BorderLayout());
this.add(polyBlockProperTable, BorderLayout.CENTER);
}
private void setEditingPolyDesigner(PolyDesigner designer) {
this.designer = designer;
}
@Override
public void refreshDockingView() {
polyBlockProperTable.populate(designer);
}
@Override
public String getViewTitle() {
return Inter.getLocText("Form-Widget_Property_Table");
}
@Override
public Icon getViewIcon() {
return null;
}
@Override
public Location preferredLocation() {
return Location.WEST_BELOW;
}
}