update:补充部分注释

This commit is contained in:
suisui
2021-09-06 09:02:24 +08:00
parent 38dc53b484
commit 34ddd6f26e
4 changed files with 23 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import cn.edu.scau.biubiusuisui.function.DragWindowHandlerImpl;
import cn.edu.scau.biubiusuisui.log.FXPlusLoggerFactory;
import cn.edu.scau.biubiusuisui.log.IFXPlusLogger;
import cn.edu.scau.biubiusuisui.utils.FileUtil;
import cn.edu.scau.biubiusuisui.utils.IFxPlusConstants;
import cn.edu.scau.biubiusuisui.utils.ResourceBundleUtil;
import cn.edu.scau.biubiusuisui.utils.StringUtil;
import javafx.event.EventHandler;
@@ -282,7 +283,7 @@ public class FXBaseController extends Pane {
if ("".equals(name) || name == null) { // 原本无“name == null”判断条件会出错
return StringUtil.getBaseClassName(getClass().getSimpleName());
} else {
return StringUtil.getBaseClassName(getClass().getSimpleName()) + "#" + name;
return StringUtil.getBaseClassName(getClass().getSimpleName()) + IFxPlusConstants.CONTROLLER_NAME_SEPARATOR + name;
}
}

View File

@@ -12,9 +12,13 @@ import java.lang.reflect.Method;
* @since JavaFX2.0 JDK1.8
*/
public class FXMethodEntity {
/**
* 所属Controller
*/
private FXBaseController fxBaseController;
/**
* 实际方法
*/
private Method method;
public FXMethodEntity(FXBaseController fxBaseController, Method method) {

View File

@@ -11,8 +11,19 @@ import java.util.Map;
* @since JavaFX2.0 JDK1.8
*/
public class FXRedirectParam {
/**
* 跳转的目标Controller
*/
private String toController;
/**
* query方式的参数, like: helloController?name=JavaFx-Plus&msg=helloWorld
* the map will store: { name -> JavaFx-Plus, msg -> helloWorld}
*/
private Map<String, Object> query = new HashMap<>();
/**
* param方式的参数会以map方式传递给目标Controller
*/
private Map<String, Object> params = new HashMap<>();
public FXRedirectParam(String toController) {

View File

@@ -11,4 +11,8 @@ public interface IFxPlusConstants {
* 项目默认编码 UTF-8
*/
String DEFAULT_CHARSET = "UTF-8";
/**
* FXController名称分隔符
*/
String CONTROLLER_NAME_SEPARATOR = "#";
}