|
|
@ -1,26 +1,25 @@ |
|
|
|
package com.fr.quickeditor.floatquick; |
|
|
|
package com.fr.quickeditor.floatquick; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
import com.fr.base.Style; |
|
|
|
import com.fr.base.Style; |
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
import com.fr.design.report.SelectImagePane; |
|
|
|
import com.fr.design.report.SelectImagePane; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.quickeditor.FloatQuickEditor; |
|
|
|
import com.fr.quickeditor.FloatQuickEditor; |
|
|
|
import com.fr.report.cell.cellattr.CellImage; |
|
|
|
import com.fr.report.cell.cellattr.CellImage; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
|
|
|
|
|
|
|
public class FloatImageQuickEditor extends FloatQuickEditor { |
|
|
|
public class FloatImageQuickEditor extends FloatQuickEditor { |
|
|
|
|
|
|
|
|
|
|
|
public FloatImageQuickEditor() { |
|
|
|
public FloatImageQuickEditor() { |
|
|
@ -33,21 +32,14 @@ public class FloatImageQuickEditor extends FloatQuickEditor { |
|
|
|
showEditingDialog(); |
|
|
|
showEditingDialog(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
editbutton.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
|
|
|
|
|
|
|
editbutton.setMargin(null); |
|
|
|
|
|
|
|
editbutton.setOpaque(false); |
|
|
|
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
|
|
|
new Component[]{editbutton} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
|
|
|
double[] columnSize = {f}; |
|
|
|
|
|
|
|
double[] rowSize = {p}; |
|
|
|
|
|
|
|
JPanel pane = TableLayoutHelper.createTableLayoutPane(components, rowSize, columnSize); |
|
|
|
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
|
|
|
|
this.setBorder(new ScaledEmptyBorder(0, 10, 0, 10)); |
|
|
|
|
|
|
|
|
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(10, 75, 10, 15)); |
|
|
|
this.add(row( |
|
|
|
this.add(pane, BorderLayout.CENTER); |
|
|
|
10, |
|
|
|
|
|
|
|
cell(new UILabel()).weight(1.2), |
|
|
|
|
|
|
|
cell(editbutton).weight(3) |
|
|
|
|
|
|
|
).getComponent(), BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|