Examples of XPersistentPojoModel


Examples of net.xoetrope.optional.data.pojo.XPersistentPojoModel

  /**
   * Persists the selected POJO
   */
  public void persistSelectedPojo()
  {
    XPersistentPojoModel pm = getListSelectedModel();
    // persist the POJO stored in the underlying list
    if ( pm != null ) {
      pm.persist();
      // merge the POJO stored in the selection model node
      if ( selectionModel != null )
        selectionModel.merge();
    }
  }
View Full Code Here

Examples of net.xoetrope.optional.data.pojo.XPersistentPojoModel

   * Merges the selected POJO, changes its state to persistent
   */
  public void mergeSelectedPojo()
  {
    // merge the selected POJO stored in the underlying list
    XPersistentPojoModel pm = getListSelectedModel();
    if ( pm != null )
      pm.merge();
   
    // merge the POJO stored in the selection model node
    if ( selectionModel != null )
      selectionModel.merge();
  }
View Full Code Here

Examples of net.xoetrope.optional.data.pojo.XPersistentPojoModel

   */
  public void deleteSelectedPojo()
  {   
    // removes the POJO being stored in the element of the
    // underlying list holder object.
    XPersistentPojoModel pm = getListSelectedModel();
    if ( pm != null )
      pm.delete();   
    // remove the reference to the POJO from the selection model
    if ( selectionModel != null )
      selectionModel.set( null );   
  }
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.