|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mov.ui.AccountNameFormat
public class AccountNameFormat
This class describes how to display and sort the name of portfolio accounts in the table. Account names are simply displayed as strings, in the table, and are basically sorted as Strings. The only exception is that the total entry always appears at the bottom.
| Field Summary | |
|---|---|
static AccountNameFormat |
TOTAL
The account name format that represents the total row |
| Constructor Summary | |
|---|---|
AccountNameFormat(java.lang.String name)
Create a new account name format object. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object object,
boolean reverse)
Compare two account names. |
java.lang.String |
getName()
Get the account name. |
java.lang.String |
toString()
Return a string representation of the account name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AccountNameFormat TOTAL
| Constructor Detail |
|---|
public AccountNameFormat(java.lang.String name)
name - the name of the account| Method Detail |
|---|
public java.lang.String getName()
public int compareTo(java.lang.Object object,
boolean reverse)
compareTo in interface TwoWayComparableobject - account name object to compare toreverse - order of sort, if set reverse the order.
0 if the objects are equal;
1 if this object is after the specified object or
-1 if this object is before the specified objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||