You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.fine.component.popup;
|
|
|
|
|
|
|
|
import com.formdev.flatlaf.ui.FlatUIUtils;
|
|
|
|
|
|
|
|
import javax.swing.JPanel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 遮罩加载面板组件
|
|
|
|
*
|
|
|
|
* @author Levy.Xie
|
|
|
|
* @since 12.0
|
|
|
|
* Created on 2024/11/28
|
|
|
|
*/
|
|
|
|
public class GlassPaneChild extends JPanel {
|
|
|
|
|
|
|
|
protected boolean transparent;
|
|
|
|
|
|
|
|
public int getRoundBorder() {
|
|
|
|
return FlatUIUtils.getUIInt("Component.arc", 6);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 组件是否透明
|
|
|
|
*
|
|
|
|
* @return 组件透明
|
|
|
|
*/
|
|
|
|
protected boolean isTransparent() {
|
|
|
|
return transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 放入组件时的回调方法
|
|
|
|
*/
|
|
|
|
public void onPush() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 弹出组件时的回调方法
|
|
|
|
*/
|
|
|
|
public void onPop() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 显示弹窗组件时的回调方法
|
|
|
|
*/
|
|
|
|
public void popupShow() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 关闭窗口时的回调方法
|
|
|
|
*/
|
|
|
|
public void onClose() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|