package com.fr.design.widget.ui; import com.fr.design.layout.FRGUIPaneFactory; import com.fr.form.ui.WriteAbleRepeatEditor; import javax.swing.*; import java.awt.*; public abstract class WritableRepeatEditorPane extends DirectWriteEditorDefinePane { public WritableRepeatEditorPane() { this.initComponents(); } @Override protected JPanel setSecondContentPane() { JPanel contentPane = FRGUIPaneFactory.createBorderLayout_L_Pane(); contentPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); JPanel otherContentPane = this.setThirdContentPane(); if (otherContentPane != null) { contentPane.add(otherContentPane,BorderLayout.CENTER); } return contentPane; } protected abstract JPanel setThirdContentPane(); @Override protected void populateSubDirectWriteEditorBean(E e) { populateSubWritableRepeatEditorBean(e); } protected abstract void populateSubWritableRepeatEditorBean(E e); @Override protected E updateSubDirectWriteEditorBean() { return updateSubWritableRepeatEditorBean(); } protected abstract E updateSubWritableRepeatEditorBean(); }