Examples of HierarchyNode


Examples of com.projectlibre.core.hierarchy.HierarchyNode

      public void visit(HierarchyNode hierarchyNode) {
        com.projectlibre.core.nodes.Node node=hierarchyNode.getNode();
        if (!(node instanceof Task)) //ignore assignments present in task hierarchy
          return;
        Task task=(Task)node;
        HierarchyNode parentHierarchyNode=hierarchyNode.getParent();
        Task parentTask=null;
        if (!parentHierarchyNode.isRoot())
          parentTask=(Task)parentHierarchyNode.getNode();

        //openproj task conversion
        NormalTask openprojTask=project.newNormalTaskInstance(false);
        openprojTask.setOwningProject(project);
        openprojTask.setProjectId(project.getUniqueId());
View Full Code Here

Examples of de.esoco.j2me.model.HierarchyNode

   *
   * @return The ProgressMonitor instance or NULL if none exists
   */
  protected ProgressMonitor getProgressMonitor()
  {
    HierarchyNode rRoot = getRoot();

    if ((rRoot != null) && (rRoot instanceof MicroSafeModel))
    {
      return ((MicroSafeModel) rRoot).getProgressMonitor();
    }
View Full Code Here

Examples of de.esoco.j2me.model.HierarchyNode

  {
    int nCount = 0;

    for (int i = 0, n = getChildCount(); i < n; i++)
    {
      HierarchyNode c = getChild(i);

      if (c instanceof EncryptableNode)
      {
        EncryptableNode rChild = (EncryptableNode) c;
View Full Code Here

Examples of de.esoco.j2me.model.HierarchyNode

   * @throws StorageException
   * @throws NodeAccessException
   */
  void accessNodeHierarchy() throws StorageException, NodeAccessException
  {
    HierarchyNode aChild;

    aChild = aModel.getChild(0);
    verifyChildNode(aChild, 1, false, 1);
    aChild = aChild.getChild(0);
    verifyChildNode(aChild, 11, false, 3);
    verifyChildNode(aChild.getChild(0), 111, true, 0);
    verifyChildNode(aChild.getChild(1), 112, true, 0);
    verifyChildNode(aChild.getChild(2), 113, true, 0);
    aChild = aModel.getChild(1);
    verifyChildNode(aChild, 2, false, 2);
    verifyChildNode(aChild.getChild(0), 21, true, 0);
    verifyChildNode(aChild.getChild(1), 22, false, 1);
    verifyChildNode(aChild.getChild(1).getChild(0), 221, true, 0);
  }
View Full Code Here

Examples of de.esoco.j2me.model.HierarchyNode

    {
      ProcessingQueue.schedule((ExecutableCommand) rCmd);
    }
    else if (rCmd instanceof NodeCommand)
    {
      HierarchyNode rNode = rView.getSelectedNode();

      if (rNode != null)
      {
        ProcessingQueue.schedule((NodeCommand) rCmd, rNode);
      }
View Full Code Here

Examples of de.esoco.j2me.model.HierarchyNode

      Object rView = aViewStack.elementAt(--i);

      if (rView instanceof HierarchyNodeDisplay)
      {
        HierarchyNodeDisplay rDisplay = (HierarchyNodeDisplay) rView;
        HierarchyNode     rNode    = rDisplay.getRoot();

        if (!bEditableOnly || (rNode instanceof MutableHierarchyNode))
        {
          ((Displayable) rDisplay).addCommand(rCmd);
        }
View Full Code Here

Examples of de.esoco.j2me.model.HierarchyNode

   */
  protected void deleteNode(HierarchyNode rNode)
    throws UserNotificationException
  {
    HierarchyNodeDisplay rDisplay = (HierarchyNodeDisplay) rCurrentView;
    HierarchyNode     rParent  = rDisplay.getRoot();
    int           nIndex   = rParent.getChildIndex(rNode);

    try
    {
      ((MutableHierarchyNode) rParent).removeChild(nIndex);
      rDisplay.getListView().delete(nIndex);
View Full Code Here

Examples of de.esoco.j2me.model.HierarchyNode

   */
  protected void insertNode(HierarchyNode rNode)
    throws UserNotificationException
  {
    HierarchyNodeDisplay rDisplay = (HierarchyNodeDisplay) rCurrentView;
    HierarchyNode     rParent  = rDisplay.getRoot();
    int           nIndex   = rDisplay.getListView()
                        .getSelectedIndex();

    try
    {
View Full Code Here

Examples of de.esoco.j2me.model.HierarchyNode

  {
    try
    {
      MutableHierarchyNode rParent = (MutableHierarchyNode)
                      getCurrentNode();
      HierarchyNode      rNode   = rParent.createChild(sType, sTitle);

      insertNode(rNode);
    }
    catch (NodeAccessException eNodeAccess)
    {
View Full Code Here

Examples of de.esoco.j2me.model.HierarchyNode

    String[] aTitles = new String[nSize];
    Image[]  aImages = new Image[nSize];

    for (int i = 0; i < nCount; i++)
    {
      HierarchyNode rChild = rParent.getChild(i);

      aTitles[i] = rChild.getTitle();
      aImages[i] = rViewController.getNodeController().getNodeImage(rChild
                                      .getNodeType(),
                                      rChild);
    }

    if (bEditable)
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.