|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--org.favabeans.base.ArrayFolder
An ArrayFolder
is a Folder
Facet
for Java arrays.
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
ArrayFolder(Object primaryObject)
|
Method Summary | |
void |
add(int i,
Object o)
|
void |
addListDataListener(ListDataListener l)
|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener l)
|
protected Column[] |
buildAdditionalColumns()
Build and return a set of additional Column
objects which are not obtainable via Bean introspection. |
Object |
get(int i)
|
protected Object[] |
getArray()
|
Column[] |
getColumns()
The columns of this Folder , represented as a set
of Column objects. |
Object |
getPrimaryObject()
Obtain the primary object of this Facet . |
boolean |
isMutable()
Determine whether this Folder supports mutation. |
boolean |
isOrderingSemantic()
Determine whether the ordering of this Folder is
merely coincidental, based on the need to make up an ordering
for the convenience of UI elements, or semantic, that is to
say, of actual importance to the underlying domain object
model. |
Object |
remove(int i)
|
void |
removeListDataListener(ListDataListener l)
|
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener l)
|
Object |
set(int i,
Object o)
|
protected boolean |
shouldIncludeBeanColumn(PropertyDescriptor pd)
Indicate whether a given introspected Bean property applicable to all the collection elements should be included in the columns of this Folder . |
int |
size()
|
Methods inherited from class java.util.AbstractList |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray |
Constructor Detail |
public ArrayFolder(Object primaryObject)
Method Detail |
public Object get(int i)
get
in interface List
get
in class AbstractList
public int size()
size
in interface List
size
in class AbstractCollection
public Object set(int i, Object o)
set
in interface List
set
in class AbstractList
public void add(int i, Object o)
add
in interface List
add
in class AbstractList
public Object remove(int i)
remove
in interface List
remove
in class AbstractList
public Object getPrimaryObject()
Facet
Facet
.
The primary object is that object of which this
Facet
is an alternative representation. The
primary object may or may not know that it is being represented
by this Facet
.getPrimaryObject
in interface Facet
org.favabeans.base.Facet
public Column[] getColumns()
Folder
Folder
, represented as a set
of Column
objects.getColumns
in interface Folder
public void addListDataListener(ListDataListener l)
addListDataListener
in interface Folder
public void removeListDataListener(ListDataListener l)
removeListDataListener
in interface Folder
public boolean isOrderingSemantic()
Folder
Folder
is
merely coincidental, based on the need to make up an ordering
for the convenience of UI elements, or semantic, that is to
say, of actual importance to the underlying domain object
model.
UI elements will typically only display "move up/down", "add
before", "add after" and "add between" interactors to the
end-user if this method returns true
.
An example of a coincidental ordering is the ordering we
would generate for files in a typical operating system
directory. Though we can sort the files (see Column.getAscendingSort()
), it does not make sense to add a
new file "before" or "after" another one, or "between" two
other files.
An example of a semantic ordering is what we would generate
for a list of print jobs in a print queue, where the order of
execution is based on the order of submission. An end-user with
sufficient privileges may wish to move jobs forwards or
backwards in the queue, or insert a new job at a specific
position. @return true
if the ordering is
semantic; false
otherwise.
isOrderingSemantic
in interface Folder
public boolean isMutable()
Folder
Folder
supports mutation.isMutable
in interface Folder
org.favabeans.base.Folder
true
if elements can be added to or
removed from this Folder
.public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in interface Folder
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in interface Folder
public void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
addPropertyChangeListener
in interface Folder
public void removePropertyChangeListener(String propertyName, PropertyChangeListener l)
removePropertyChangeListener
in interface Folder
protected boolean shouldIncludeBeanColumn(PropertyDescriptor pd)
columns
of this Folder
.
This method is for the convenience of subclasses. The
default implementation of this method always returns
true
.
pd
- the Bean property descriptor for the given property.true
if the property should be included;
false
otherwise.protected Column[] buildAdditionalColumns()
Column
objects which are not obtainable via Bean introspection.
This method is for the convenience of subclasses. The default implementation of this method returns an empty array.
Column
objects.protected Object[] getArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |