|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tonbeller.jpivot.core.ModelSupport
public class ModelSupport
Default implementation of a model
| Field Summary |
|---|
| Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
|---|
EXTENSIONAL, INTENSIONAL |
| Constructor Summary | |
|---|---|
ModelSupport()
|
|
| Method Summary | |
|---|---|
void |
addExtension(Extension extension)
adds a Feature to this model. |
void |
addModelChangeListener(ModelChangeListener l)
adds a model change listener |
void |
destroy()
clears all references to extensioins (to avoid memory leaks) |
void |
fireModelChanged()
|
void |
fireModelChanged(ModelChangeEvent e)
|
void |
fireStructureChanged()
|
void |
fireStructureChanged(ModelChangeEvent e)
|
java.lang.Object |
getBookmarkState(int levelOfDetail)
returns null |
Extension |
getExtension(java.lang.String id)
returns the extension if this model instance supports it. |
java.util.Map |
getExtensions()
returns the extensions |
java.util.Locale |
getLocale()
Returns the current locale. |
Model |
getRootModel()
Returns the bottom element of the decorator chain. |
Model |
getTopDecorator()
Returns a decorated model if any of the extensions decorate this. |
void |
removeModelChangeListener(ModelChangeListener l)
removes a model change listener |
void |
setBookmarkState(java.lang.Object state)
does nothing |
void |
setLocale(java.util.Locale locale)
Sets the current locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelSupport()
| Method Detail |
|---|
public void destroy()
public Extension getExtension(java.lang.String id)
Model
getExtension in interface Modelcom.tonbeller.jpivot.model.Model#getFeature(String)public java.util.Map getExtensions()
getExtensions in interface ModelExtensionpublic void addExtension(Extension extension)
addExtension in interface Modelpublic java.lang.Object getBookmarkState(int levelOfDetail)
getBookmarkState in interface com.tonbeller.wcf.bookmarks.Bookmarkablepublic void setBookmarkState(java.lang.Object state)
setBookmarkState in interface com.tonbeller.wcf.bookmarks.Bookmarkablepublic void addModelChangeListener(ModelChangeListener l)
Model
addModelChangeListener in interface ModelModel.addModelChangeListener(ModelChangeListener)public void removeModelChangeListener(ModelChangeListener l)
Model
removeModelChangeListener in interface ModelModel.removeModelChangeListener(ModelChangeListener)public void fireModelChanged()
public void fireModelChanged(ModelChangeEvent e)
public void fireStructureChanged()
public void fireStructureChanged(ModelChangeEvent e)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
setLocale in interface Modellocale - The locale to setpublic Model getTopDecorator()
getTopDecorator in interface Modelpublic Model getRootModel()
Model
getRootModel in interface Model
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||