Package org.dmd.mvw.tools.mvwgenerator.extended

Examples of org.dmd.mvw.tools.mvwgenerator.extended.Component


    if (definition instanceof Module){
      currentModule = (Module) definition;
    }
   
    if (definition instanceof Component){
      Component c = (Component) definition;
      c.setComponentName(c.getObjectName());
    }
   
    definition.setDefinedInModule(currentModule);

//    try {
View Full Code Here


      EnumMapping gem = (EnumMapping) def;
      enumMappings.put(gem.getMappingName(), gem);
    }
   
    if (def instanceof Component){
      Component component = (Component) def;
     
      if (component.getHandlesEventHasValue())
        component.getDMO().addUsesRunContextItem("eventBus");
     
      if (component.getFiresEventHasValue())
        component.getDMO().addUsesRunContextItem("eventBus");
     
      if (component.getSendsRequestHasValue()){
        component.getDMO().addUsesRunContextItem("commsController");
        needMvwComms = true;
      }
    }
  }
View Full Code Here

  void setSubpackage(MvwDefinition definition){
    Module mod = definition.getDefinedInModule();
   
    if (mod.isUsingStandardSubpackages()){
      if (definition instanceof Component){
        Component component = (Component) definition;
       
        if (component.getSubpackage() == null){
          if (component instanceof Controller)
            component.setSubpackage(controllerSubpackage);
          else if (component instanceof Presenter)
            component.setSubpackage(presenterSubpackage);
          else if (component instanceof Activity)
            component.setSubpackage(activitySubpackage);
        }
      }
      else if (definition instanceof View){
        if (((View)definition).getSubpackage() == null)
          ((View)definition).setSubpackage(viewSubpackage);
View Full Code Here

            action.setImplementedBy(controller);
          else{
            if (errors == null)
              errors = new ResultException();
           
            Component existing = action.getImplementedBy();
            errors.addError("Multiple components implement the " + action.getActionBindingName() + " action.");
            errors.result.lastResult().moreMessages(existing.getComponentName() + " in file " + existing.getFile() + ":" + existing.getLineNumber());
            errors.result.lastResult().moreMessages(controller.getComponentName() + " in file " + controller.getFile() + ":" + controller.getLineNumber());
          }
        }
       
        // We also verify that the module in which the component is defined depends on
View Full Code Here

      imports = new ImportManager();   
 
      imports.addImport("org.dmd.mvw.client.mvwmenus.base.Action", "Base class");
      imports.addImport("org.dmd.mvw.client.mvwmenus.interfaces.TriggerIF", "Trigger interface");
     
      Component component = getImplementedBy();
      String genPackage = component.getDefinedInModule().getGenPackage()
      String compImport = genPackage + ".generated.mvw." + component.genSubPackage() + "." + component.getComponentName() + "BaseImpl";
     
      imports.addImport(compImport, "Implementing component");
    }
   
  }
View Full Code Here

TOP

Related Classes of org.dmd.mvw.tools.mvwgenerator.extended.Component

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.