|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 Value s. |
|
DefaultValues(Object[] values)
Creates DefaultValues from an array of Value s. |
|
DefaultValues(Value[] values)
Creates DefaultValues from an array of Value s. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
getCount()
Gets the number of Value s. |
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 Value
s. 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 Value
s.public DefaultValues(List<Value> values)
DefaultValues
from an array of Value
s. 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 Value
s.public DefaultValues(Object[] values)
DefaultValues
from an array of Value
s. 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)
Values
Value
at the specified index.
getValueAt
in interface Values
index
- the index.
Value
at the specified index.public int getCount()
Values
Value
s.
getCount
in interface Values
Value
s.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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 |