Ejemplo n.º 1
0
 public boolean validateGraphics(Graphics graphics) {
   Validator validator = getValidator();
   boolean isValid = GraphicsUtil.validate(graphics);
   Display display = getFromSession("display");
   display.setModule("graphicsInfo");
   display.addErrors(validator.getMessages());
   // FacesContext.getCurrentInstance().isValidationFailed()
   setValidated(isValid);
   return isValid;
 }
Ejemplo n.º 2
0
 public String handleRemoveGraphics(@Observes @Remove Graphics graphics) {
   display = getFromSession("display");
   display.setModule("graphicsInfo");
   try {
     display.info("Removing Graphics " + GraphicsUtil.getLabel(graphics) + " from the system.");
     removeGraphicsFromSystem(graphics);
     selectionContext.clearSelection("graphics");
     graphicsEventManager.fireClearSelectionEvent();
     graphicsEventManager.fireRemovedEvent(graphics);
     workspaceEventManager.fireRefreshEvent();
     return null;
   } catch (Exception e) {
     handleException(e);
     return null;
   }
 }
Ejemplo n.º 3
0
 protected void initialize(Graphics graphics) {
   GraphicsUtil.initialize(graphics);
   graphicsWizard.initialize(graphics);
   setContext("graphics", graphics);
 }
Ejemplo n.º 4
0
 @Override
 public Graphics clone(Graphics graphics) {
   graphics = GraphicsUtil.clone(graphics);
   return graphics;
 }
Ejemplo n.º 5
0
 @Override
 public Graphics create() {
   Graphics graphics = GraphicsUtil.create();
   return graphics;
 }