Examples of NodeModel


Examples of com.gwtext.client.data.NodeModel

                                final JavaScriptObject failure,
                                final JavaScriptObject callback, String params) {

      if(asyncCallback == null) return;
     
      NodeModel nodeModelRoot = root.getNodeModel();
      if(nodeModelRoot == null) nodeModelRoot = new NodeModel(root);
     
        try {
          asyncCallback.getTreeNodeModel(nodeModelRoot, new AsyncCallback(){

        public void onFailure(Throwable caught) {
View Full Code Here

Examples of com.pcbje.maltegoimporter.model.NodeModel

                       
                        if (record.length == 5) {
                            label = record[EDGE_LABEL];
                        }

      NodeModel source = new MaltegoNodeModel(record[NODE_A_TYPE],
          record[NODE_A_VALUE]);
      NodeModel target = new MaltegoNodeModel(record[NODE_B_TYPE],
          record[NODE_B_VALUE]);
      EdgeModel edge = new MaltegoEdgeModel(source, target,
          label);

      nodes.add(source);
View Full Code Here

Examples of com.projity.grouping.core.model.NodeModel

  }

  public void initializeOutlines(){
    int count=Settings.numHierarchies();
    for (int i=0;i<count;i++){
      NodeModel model=taskOutlines.getOutline(i);
      if (model==null) continue;
      if (model instanceof AssignmentNodeModel){
        AssignmentNodeModel aModel=(AssignmentNodeModel)model;
        aModel.setContainsLeftObjects(true);
        aModel.setDocument(this);
      }
      model.setUndoController(undoController);
    }
    initializeDefaultOutline();
  }
View Full Code Here

Examples of com.projity.grouping.core.model.NodeModel

  }

  public void disconnectOutlines(){
    int count=Settings.numHierarchies();
    for (int i=0;i<count;i++){
      NodeModel model=taskOutlines.getOutline(i);
      if (model instanceof AssignmentNodeModel){
        AssignmentNodeModel aModel=(AssignmentNodeModel)model;
        aModel.setDocument(null); //remove ObjectListener
      }
    }
View Full Code Here

Examples of com.projity.grouping.core.model.NodeModel

    initSubprojectHandler();      //this is created transiently
      setSchedulingAlgorithm(new CriticalPath(this)); // Critical path needs objectEventManager

      int count=Settings.numHierarchies();
    for (int i=0;i<count;i++){
      NodeModel model=taskOutlines.getOutline(i);
      if (model==null) continue;
      if (model instanceof AssignmentNodeModel){
        AssignmentNodeModel aModel=(AssignmentNodeModel)model;
        aModel.setContainsLeftObjects(true);
        aModel.setDocument(this);
      }
      model.setUndoController(undoController);
    }

    //setEnd(getStart());
    //setInitialized(true);
    //initialize();
View Full Code Here

Examples of com.projity.grouping.core.model.NodeModel

    else
      return ((double) calcSummedActualWork()) / work;
  }

  private long calcSummedWork() {
    NodeModel nodeModel = getProject().getTaskOutline();
    Node node = nodeModel.search(this);
    if (node == null)
      return 0;
    Number value = (Number) Configuration.getFieldFromId("Field.work")
        .getValue(node, nodeModel, null);
    return value.longValue();
View Full Code Here

Examples of com.projity.grouping.core.model.NodeModel

        .getValue(node, nodeModel, null);
    return value.longValue();
  }

  private long calcSummedActualWork() {
    NodeModel nodeModel = getProject().getTaskOutline();
    Node node = nodeModel.search(this);
    Number value = (Number) Configuration
        .getFieldFromId("Field.actualWork").getValue(node, nodeModel,
            null);
    return value.longValue();
  }
View Full Code Here

Examples of de.hpi.eworld.model.db.data.NodeModel

      new PolygonEventView(new PolygonEventModel(PolygonEventModel.Type.Rain, 1, null)),
      new PolygonEventView(new PolygonEventModel(PolygonEventModel.Type.Snow, 1, null)),
      new PolygonEventView(new PolygonEventModel(PolygonEventModel.Type.Ice, 1, null)),
      new StreetBarrierView(new RoadSpotModel(RoadSpotModel.Type.Busstop)),
      new StreetBarrierView(new RoadSpotModel(RoadSpotModel.Type.Liftgate)),
      new TrafficLightView(new TrafficLightModel(new NodeModel(0,0))));
    return (List<GraphicsView<EventModel>>) list;
  }
View Full Code Here

Examples of es.iiia.shapegrammar.model.NodeModel

    if (selection != null && selection instanceof IStructuredSelection) {
      Object obj = ((IStructuredSelection) selection).getFirstElement();
      // If we had a selection lets open the editor
      if (obj != null) {
        //ShapeModel geometry = (ShapeModel) obj;
        NodeModel model = (NodeModel) obj;
        ShapeGrammarInput input = new ShapeGrammarInput(model);
        try {
          // get Editor ID (it can be specific for different geometry)
          String editorID = model.getEditorId();
         
          // open editor         
          ShapeEditor editor = (ShapeEditor) page.openEditor(input, editorID == null ? ShapeEditor.ID : editorID);
         
          // hook event listener on editor
          model.addPropertyChangeListener(editor);
         
          // open properties
          page.showView(IPageLayout.ID_PROP_SHEET);
        } catch (PartInitException e) {
          Debugger.getInstance().addMessage(e.getStackTrace());
View Full Code Here

Examples of es.iiia.shapegrammar.model.NodeModel

    ShapeEditor editor = (ShapeEditor) part;
    createGlobalActionHandlers(editor);

    // prepare the outline page

    NodeModel model = (NodeModel) editor.getModel();
    ShapeEditorOutlinePage outline = (ShapeEditorOutlinePage) editor
        .getContentOutlinePage(model);

    model.removePropertyChangeListener(outline);
    model.addPropertyChangeListener(outline);

    outline.repaint(editor.getModel());

    // this.fireChangeListeners(null, part);
  }
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.