plough
7 years ago
8 changed files with 92 additions and 4 deletions
@ -0,0 +1,35 @@
|
||||
package com.fr.design.mainframe; |
||||
|
||||
import com.fr.design.gui.frpane.HyperlinkGroupPane; |
||||
import com.fr.design.gui.frpane.HyperlinkGroupPaneActionProvider; |
||||
|
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* Created by plough on 2017/9/4. |
||||
*/ |
||||
public class ReportHyperlinkGroupPaneNoPop extends ReportHyperlinkGroupPane{ |
||||
private static ReportHyperlinkGroupPaneNoPop singleton; |
||||
|
||||
private ReportHyperlinkGroupPaneNoPop(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) { |
||||
super(hyperlinkGroupPaneActionProvider); |
||||
} |
||||
|
||||
public static ReportHyperlinkGroupPaneNoPop getInstance(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) { |
||||
if (singleton == null) { |
||||
singleton = new ReportHyperlinkGroupPaneNoPop(hyperlinkGroupPaneActionProvider); |
||||
} |
||||
singleton.refreshPane(); |
||||
return singleton; |
||||
} |
||||
|
||||
@Override |
||||
protected boolean isNewStyle() { |
||||
return false; |
||||
} |
||||
|
||||
@Override |
||||
protected void popupEditDialog(Point mousePos) { |
||||
// no pop, do nothing
|
||||
} |
||||
} |
@ -0,0 +1,33 @@
|
||||
package com.fr.design.gui.xpane; |
||||
|
||||
import com.fr.design.gui.frpane.HyperlinkGroupPaneActionProvider; |
||||
|
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* Created by plough on 2017/9/5. |
||||
*/ |
||||
public class FormHyperlinkGroupPaneNoPop extends FormHyperlinkGroupPane{ |
||||
private static FormHyperlinkGroupPaneNoPop singleton; |
||||
|
||||
private FormHyperlinkGroupPaneNoPop(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) { |
||||
super(hyperlinkGroupPaneActionProvider); |
||||
} |
||||
|
||||
public static FormHyperlinkGroupPaneNoPop getInstance(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) { |
||||
if (singleton == null) { |
||||
singleton = new FormHyperlinkGroupPaneNoPop(hyperlinkGroupPaneActionProvider); |
||||
} |
||||
return singleton; |
||||
} |
||||
|
||||
@Override |
||||
protected boolean isNewStyle() { |
||||
return false; |
||||
} |
||||
|
||||
@Override |
||||
protected void popupEditDialog(Point mousePos) { |
||||
// no pop, do nothing
|
||||
} |
||||
} |
Loading…
Reference in new issue