Exemplo 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;
 }
Exemplo 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;
   }
 }
Exemplo n.º 3
0
 protected void initialize(Graphics graphics) {
   GraphicsUtil.initialize(graphics);
   graphicsWizard.initialize(graphics);
   setContext("graphics", graphics);
 }
Exemplo n.º 4
0
 @Override
 public Graphics clone(Graphics graphics) {
   graphics = GraphicsUtil.clone(graphics);
   return graphics;
 }
Exemplo n.º 5
0
 @Override
 public Graphics create() {
   Graphics graphics = GraphicsUtil.create();
   return graphics;
 }