Examples of FieldContext


Examples of ch.nerdin.generators.testdata.inspector.FieldContext

    private Map<String, FieldProperty> inspectBean(Class<?> type) {
        Map<String, FieldProperty> fieldProperties = new HashMap<String, FieldProperty>();
        Catalog generators = catalog.getCatalog();
        Command inspectorChain = generators.getCommand("InspectorChain");
        FieldContext context = new FieldContext(fieldProperties, type);
        try {
            inspectorChain.execute(context);
        } catch (Exception e) {
            //TODO what now?
        }
View Full Code Here

Examples of com.projity.field.FieldContext

 
 
  public void setTimeBased(boolean timeBased) {
    if (timeBased) {
      // initialize interval treatment
      context = new FieldContext();
      interval = new MutableInterval(0, 0);
      context.setInterval(interval);
    }
   
  }
View Full Code Here

Examples of com.projity.field.FieldContext

//        ((NormalTask)getTask()).getSchedulingRule().adjustRemainingWork(this, newRemainingWork, remainingWork, false);


      // need to 0 out an time between stop and the intervals start, if any
      if (fieldContext.getStart() > stop) {
        FieldContext empty = new FieldContext();
        empty.setInterval(new ImmutableInterval(stop == 0 ? getStart() : stop,fieldContext.getStart()));
        setWork(0L,empty);
      }
      if (workValue > 0) {

         if (fieldContext.getEnd() > stop// if will set stop later because new work is after stop
View Full Code Here

Examples of com.projity.field.FieldContext

      ,String spreadSheetCategory
      ,String spreadSheetId
      ,boolean leftAssociation) {
    SpreadSheetFieldArray fields = (SpreadSheetFieldArray) Dictionary.get(spreadSheetCategory, Messages.getString(spreadSheetId));
    ss.setCache(cache, fields, fields.getCellStyle(), fields.getActionList());
    FieldContext fieldContext = new FieldContext();
    fieldContext.setLeftAssociation(leftAssociation);
    ((SpreadSheetModel) ss.getModel()).setFieldContext(fieldContext);
    ((SpreadSheetModel) ss.getModel()).getCache().update();
  }
View Full Code Here

Examples of com.projity.field.FieldContext

    columnModel.setSvg(true);
    initColumns(columnModel, fieldArray.size());
    initColumns(headerColumnModel, 1);


    fieldContext = new FieldContext();
    fieldContext.setLeftAssociation(true);

    updateWidth();
  }
View Full Code Here

Examples of com.projity.field.FieldContext

    String valueS;
    CommonSpreadSheetModel model=(CommonSpreadSheetModel)spreadsheet.getModel();
    String delim="\t";
    StringTokenizer st=new StringTokenizer(s,delim,true);
    int col=col0,maxCol=spreadsheet.getColumnCount()-1;
    FieldContext fieldContext=model.getFieldContext();
    boolean round=fieldContext.isRound();
    fieldContext.setRound(true);
    while(st.hasMoreTokens()&&col<=maxCol){
      valueS=st.nextToken();
      if (delim.equals(valueS)) valueS="";
      else if (st.hasMoreTokens()) st.nextToken();
      try{
        model.setValueAt(valueS,row0,++col);
      }catch(Exception e){}
    }
    fieldContext.setRound(round);
  }
View Full Code Here

Examples of com.projity.field.FieldContext

    super();
    HelpUtil.addDocHelp(this,"Resource_View");
    this.model = model;
    this.document =document;
    this.cache=NodeModelCacheFactory.getInstance().createFilteredCache((ReferenceNodeModelCache)cache,getViewName(),null);
    fieldContext = new FieldContext();
    fieldContext.setLeftAssociation(false);
    /*cellStyle=new CellStyle(){
      CellFormat cellProperties=new CellFormat();
      public CellFormat getCellProperties(GraphicNode node){
        cellProperties.setBold(node.isSummary());
View Full Code Here

Examples of com.projity.field.FieldContext

    this.viewName = viewName;
    this.cache = NodeModelCacheFactory.getInstance().createFilteredCache(refCache, viewName,transformerClosure);


    this.taskUsage = taskUsage;
    fieldContext = new FieldContext();
    fieldContext.setLeftAssociation(taskUsage);
    HelpUtil.addDocHelp(this,taskUsage ? (subView ? "Task_Usage" : "Task_Usage_Detail") : (subView ? "Resource_Usage" : "Resource_Usage_Detail"));
    super.init();
    // cache.update(); //this is not required by certain views
  }
View Full Code Here

Examples of com.projity.field.FieldContext

  }
  public void init(ReferenceNodeModelCache cache, NodeModel model,CoordinatesConverter coord){
    this.coord=coord;
    this.cache=NodeModelCacheFactory.getInstance().createFilteredCache((ReferenceNodeModelCache)cache,getViewName(),null);

    fieldContext = new FieldContext();
    fieldContext.setLeftAssociation(true);
    /*cellStyle=new CellStyle(){
      CellFormat cellProperties=new CellFormat();
      public CellFormat getCellProperties(GraphicNode node){
        cellProperties.setBold(node.isSummary());
View Full Code Here

Examples of net.sf.oval.context.FieldContext

      Model ss = (Model) validatedObject;
     
      try {
              if (context != null) {
                  if (context instanceof FieldContext) {
                      FieldContext ctx = (FieldContext) context;
                      String fieldName = ctx.getField().getName();
                     
                      Query<? extends Object> all = Model.all(validatedObject.getClass());
                List<? extends Object> fetched = all.filter(fieldName, value).fetch();
                if(fetched.size() == 0) return true;
                Object sskey = SienaUtils.findKey(ss);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.