Examples of AttributeModel


Examples of org.gephi.data.attributes.api.AttributeModel

    public AttributeContollerImpl() {
        projectController = Lookup.getDefault().lookup(ProjectController.class);
        projectController.addWorkspaceListener(new WorkspaceListener() {

            public void initialize(Workspace workspace) {
                AttributeModel m = workspace.getLookup().lookup(AttributeModel.class);
                if (m == null) {
                    workspace.add(new IndexedAttributeModel());
                }
            }

            public void select(Workspace workspace) {
            }

            public void unselect(Workspace workspace) {
            }

            public void close(Workspace workspace) {
            }

            public void disable() {
            }
        });
        if (projectController.getCurrentProject() != null) {
            for (Workspace workspace : projectController.getCurrentProject().getLookup().lookup(WorkspaceProvider.class).getWorkspaces()) {
                AttributeModel m = workspace.getLookup().lookup(AttributeModel.class);
                if (m == null) {
                    workspace.add(new IndexedAttributeModel());
                }
            }
        }
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeModel

    }

    public AttributeModel getModel() {
        Workspace workspace = projectController.getCurrentWorkspace();
        if (workspace != null) {
            AttributeModel model = workspace.getLookup().lookup(AttributeModel.class);
            if (model != null) {
                return model;
            }
            model = new IndexedAttributeModel();
            workspace.add(model);
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeModel

        }
        return null;
    }

    public AttributeModel getModel(Workspace workspace) {
        AttributeModel model = workspace.getLookup().lookup(AttributeModel.class);
        if (model != null) {
            return model;
        }
        model = new IndexedAttributeModel();
        workspace.add(model);
View Full Code Here

Examples of org.springframework.webflow.engine.model.AttributeModel

      return parseTransitions(element);
    }
  }

  private AttributeModel parseAttribute(Element element) {
    AttributeModel attribute = new AttributeModel(element.getAttribute("name"), parseAttributeValue(element));
    attribute.setType(element.getAttribute("type"));
    return attribute;
  }
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.