@Override public Window copy() throws AWException { return new Window(this); }
/** * Returns if window allows to maximize/restore itself * * @return Window allows to maximize/restore itself */ public boolean allowMaximize() { if ("true".equalsIgnoreCase(this.getMaximize())) { return this.getLabel() != null; } else { return false; } }
@Override public Element build(Element element) { Window window = new Window(); window.setId(getId()); if (getExpandible() != null) { window.setExpand(getExpandible().toString()); } if (getIcon() != null) { window.setIcon(getIcon()); } if (getLabel() != null) { window.setLabel(getLabel()); } if (getStyle() != null) { window.setStyle(getStyle()); } if (isMaximize() != null) { window.setMaximize(String.valueOf(isMaximize())); } for (AweBuilder aweBuilder : getElementList()){ addElement(window, aweBuilder.build(window)); } return window; }
/** * Get print element list (to be overwritten) * * @param printElementList Print element list * @param label Previous label * @param parameters Parameters * @param dataSuffix Data suffix * @return Print bean */ @JsonIgnore public List<Element> getReportStructure(List<Element> printElementList, String label, ObjectNode parameters, String dataSuffix) { return super.getReportStructure(printElementList, getLabel() == null ? label : getLabel(), parameters, dataSuffix); } }
/** * Returns if window allows to maximize/restore itself for JSON serialization * * @return Window allows to maximize/restore itself */ @JsonGetter("maximize") public boolean getMaximizeConverter() { if ("true".equalsIgnoreCase(this.getMaximize())) { return this.getLabel() != null; } else { return false; } }