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.getLinkService().getLinkURI(event));
}
if ( !size.equals(SizingStatus.STATUS_MAXIMIZED)) {
event = new ChangeCopletInstanceAspectDataEvent(cid, "size", SizingStatus.STATUS_MAXIMIZED);
XMLUtils.createElement(handler, "maximize-uri", service.getLinkService().getLinkURI(event));
}
if (size != SizingStatus.STATUS_MINIMIZED) {
context.invokeNext(layout, service, handler);
}