|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
package com.fr.design.mainframe.alphafine.component; |
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.actions.help.alphafine.AlphaFineContext; |
|
|
|
|
import com.fr.design.actions.help.alphafine.AlphaFineListener; |
|
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
|
import com.fr.design.mainframe.alphafine.AlphaFineHelper; |
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
@ -20,7 +20,7 @@ import java.awt.event.ActionListener;
|
|
|
|
|
public class AlphaFinePane extends BasicPane { |
|
|
|
|
private static AlphaFinePane alphaFinePane; |
|
|
|
|
|
|
|
|
|
public static AlphaFinePane createAlphaFinePane() { |
|
|
|
|
public static AlphaFinePane getAlphaFinePane() { |
|
|
|
|
if (alphaFinePane == null) { |
|
|
|
|
alphaFinePane = new AlphaFinePane(); |
|
|
|
|
} |
|
|
|
@ -32,8 +32,8 @@ public class AlphaFinePane extends BasicPane {
|
|
|
|
|
Toolkit.getDefaultToolkit().addAWTEventListener(AlphaFineDialog.listener(), AWTEvent.KEY_EVENT_MASK); |
|
|
|
|
} |
|
|
|
|
UIButton refreshButton = new UIButton(); |
|
|
|
|
refreshButton.setIcon(BaseUtils.readIcon("/com/fr/design/mainframe/alphafine/images/smallsearch.png")); |
|
|
|
|
refreshButton.setToolTipText(Inter.getLocText("FR-Designer_Alphafine")); |
|
|
|
|
refreshButton.setIcon(IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/smallsearch.png")); |
|
|
|
|
refreshButton.setToolTipText(Inter.getLocText("AlphaFine")); |
|
|
|
|
refreshButton.set4ToolbarButton(); |
|
|
|
|
this.add(refreshButton); |
|
|
|
|
refreshButton.addActionListener(new ActionListener() { |
|
|
|
@ -42,11 +42,17 @@ public class AlphaFinePane extends BasicPane {
|
|
|
|
|
AlphaFineHelper.showAlphaFineDialog(false); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
AlphaFineContext.addAlphafineContextListener(new AlphaFineListener() { |
|
|
|
|
AlphaFineContext.addAlphaFineListener(new AlphaFineListener() { |
|
|
|
|
@Override |
|
|
|
|
public void showDialog() { |
|
|
|
|
AlphaFineHelper.showAlphaFineDialog(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void setEnable(boolean isEnable) { |
|
|
|
|
alphaFinePane.setVisible(isEnable); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|