|
|
@ -12,6 +12,7 @@ import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.widget.EventCreator; |
|
|
|
import com.fr.design.widget.EventCreator; |
|
|
|
import com.fr.form.event.Listener; |
|
|
|
import com.fr.form.event.Listener; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.report.web.util.ReportEngineEventMapping; |
|
|
|
import com.fr.report.web.util.ReportEngineEventMapping; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
@ -26,10 +27,13 @@ import javax.swing.event.ListDataEvent; |
|
|
|
import javax.swing.event.ListDataListener; |
|
|
|
import javax.swing.event.ListDataListener; |
|
|
|
import javax.swing.event.ListSelectionEvent; |
|
|
|
import javax.swing.event.ListSelectionEvent; |
|
|
|
import javax.swing.event.ListSelectionListener; |
|
|
|
import javax.swing.event.ListSelectionListener; |
|
|
|
|
|
|
|
import java.awt.AlphaComposite; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.FlowLayout; |
|
|
|
import java.awt.FlowLayout; |
|
|
|
|
|
|
|
import java.awt.Graphics; |
|
|
|
|
|
|
|
import java.awt.Graphics2D; |
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
import java.lang.reflect.Constructor; |
|
|
|
import java.lang.reflect.Constructor; |
|
|
@ -456,7 +460,7 @@ public abstract class UIListGroupControlPane extends UIControlPane implements L |
|
|
|
getHelper().popupEditDialog(null, this.selectNameEdList, this); |
|
|
|
getHelper().popupEditDialog(null, this.selectNameEdList, this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected String getWrapperLabelText(){ |
|
|
|
protected String getWrapperLabelText() { |
|
|
|
return StringUtils.EMPTY; |
|
|
|
return StringUtils.EMPTY; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -466,9 +470,18 @@ public abstract class UIListGroupControlPane extends UIControlPane implements L |
|
|
|
|
|
|
|
|
|
|
|
public ListWrapperPane(String labelText, UINameEdList nameEdList) { |
|
|
|
public ListWrapperPane(String labelText, UINameEdList nameEdList) { |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
UILabel label = new UILabel(labelText + getWrapperLabelText()); |
|
|
|
UILabel label = new UILabel(labelText + getWrapperLabelText()) { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void paint(Graphics g) { |
|
|
|
|
|
|
|
((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.7f)); |
|
|
|
|
|
|
|
super.paint(g); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
label.setBorder(BorderFactory.createEmptyBorder(0, 8, 0, 0)); |
|
|
|
label.setBorder(BorderFactory.createEmptyBorder(0, 8, 0, 0)); |
|
|
|
label.setBackground(Color.decode("#FFFFFF")); |
|
|
|
label.setOpaque(true); |
|
|
|
|
|
|
|
label.setBackground(Color.WHITE); |
|
|
|
|
|
|
|
label.setForeground(Color.decode("#333334")); |
|
|
|
|
|
|
|
label.setFont(label.getFont().deriveFont(10F)); |
|
|
|
label.setPreferredSize(new Dimension(224, 26)); |
|
|
|
label.setPreferredSize(new Dimension(224, 26)); |
|
|
|
this.nameEdList = nameEdList; |
|
|
|
this.nameEdList = nameEdList; |
|
|
|
this.add(label, BorderLayout.NORTH); |
|
|
|
this.add(label, BorderLayout.NORTH); |
|
|
|