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

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


//        rci.setItemOrder(order);
       
      }
    }
    else if (def instanceof Presenter){
      Presenter presenter = (Presenter) def;
//      presenter.getDMO().addUsesRunContextItem("eventBus");
      presenters.put(def.getCamelCaseName(), presenter);
      components.put(def.getCamelCaseName(), presenter);
     
      // All Presenters are available for access from the run context. They are created on demand.
      RunContextItem rci = new RunContextItem();
      rci.setAutoCreated(true);
      RunContextItemCollection rcic = contexts.get(rci.getContextImpl());
     
      rci.setItemName(presenter.getPresenterName().getNameString() + "RCI");
      rci.setDescription("The auto generated run context item for the " + presenter.getPresenterName());
     
      if (presenter.getSubpackage() == null)
        rci.setUseClass(currentModule.getGenPackage() + ".extended." + presenter.getPresenterName());
      else
        rci.setUseClass(currentModule.getGenPackage() + ".extended." + presenter.getSubpackage() + "." + presenter.getPresenterName());
       
      if (presenter.usesRunContext()){
        if (presenter.isCodeSplit())
          rci.setConstruction("new " + presenter.getPresenterName() + "(thisContext)");
        else
          rci.setConstruction("new " + presenter.getPresenterName() + "(this)");
      }
      else
        rci.setConstruction("new " + presenter.getPresenterName() + "()");
     
      rci.setDefinedInModule(presenter.getDefinedInModule());
     
      rci.setPresenter(presenter);
     
      if (rcic == null){
        rcic = new RunContextItemCollection(rci.getContextImpl());
        contexts.put(rci.getContextImpl(), rcic);
      }
      rcic.addItem(rci);
     
      // Add the item to its module
      rci.getDefinedInModule().addRunContextItem(rci);
     
      // We make it so that the presenter instance is created as required
      rci.setCreateOnDemand(true);
      rci.setSingleton(presenter.isSingleton());
     
      // Tell the presenter its item
      presenter.setRunContextItem(rci);
     
      // Also add to our full set of definitions
      allDefs.put(rci.getItemName(), rci);
     
    }
View Full Code Here


        super(new PresenterDMO(mods), org.dmd.mvw.tools.mvwgenerator.generated.MvwSchemaAG._Presenter);
    }

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:491)
    public Presenter getModificationRecorder(){
        Presenter rc = new Presenter();
        rc.setPresenterName(getPresenterName());
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        return(rc);
    }
View Full Code Here

    public PresenterDMW(PresenterDMO obj) {
        super(obj, org.dmd.mvw.tools.mvwgenerator.generated.MvwSchemaAG._Presenter);
    }

    public Presenter cloneIt() {
        Presenter rc = new Presenter();
        rc.setDmcObject(getDMO().cloneIt());
        return(rc);
    }
View Full Code Here

TOP

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

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.