|
|
|
@ -12,12 +12,10 @@ import com.fr.design.widget.WidgetManageCardPane;
|
|
|
|
|
import com.fr.design.widget.WidgetPane; |
|
|
|
|
import com.fr.form.ui.*; |
|
|
|
|
|
|
|
|
|
import com.fr.form.ui.TextArea; |
|
|
|
|
import com.fr.report.cell.cellattr.highlight.HighlightAction; |
|
|
|
|
import com.fr.report.cell.cellattr.highlight.WidgetHighlightAction; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
@ -29,7 +27,6 @@ import java.awt.event.ActionListener;
|
|
|
|
|
public class WidgetHighlightPane extends ConditionAttrSingleConditionPane<HighlightAction> { |
|
|
|
|
private static final int DIALOG_WIDTH = 700; |
|
|
|
|
private static final int DIALOG_HEIGHT = 400; |
|
|
|
|
private static final Dimension WINDOW_CUSTOM_SIZE = new Dimension(720, 600); |
|
|
|
|
|
|
|
|
|
private Widget widget; |
|
|
|
|
private UIComboBox box; |
|
|
|
@ -48,7 +45,8 @@ public class WidgetHighlightPane extends ConditionAttrSingleConditionPane<Highli
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
widgetPane.populate(widget); |
|
|
|
|
BasicDialog dialog = widgetPane.showWindowWithCustomSize(SwingUtilities.getWindowAncestor(conditionAttributesPane), null, WINDOW_CUSTOM_SIZE); |
|
|
|
|
BasicDialog dialog = widgetPane.showWindow( |
|
|
|
|
SwingUtilities.getWindowAncestor(conditionAttributesPane)); |
|
|
|
|
dialog.addDialogActionListener(new DialogActionAdapter() { |
|
|
|
|
public void doOk() { |
|
|
|
|
widget = widgetPane.update(); |
|
|
|
|