|
|
|
package com.fr.poly;
|
|
|
|
|
|
|
|
import java.awt.BorderLayout;
|
|
|
|
|
|
|
|
import javax.swing.Icon;
|
|
|
|
|
|
|
|
import com.fr.design.mainframe.DockingView;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 聚合报表的聚合块属性编辑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);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void update(){
|
|
|
|
polyBlockProperTable.setBlockName(this.designer.getEditingTarget());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getViewTitle() {
|
|
|
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Property_Table");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Icon getViewIcon() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Location preferredLocation() {
|
|
|
|
return Location.WEST_BELOW;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|