Browse Source
Merge in DESIGN/design from ~HADES/design:release/10.0 to release/10.0 * commit '23a94b9371a68a360c33d87d0a683c8f6dbfb4c5': REPORT-34878 && REPORT-34936 linux下条件属性和超链保存问题 REPORT-34996 && REPORT-34636feature/big-screen
6 changed files with 62 additions and 12 deletions
@ -0,0 +1,39 @@ |
|||||||
|
package com.fr.design.os.impl; |
||||||
|
|
||||||
|
import com.fr.design.gui.controlpane.UIListControlPane; |
||||||
|
import com.fr.stable.os.OperatingSystem; |
||||||
|
import com.fr.stable.os.support.OSBasedAction; |
||||||
|
|
||||||
|
import java.awt.*; |
||||||
|
|
||||||
|
/** |
||||||
|
* linux下超链弹窗等保存问题 |
||||||
|
* |
||||||
|
* @author hades |
||||||
|
* @version 10.0 |
||||||
|
* Created by hades on 2020/7/21 |
||||||
|
*/ |
||||||
|
public class PopupDialogSaveAction implements OSBasedAction { |
||||||
|
|
||||||
|
private UIListControlPane currentControlPane; |
||||||
|
private Window popupDialog; |
||||||
|
|
||||||
|
@Override |
||||||
|
public void execute(Object... objects) { |
||||||
|
boolean canSave = OperatingSystem.isLinux() && popupDialog != null && popupDialog.isVisible() && currentControlPane != null; |
||||||
|
if (canSave) { |
||||||
|
currentControlPane.saveSettings(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public void register(UIListControlPane currentControlPane, Window popupDialog) { |
||||||
|
this.currentControlPane = currentControlPane; |
||||||
|
this.popupDialog = popupDialog; |
||||||
|
} |
||||||
|
|
||||||
|
public void unregister() { |
||||||
|
this.currentControlPane = null; |
||||||
|
this.popupDialog = null; |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue