Package de.esoco.j2me.model

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


  {
    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

   * @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

    {
      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

      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

   */
  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

   */
  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

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

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

    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

   *
   * @throws UserNotificationException If an error occurs during execution
   */
  public final void execute(Object rArg) throws UserNotificationException
  {
    final HierarchyNode rNode = (HierarchyNode) rArg;

    if (bEditableOnly && !(rArg instanceof MutableHierarchyNode))
    {
      ResourceBundle rRsrc = ResourceBundle.getCurrent();

View Full Code Here

TOP

Related Classes of de.esoco.j2me.model.HierarchyNode

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.