Examples of HierarchicalStorage


Examples of de.esoco.j2me.storage.HierarchicalStorage

  public void insertChild(HierarchyNode rNewChild, int nIndex)
    throws NodeAccessException, StorageException
  {
    insertChildNode((BasicHierarchyNode) rNewChild, nIndex);

    HierarchicalStorage rStorage = getStorage();

    if ((rStorage != null) && (nStorageHandle != STORAGE_UNASSIGNED))
    {
      try
      {
        // immediately write the child hierarchy to the storage
        // open parent node for reading only so that it is not necessary
        // to write out it's data again
        rStorage.openNode(nStorageHandle, false);
        writeChildNode(rStorage, nIndex);
        rStorage.closeNode();
      }
      catch (IOException eIO)
      {
        throw new StorageException("Writing child node(s) to storage failed",
                       eIO);
View Full Code Here

Examples of de.esoco.j2me.storage.HierarchicalStorage

   * @see MutableHierarchyNode#removeChild(int)
   */
  public void removeChild(int nIndex) throws StorageException
  {
    BasicHierarchyNode  rChild   = (BasicHierarchyNode) getChild(nIndex);
    HierarchicalStorage rStorage = getStorage();

    aChildren.removeElementAt(nIndex);

    if (nIndex < aChildren.size())
    {
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.