org.ozoneDB.adminGui.feature.account
Class AccountItem

java.lang.Object
  extended byorg.ozoneDB.adminGui.feature.account.AccountItem
Direct Known Subclasses:
GroupItem, UserItem

public class AccountItem
extends java.lang.Object

This class creates users/groups objects that are loaded into the Groups tree.

Version:
1.0
Author:

Ibsen Ramos-Bonilla
Copyright © 1997-2004 by SMB GmbH. All Rights Reserved.


Constructor Summary
AccountItem(java.lang.String name, int id)
          Overloaded constructor initializes the a new item.
 
Method Summary
 void addChild(AccountItem item)
          This method adds a new children node to the parent.
 AccountItem getChildAt(int i)
          This method returns the specific child at a selected location.
 int getChildCount()
          This method returns number of children for this item.
 java.util.Vector getChildren()
          This method returns this object child objects.
 int getId()
          This method returns the group item id.
 int getIndexOfChild(AccountItem item)
          This method returns number of children for this item.
 boolean isAdmin()
          This method returns a flag indicating if the account is admin.
 void removeChild(AccountItem item)
          This method removes a children node from the parent.
 void setChildren(java.util.Vector children)
          This method sets this object child objects.
 java.lang.String toString()
          This method returns the group item name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccountItem

public AccountItem(java.lang.String name,
                   int id)
Overloaded constructor initializes the a new item.

Parameters:
name - - the item name.
id - - the item id.
Method Detail

toString

public java.lang.String toString()
This method returns the group item name.

Returns:
String - group item name.

getId

public int getId()
This method returns the group item id.

Returns:
int - group item id.

isAdmin

public boolean isAdmin()
This method returns a flag indicating if the account is admin.

Returns:
boolean - TRUE = is admin. FALSE = is not admin.

getIndexOfChild

public int getIndexOfChild(AccountItem item)
This method returns number of children for this item.

Parameters:
item - - the selected child.
Returns:
int - number of children.

getChildAt

public AccountItem getChildAt(int i)
This method returns the specific child at a selected location.

Parameters:
i - - the selected position of a child.
Returns:
GroupItem - child.

getChildCount

public int getChildCount()
This method returns number of children for this item.

Returns:
int - number of children.

setChildren

public void setChildren(java.util.Vector children)
This method sets this object child objects.

Parameters:
children - - item children.

getChildren

public java.util.Vector getChildren()
This method returns this object child objects.

Returns:
Vector - object item children.

addChild

public void addChild(AccountItem item)
This method adds a new children node to the parent.

Parameters:
item - - the account item node being added to the parent.

removeChild

public void removeChild(AccountItem item)
This method removes a children node from the parent.

Parameters:
item - - the account item node being removed from the parent.


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.