Package de.mhus.lib

Examples of de.mhus.lib.MActivator


    .getLog(FsDriver.class);

  public FsDriver() {
    defaultMetadata = new FsMetadata(this);
   
    actionProvider = new FsActionProvider(new MActivator(FsDriver.class.getClassLoader()));
    actionForwarder.add(actionProvider);
   
  }
View Full Code Here


 
  private DynamicClassLoader classloader;

  public ClassLoadingBase(ClassLoader parent) {
    classloader = new DynamicClassLoader("base",parent);
    this.objActivator = new MActivator(classloader);
  }
View Full Code Here

    this.objActivator = new MActivator(classloader);
  }
 
  public ClassLoadingBase() {
    classloader = new DynamicClassLoader("base");
    this.objActivator = new MActivator(classloader);
  }
View Full Code Here

      DynamicClassLoader loader = null;
      if (cloader != null) {
        loader = new DynamicClassLoader("main");
        loader.doSetupFromConfig(cloader);
      }
      MActivator acti = new MActivator(cactivator,loader);
      activator = acti;
    } catch (Throwable t) {
      log().w(t);
    }
  }
View Full Code Here

  private HashMap<String, XLayElement> elements;
  private LayModel model;

  public LayoutBuilder(MActivator activator) {
    if (activator == null) {
      activator = new MActivator();
      initDefaultActivator(activator);
    }
    this.activator = activator;
  }
View Full Code Here

        Panel panel = new Panel("Details");
        panel.setWidth("100%");
       
        try {
          MForm target = createTarget();
          model = new FormModelBuilder(new MActivator(this.getClass().getClassLoader()), target,null);
          model.setEnabled(false);
          control = new MFormVaadinControl(model);
          control.createControl(panel);
        } catch (Exception e) {
          e.printStackTrace();
View Full Code Here

  @Override
  public void action(FormAction action) {
//    MActivator a = wizzards;
//    if (a == null) a = action.getParent().getLayoutFactory().getActivator();
    MActivator a = action.getParent().getLayoutFactory().getActivator();
    Action act;
    try {
      act = (Action) a.getObject(Action.class,action.getConfig().getString("action", null));
    } catch (Exception e) {
      e.printStackTrace();
      return;
    }
    if (act != null)
View Full Code Here

  @Override
  public void wizzard(LayoutElement element) {
//    MActivator a = wizzards;
//    if (a == null) a = element.getLayoutFactory().getActivator();
    MActivator a = element.getLayoutFactory().getActivator();
    Wizzard wizzard;
    try {
      wizzard = (Wizzard) a.getObject(Wizzard.class,element.getConfig().getString("wizzard", null));
    } catch (Exception e) {
      e.printStackTrace();
      return;
    }
    if (wizzard != null)
View Full Code Here

    String string = element.getConfig().getString("validator", null);
    if (string == null) return true;
   
//    MActivator a = validators;
//    if (a == null) a = element.getLayoutFactory().getActivator();
    MActivator a = element.getLayoutFactory().getActivator();
   
    String[] va = string.split(",");
    for (String v : va) {
      Validator validator;
      try {
        validator = (Validator) a.getObject(Validator.class,v);
      } catch (Exception e) {
        e.printStackTrace();
        return false;
      }
      if (validator != null && !validator.validate(this,element,value))
View Full Code Here

  public static IDfClientX clientx = new DfClientX();
  private DctmActionProvider actionProvider;

  public DctmDriver() {
   
    actionProvider = new DctmActionProvider(new MActivator(DctmDriver.class.getClassLoader()));
    actionForwarder.add(actionProvider);
   
    //CapCore.getInstance().getFactory().registerActionProvider(actionProvider);
   
  }
View Full Code Here

TOP

Related Classes of de.mhus.lib.MActivator

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.