|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.applicate.browsing.ObjectBrowserImpl<I,T>
I - T - public class ObjectBrowserImpl<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>
| Constructor Summary | |
|---|---|
ObjectBrowserImpl()
|
|
ObjectBrowserImpl(Class<T> entityClass)
|
|
ObjectBrowserImpl(I holdId,
it.amattioli.dominate.Repository<I,T> repository)
|
|
ObjectBrowserImpl(it.amattioli.dominate.Repository<I,T> repository)
|
|
ObjectBrowserImpl(T hold,
it.amattioli.dominate.Repository<I,T> repository)
|
|
| Method Summary | ||
|---|---|---|
void |
addCommandListener(CommandListener listener)
|
|
void |
addContentChangeListener(ContentChangeListener listener)
Add a listener for events fired when the browser content changes. |
|
protected void |
additionalRefresh()
|
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
|
void |
addSelectionListener(SelectionListener listener)
Register a listener for the object selection. |
|
void |
commandDone(CommandEvent source)
This method will be called every time a CommandEvent is fired by
the command to which this listener has been added. |
|
boolean |
contains(String name,
String key)
|
|
protected void |
fireContentChange()
|
|
Object |
get(String name)
|
|
Object |
get(String name,
int index)
|
|
Object |
get(String name,
String key)
|
|
ListBrowserImpl<?,?> |
getDetailsBrowser(String propertyName)
Retrieves a ListBrowser to navigate the collection of objects contained in a property. |
|
Map<String,ListBrowserImpl<?,?>> |
getDetailsBrowsers()
Retrieves a map containing all the possible browsers that ObjectBrowser.getDetailsBrowser(String) will return. |
|
protected
|
getDetailsRepository(String propertyName,
Class<E> c)
|
|
org.apache.commons.beanutils.DynaClass |
getDynaClass()
|
|
T |
getHold()
Retrieves the object that this browser is holding. |
|
I |
getHoldId()
|
|
protected it.amattioli.dominate.Repository<I,T> |
getRepository()
|
|
T |
getSelectedObject()
Retrieves the object currently selected. |
|
void |
objectSelected(SelectionEvent event)
Will be called every time an object is selected in a Selector service
on which this listener has been registered. |
|
void |
propertyChange(PropertyChangeEvent event)
|
|
void |
refresh()
Refresh the object that this browser is holding retrieving a fresh copy from the repository. |
|
protected
|
registerDetailBrowser(Class<E> entityClass,
Class<? extends ListBrowser<J,E>> browserClass)
|
|
void |
release()
Releases eventually acquired resources. |
|
void |
remove(String name,
String key)
|
|
void |
removeContentChangeListener(ContentChangeListener listener)
Remove a listener for events fired when the browser content changes. |
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
|
void |
removeSelectionListener(SelectionListener listener)
Remove a listener from the collection of the listeners that will be notified when an object is slected in this browser. |
|
PropertyClass |
retrievePropertyClass(String propertyName)
|
|
void |
set(String name,
int index,
Object value)
|
|
void |
set(String name,
Object value)
|
|
void |
set(String name,
String key,
Object value)
|
|
void |
setHoldId(I holdId)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectBrowserImpl()
public ObjectBrowserImpl(T hold,
it.amattioli.dominate.Repository<I,T> repository)
public ObjectBrowserImpl(I holdId,
it.amattioli.dominate.Repository<I,T> repository)
public ObjectBrowserImpl(it.amattioli.dominate.Repository<I,T> repository)
public ObjectBrowserImpl(Class<T> entityClass)
| Method Detail |
|---|
protected it.amattioli.dominate.Repository<I,T> getRepository()
public void objectSelected(SelectionEvent event)
SelectionListenerSelector service
on which this listener has been registered.
objectSelected in interface SelectionListenerevent - the selection eventpublic void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpublic T getHold()
ObjectBrowser
getHold in interface ObjectBrowser<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>public I getHoldId()
public void setHoldId(I holdId)
public void addCommandListener(CommandListener listener)
public void refresh()
ObjectBrowser
refresh in interface ObjectBrowser<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>protected void additionalRefresh()
public void commandDone(CommandEvent source)
CommandListenerCommandEvent is fired by
the command to which this listener has been added.
commandDone in interface CommandListenersource - the fired eventpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface it.amattioli.dominate.util.PropertyChangeEmitterpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface it.amattioli.dominate.util.PropertyChangeEmitter
protected <J extends Serializable,E extends it.amattioli.dominate.Entity<J>> void registerDetailBrowser(Class<E> entityClass,
Class<? extends ListBrowser<J,E>> browserClass)
protected <J extends Serializable,E extends it.amattioli.dominate.Entity<J>> it.amattioli.dominate.Repository<J,E> getDetailsRepository(String propertyName,
Class<E> c)
public Map<String,ListBrowserImpl<?,?>> getDetailsBrowsers()
ObjectBrowserObjectBrowser.getDetailsBrowser(String) will return.
getDetailsBrowsers in interface ObjectBrowser<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>public ListBrowserImpl<?,?> getDetailsBrowser(String propertyName)
ObjectBrowserIf the hold object has a property whose name is the passed string and whose type is a collection of entities, this method returns a ListBrowser to navigate the entities contained in this collection.
If such a property does not exists, null will be returned.
getDetailsBrowser in interface ObjectBrowser<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>propertyName - the name of the property whose content will be browsed
public void release()
Browser
release in interface Browser<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>
public boolean contains(String name,
String key)
contains in interface org.apache.commons.beanutils.DynaBean
public Object get(String name,
int index)
get in interface org.apache.commons.beanutils.DynaBean
public Object get(String name,
String key)
get in interface org.apache.commons.beanutils.DynaBeanpublic Object get(String name)
get in interface org.apache.commons.beanutils.DynaBeanpublic org.apache.commons.beanutils.DynaClass getDynaClass()
getDynaClass in interface org.apache.commons.beanutils.DynaBean
public void remove(String name,
String key)
remove in interface org.apache.commons.beanutils.DynaBean
public void set(String name,
int index,
Object value)
set in interface org.apache.commons.beanutils.DynaBean
public void set(String name,
Object value)
set in interface org.apache.commons.beanutils.DynaBean
public void set(String name,
String key,
Object value)
set in interface org.apache.commons.beanutils.DynaBeanpublic PropertyClass retrievePropertyClass(String propertyName)
retrievePropertyClass in interface PropertyClassRetrieverpublic T getSelectedObject()
Selector
getSelectedObject in interface Selector<T extends it.amattioli.dominate.Entity<I>>public void addSelectionListener(SelectionListener listener)
Selector
addSelectionListener in interface Selector<T extends it.amattioli.dominate.Entity<I>>listener - the listener to be registeredpublic void removeSelectionListener(SelectionListener listener)
Selector
removeSelectionListener in interface Selector<T extends it.amattioli.dominate.Entity<I>>listener - the listener to be removedpublic void addContentChangeListener(ContentChangeListener listener)
Browser
addContentChangeListener in interface Browser<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>listener - the listener to be addedpublic void removeContentChangeListener(ContentChangeListener listener)
Browser
removeContentChangeListener in interface Browser<I extends Serializable,T extends it.amattioli.dominate.Entity<I>>listener - the listener to be removedprotected void fireContentChange()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||