Package de.hpi.eworld.model.db.data

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


          Object item = notification.getObj1();
          if (item instanceof StreetBarrierView) {
            RoadSpotModel roadSpot = (RoadSpotModel) ((StreetBarrierView) item)
                .getModelElement();
            if (roadSpot.getEventType() == Type.School) {
              SchoolModel school = (SchoolModel) roadSpot;
              closingHourModel.add(school);
              descriptionModel.setMappingKey(school);
              lowerAgeLimitModel.add(school);
              openingHourModel.add(school);
              studentNumbersModel.add(school);
View Full Code Here


   */
  @Override
  protected List<GraphicsView<RoadSpotModel>> provideAnnotationItems() {
    final List<GraphicsView<RoadSpotModel>> annotationItems = new ArrayList<GraphicsView<RoadSpotModel>>();

    annotationItems.add(new StreetBarrierView(new SchoolModel()));
    annotationItems.add(new StreetBarrierView(new RoadSpotModel(
        Type.Busstop)));

    return annotationItems;
  }
View Full Code Here

                  .setText("Bus stop located at street "
                      + roadSpot.getWay().getDescription());
              propertyPaneLayout.show(propertyPane, busStopName);
 
            } else if (roadSpot.getEventType() == Type.School) {
              SchoolModel school = (SchoolModel) roadSpot;
              streetOfSchoolLabel.setText("School located at street "
                  + school.getWay().getDescription());
              propertyPaneLayout.show(propertyPane, schoolPaneName);
            }
          } else {
            propertyPaneLayout.show(propertyPane, blankPaneName);
          }
View Full Code Here

TOP

Related Classes of de.hpi.eworld.model.db.data.SchoolModel

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.