| | |
| | | private String[] referral; |
| | | private int numSubOrdinates; |
| | | |
| | | // This is required for the case where there is an undefined number of |
| | | // subordinates (for instance in the case of the changelog). |
| | | private boolean hasSubOrdinates; |
| | | |
| | | private String displayName; |
| | | private Icon icon; |
| | | private int fontStyle; |
| | |
| | | isLeaf = true; |
| | | refreshNeededOnExpansion = true; |
| | | numSubOrdinates = -1; |
| | | hasSubOrdinates = false; |
| | | displayName = ""; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns whether the entry has subordinates or not. |
| | | * @return {@code true} if the entry has subordinates and {@code false} |
| | | * otherwise. |
| | | */ |
| | | public boolean hasSubOrdinates() { |
| | | return hasSubOrdinates; |
| | | } |
| | | |
| | | /** |
| | | * Sets the whether the entry has subordinates or not. |
| | | * @param hasSubOrdinates whether the entry has subordinates or not. |
| | | */ |
| | | public void setHasSubOrdinates(boolean hasSubOrdinates) { |
| | | this.hasSubOrdinates = hasSubOrdinates; |
| | | } |
| | | |
| | | /** |
| | | * Returns the referrals of the entry. Returns <CODE>null</CODE> if this node |
| | | * is not a referral. |
| | | * @return the referrals of the entry. Returns <CODE>null</CODE> if this node |