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.
42 lines
1.1 KiB
42 lines
1.1 KiB
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<E extends WriteAbleRepeatEditor> extends DirectWriteEditorDefinePane<E> { |
|
|
|
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(); |
|
} |