Ejemplo n.º 1
0
 @Override
 public void populateBean(IframeEditor e) {
   srcTextField.setText(e.getSrc());
   parameterViewPane.populate(e.getParameters());
   this.horizontalCheck.setSelected(e.isOverflowx());
   this.verticalCheck.setSelected(e.isOverflowy());
 }
Ejemplo n.º 2
0
  private void initComponents() {
    this.setLayout(FRGUIPaneFactory.createBorderLayout());
    JPanel contentPane = FRGUIPaneFactory.createY_AXISBoxInnerContainer_L_Pane();
    contentPane.setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 0));
    JPanel attr = FRGUIPaneFactory.createNormalFlowInnerContainer_M_Pane();
    attr.add(
        horizontalCheck =
            new UICheckBox(Inter.getLocText("Preference-Horizontal_Scroll_Bar_Visible")));
    attr.add(
        verticalCheck = new UICheckBox(Inter.getLocText("Preference-Vertical_Scroll_Bar_Visible")));
    contentPane.add(attr);
    double p = TableLayout.PREFERRED;
    double f = TableLayout.FILL;
    double[] rowSize = {p, TableLayout.PREFERRED};
    double[] columnSize = {p, f};

    java.awt.Component[][] coms = {
      {new UILabel(Inter.getLocText("Form-Url") + ":"), srcTextField = new UITextField()},
      {
        new UILabel(Inter.getLocText("Parameter") + ":"),
        parameterViewPane = new ReportletParameterViewPane()
      }
    };
    parameterViewPane.setPreferredSize(new Dimension(400, 256));
    JPanel centerPane = TableLayoutHelper.createTableLayoutPane(coms, rowSize, columnSize);
    contentPane.add(centerPane);
    this.add(contentPane, BorderLayout.CENTER);
  }
Ejemplo n.º 3
0
 @Override
 public IframeEditor updateBean() {
   IframeEditor ob = new IframeEditor();
   ob.setSrc(srcTextField.getText());
   List<ParameterProvider> parameterList = parameterViewPane.update();
   ob.setParameters(parameterList.toArray(new ParameterProvider[parameterList.size()]));
   ob.setOverflowx(this.horizontalCheck.isSelected());
   ob.setOverflowy(this.verticalCheck.isSelected());
   return ob;
 }