Integer size = (Integer)cid.getAspectData("size");
if ( size == null ) {
size = SizingStatus.STATUS_MAXIMIZED;
}
ChangeCopletInstanceAspectDataEvent event;
if ( !size.equals(SizingStatus.STATUS_MINIMIZED)) {
event = new ChangeCopletInstanceAspectDataEvent(cid, "size", SizingStatus.STATUS_MINIMIZED);
XMLUtils.createElement(handler, "minimize-uri", service.getComponentManager().getLinkService().getLinkURI(event));
}
if ( !size.equals(SizingStatus.STATUS_MAXIMIZED)) {
event = new ChangeCopletInstanceAspectDataEvent(cid, "size", SizingStatus.STATUS_MAXIMIZED);
XMLUtils.createElement(handler, "maximize-uri", service.getComponentManager().getLinkService().getLinkURI(event));
}
if (size != SizingStatus.STATUS_MINIMIZED) {
context.invokeNext(layout, service, handler);
}