@Override public void init(Map<String, Object> params) { super.init(params); updateLayout(dashboard); }
@Override protected String formatMessage(String key, Object... params) { return super.formatMessage(key, params); }
protected void hideComponent(AbstractFrame parentFrame, String componentId) { Component component = parentFrame.getComponent(componentId); if (component != null) component.setVisible(false); }
/** * Get localized message from the message pack associated with this frame or window. * * @param key message key * @return localized message * @see Messages#getMessage(String, String) */ protected String getMessage(String key) { String msgPack = getMessagesPack(); if (StringUtils.isEmpty(msgPack)) { throw new DevelopmentException("MessagePack is not set"); } return messages.getMessage(msgPack, key); }
protected List<ListComponent> findListComponents(AbstractFrame abstractFrame) { return abstractFrame.getComponents().stream() .filter(c -> c instanceof ListComponent) .map(c -> (ListComponent) c) .collect(Collectors.toList()); }
@SuppressWarnings("unchecked") @Override public <X> X unwrapComposition(Class<X> internalCompositionClass) { if (getComposition() instanceof Component.Wrapper) { return (X) ((Component.Wrapper) frame).getComposition(); } return (X) frame; }
/** * Get localized message from the message pack associated with this frame or window, and use it as a format * string for parameters provided. * * @param key message key * @param params parameter values * @return formatted string or the key in case of IllegalFormatException * @see Messages#formatMessage(String, String, Object...) */ protected String formatMessage(String key, Object... params) { String msgPack = getMessagesPack(); if (StringUtils.isEmpty(msgPack)) { throw new DevelopmentException("MessagePack is not set"); } return messages.formatMessage(msgPack, key, params); }
@Override public void init(Map<String, Object> params) { super.init(params); initDs(params); }
@SuppressWarnings("unchecked") @Override public <X> X unwrap(Class<X> internalComponentClass) { if (getComponent() instanceof Component.Wrapper) { return (X) ((Component.Wrapper) frame).getComponent(); } return (X) frame; }
@Override public void init(Map<String, Object> params) { super.init(params); type = (ParameterType) params.get(VALUE_TYPE); ParameterValue parameterValue = (ParameterValue) params.get(VALUE); showField(parameterValue); }
protected void hideComponent(AbstractFrame parentFrame, String componentId) { Component component = parentFrame.getComponent(componentId); if (component != null) component.setVisible(false); }
@Override public void init(Map<String, Object> params) { super.init(params); this.filter = (Filter) params.get("filter"); initComponents(); T conditionParam = (T) params.get("condition"); if (conditionParam != null) { setCondition(conditionParam); } }
@Override public void init(Map<String, Object> params) { super.init(params); loadEnumClasses(); selectIfExist((EnumParameterValue) params.get(VALUE)); }
@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 void init(Map<String, Object> params) { super.init(params); initDs(params); entitiesDs.setModified(false); }
@Override public void init(Map<String, Object> params) { super.init(params); initProcRolesLookup(); initProcActorsTable(); }
public void init(Map<String, Object> params) { super.init(params); Window parent = (Window) getFrame(); previewBox = (BoxLayout) parent.getComponentNN("previewBox"); }
@Override public void init(Map<String, Object> params) { super.init(params); reportJsonChart.setConfiguration(new BasicChart()); reportJsonChart.setNativeJson(chartJson); }
@Override public void init(Map<String, Object> params) { super.init(params); setCode(StringUtils.isEmpty(code) ? (String) params.getOrDefault(CODE, "") : code); refresh(); initAssistant(this); initTimer(this.getParent()); }
@Override public void init(Map<String, Object> params) { super.init(params); initProcAttachmentsTable(); initUploadField(); initParentDsContextCommitListener(); }