Package org.dmlite.model.component.concept

Examples of org.dmlite.model.component.concept.Concept


    this.viewContext = viewContext;
  }

  protected void populateItem(final ListItem item) {
    try {
      Concept concept = (Concept) item.getModelObject();
      String conceptName = concept.getCode().toUpperCase();
      Label conceptNameLabel = new Label("conceptName", conceptName);
      item.add(conceptNameLabel);

      ModelContext propertiesModelContext = new ModelContext(modelContext);
      Properties properties = concept.getProperties();
      propertiesModelContext.setEntities(properties);
      ViewContext propertiesViewContext = new ViewContext(viewContext);
      propertiesViewContext.setWicketId("propertyListPanel");
      PropertyListPanel propertyListPanel = new PropertyListPanel(
          propertiesModelContext, propertiesViewContext);
      item.add(propertyListPanel);

      ModelContext neighborsModelContext = new ModelContext(modelContext);
      Neighbors neighbors = concept.getNeighbors();
      neighborsModelContext.setEntities(neighbors);
      ViewContext neighborsViewContext = new ViewContext(viewContext);
      neighborsViewContext.setWicketId("neighborListPanel");
      NeighborListPanel neighborListPanel = new NeighborListPanel(
          neighborsModelContext, neighborsViewContext);
View Full Code Here

TOP

Related Classes of org.dmlite.model.component.concept.Concept

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.