Package org.dmlite.model

Examples of org.dmlite.model.IEntity


      App app = viewContext.getApp();

      ModelContext entityEditFormModelContext = new ModelContext(
          modelContext);
      entityEditFormModelContext.setAction("update");
      IEntity afterEntity;
      if (entityEditFormModelContext.getUpdateEntity() == null) {
        afterEntity = modelContext.getEntity().copy();
        entityEditFormModelContext.setUpdateEntity(afterEntity);
      }
     
View Full Code Here


   */
  public TypeValueDropDownChoicePanel(final ModelContext modelContext,
      final ViewContext viewContext) {
    super(viewContext.getWicketId());
    try {
      IEntity entity;
      String action = modelContext.getAction();
      if (action != null && action.equals("update")) {
        entity = modelContext.getUpdateEntity();
      } else {
        entity = modelContext.getEntity();
View Full Code Here

    this.viewContext = viewContext;
  }

  protected void populateItem(final ListItem item) {
    try {
      IEntity parentEntity = (IEntity) item.getModelObject();
     
      App app = viewContext.getApp();

      ModelContext parentModelContext = new ModelContext(modelContext,
          true);
View Full Code Here

   * @return list of id neighbors
   */
  public List<IEntity> getNeighborList() {
    List<IEntity> neighbors = new ArrayList<IEntity>();
    for (Map.Entry e : neighborEntityIdMap.entrySet()) {
      IEntity neighbor = (IEntity) e.getValue();
      neighbors.add(neighbor);
    }
    return neighbors;
  }
View Full Code Here

   */
  public TextAreaPanel(final ModelContext modelContext,
      final ViewContext viewContext) {
    super(viewContext.getWicketId());
    try {
      IEntity entity;
      String action = modelContext.getAction();
      if (action != null && action.equals("update")) {
        entity = modelContext.getUpdateEntity();
      } else {
        entity = modelContext.getEntity();
View Full Code Here

          }
        }
      };
      add(addLink);

      final IEntity clipboardEntity = getAppSession().getClipboard()
          .getEntity();
      Link pasteLink = new Link("paste") {
        static final long serialVersionUID = 200762L;

        public void onClick() {
          try {
            if (clipboardEntity != null) {
              if (app.isConceptUpdateAllowed(getAppSession(),
                  conceptConfig, clipboardEntity, "add")
                  && clipboardEntity.getConceptConfig() == entities
                      .getConceptConfig()) {
                if (entities.add(clipboardEntity)) {
                  ViewContext entityUpdateTablePageContext = new ViewContext(
                      viewContext);
                  entityUpdateTablePageContext
View Full Code Here

    this.viewContext = viewContext;
  }

  protected void populateItem(final ListItem item) {
    try {
      IEntity entity = (IEntity) item.getModelObject();
     
      App app = viewContext.getApp();

      ModelContext entityModelContext = new ModelContext(modelContext);
      entityModelContext.setEntity(entity);
View Full Code Here

TOP

Related Classes of org.dmlite.model.IEntity

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.