protected Map<String, Object> getParamsMap(ScreenOptions options) { if (options instanceof MapScreenOptions) { return ((MapScreenOptions) options).getParams(); } return Collections.emptyMap(); }
public ComponentLoaderContext(ScreenOptions options) { this.options = options; this.parameters = Collections.emptyMap(); if (options instanceof MapScreenOptions) { parameters = ((MapScreenOptions) options).getParams(); } }
@Nullable protected Element loadScreenXml(WindowInfo windowInfo, ScreenOptions options) { String templatePath = windowInfo.getTemplate(); if (StringUtils.isNotEmpty(templatePath)) { Map<String, Object> params = Collections.emptyMap(); if (options instanceof MapScreenOptions) { params = ((MapScreenOptions) options).getParams(); } return screenXmlLoader.load(templatePath, windowInfo.getId(), params); } return null; }
@Order(Events.HIGHEST_PLATFORM_PRECEDENCE + 10) @Subscribe protected void init(InitEvent initEvent) { Map<String, Object> params = Collections.emptyMap(); ScreenOptions options = initEvent.getOptions(); if (options instanceof MapScreenOptions) { params = ((MapScreenOptions) options).getParams(); } init(params); }
@Order(Events.HIGHEST_PLATFORM_PRECEDENCE + 10) @Subscribe protected void init(InitEvent initEvent) { Map<String, Object> params = Collections.emptyMap(); ScreenOptions options = initEvent.getOptions(); if (options instanceof MapScreenOptions) { params = ((MapScreenOptions) options).getParams(); } init(params); }
@Override public Map<String, Object> getParams() { ScreenContext screenContext = UiControllerUtils.getScreenContext(frame.getFrameOwner()); if (screenContext.getScreenOptions() instanceof MapScreenOptions) { return ((MapScreenOptions) screenContext.getScreenOptions()).getParams(); } return Collections.emptyMap(); }
return ((MapScreenOptions) options).getParams().get(name);