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.
|
|
|
package com.fr.plugin.form.widget.ui;
|
|
|
|
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory;
|
|
|
|
import com.fr.design.widget.ui.AbstractDataModify;
|
|
|
|
import com.fanruan.api.design.DesignKit;
|
|
|
|
import com.fr.plugin.form.widget.core.RHIframe;
|
|
|
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by richie on 16/3/28.
|
|
|
|
*/
|
|
|
|
public class RHCellPane extends AbstractDataModify<RHIframe> {
|
|
|
|
|
|
|
|
private RHFramePane attrPane;
|
|
|
|
private RHIframe iframe;
|
|
|
|
|
|
|
|
public RHCellPane() {
|
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout());
|
|
|
|
attrPane = new RHFramePane();
|
|
|
|
this.add(attrPane, BorderLayout.CENTER);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void populateBean(RHIframe rhIframe) {
|
|
|
|
this.iframe = rhIframe;
|
|
|
|
attrPane.populate(rhIframe.getAttr());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public RHIframe updateBean() {
|
|
|
|
if (iframe != null) {
|
|
|
|
iframe.setAttr(attrPane.update());
|
|
|
|
}
|
|
|
|
return iframe;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected String title4PopupWindow() {
|
|
|
|
return DesignKit.i18nText("Plugin-RH_Iframe_Name");
|
|
|
|
}
|
|
|
|
}
|