|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.pivot.DefaultValues
public class DefaultValues
Default implementation of Values interface.
The equality of twoDefaultValues's is depending on the actual equality from the Value inside it.
If you extend a new Values class from DefaultValues, you need override SortableAggregateTableModel.compare(int,
int, int) to make sure your new value type will present in right position while sorting together with other type of
values.
| Constructor Summary | |
|---|---|
DefaultValues(ExpandableValue value)
Creates DefaultValues from ExpandableValue. |
|
DefaultValues(List<Value> values)
Creates DefaultValues from an array of Values. |
|
DefaultValues(Object[] values)
Creates DefaultValues from an array of Values. |
|
DefaultValues(Value[] values)
Creates DefaultValues from an array of Values. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getCount()
Gets the number of Values. |
Value |
getValueAt(int index)
Gets the Value at the specified index. |
int |
hashCode()
|
CompoundKey |
toCompoundKey()
Creates a CompoundKey from this DefaultValues. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultValues(ExpandableValue value)
DefaultValues from ExpandableValue. ExpandableValue can have
parent so this constructor will find all its ancestors and create the DefaultValues until the parent is null.
value - a ExpandableValuepublic DefaultValues(Value[] values)
DefaultValues from an array of Values. Sometimes it is difficult to create or
access the ExpandableValue and use the DefaultValues(ExpandableValue). So we introduces this constructor
to make it possible to create a DefaultValues if you have all the Values.
values - an array of Values.public DefaultValues(List<Value> values)
DefaultValues from an array of Values. Sometimes it is difficult to create or
access the ExpandableValue and use the DefaultValues(ExpandableValue). So we introduces this constructor
to make it possible to create a DefaultValues if you have all the Values.
values - a list of Values.public DefaultValues(Object[] values)
DefaultValues from an array of Values. Sometimes it is difficult to create or
access the ExpandableValue and use the DefaultValues(ExpandableValue). So we introduces this constructor
to make it possible to create a DefaultValues if you only know the actual values.
values - an array of Values.| Method Detail |
|---|
public Value getValueAt(int index)
ValuesValue at the specified index.
getValueAt in interface Valuesindex - the index.
Value at the specified index.public int getCount()
ValuesValues.
getCount in interface ValuesValues.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic CompoundKey toCompoundKey()
public String toString()
toString in class Object
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||