|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Column
of an object describes a
column of information about it.
Method Summary | |
void |
addListDataListener(ListDataListener l)
|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener l)
|
int[] |
getAscendingSort()
Obtain a permutation on this Column (and its
associated Folder ) representing an ascending total
ordering of its contents. |
Class |
getValueClass()
Determine the most general Java class of the objects which are values of this Property . |
boolean |
isEnabled()
Determine whether this Column is enabled. |
boolean |
isSortable()
Determine whether the elements of the collection from which this Column is derived can be sorted based on the
values of this Column . |
boolean |
isValueSettable()
Determine whether the values of this Column can be
set. |
boolean |
isValueSettable(int i,
Object value)
Check if the given value is an allowable argument to setValue(int,Object) . |
PropertyEditor |
newEditor(int i)
Obtain a PropertyEditor instance suitable for
editing one of the values of ths Property object. |
void |
removeListDataListener(ListDataListener l)
|
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener l)
|
void |
setValue(int i,
Object value)
Set a value of the Column . |
Methods inherited from interface org.favabeans.base.Feature |
getTarget |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Method Detail |
public Class getValueClass()
Property
. As a minimum, this
operation should return Object
.public boolean isEnabled()
Column
is enabled. a
"disabled" property is one which should be displayed in UI
elements, but in a state which indicates that it is
non-functional and/or non-applicable (e.g., by "graying out").true
if this Column
is
enabled; false
if it is disabled.public PropertyEditor newEditor(int i)
PropertyEditor
instance suitable for
editing one of the values of ths Property object.i
- the index of the column value for which to obtain a
PropertyEditor
.PropertyEditor
.public boolean isValueSettable()
Column
can be
set. If this method returns false
, calls to
setValue
will return silently with no effect.true
if the values can be set;
false
otherwise.public boolean isValueSettable(int i, Object value)
setValue(int,Object)
. This should be overridden to provide
end-user feedback regarding the correctness of a value, where
such information is available to the implementation.
The default behavior of this method is to return
true
, and throw an exception in setValue(Object)
if necessary.
i
- the index at which to set the candidate column value.value
- the candidate column value.false
if the candidate value is known to
be unacceptable; true
otherwise.public void setValue(int i, Object value) throws PropertyValueException
Column
.i
- the index at which to set the column value.value
- the desired new column value.PropertyValueException
- if there was a problem
setting the value, or if the value was not acceptable.public boolean isSortable()
Column
is derived can be sorted based on the
values of this Column
.true
if sorting is supported;
false
otherwise.public int[] getAscendingSort()
Column
(and its
associated Folder
) representing an ascending total
ordering of its contents. A descending ordering is by
definition simply the reverse of this permutation.
To use this permutation to gain access to the elements in
ascending order, given Column c
, we would do --
for (int i = 0; i < c.size(); i++) System.out.println(c.get(c.getAscendingSort()[i]));
and, in descending order --
for (int i = c.size(); i-- > 0; ) System.out.println(c.get(c.getAscendingSort()[i]));
public void addListDataListener(ListDataListener l)
public void removeListDataListener(ListDataListener l)
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |