|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.site.ViewTypes
public class ViewTypes
is a collection of different Views which are assigned to a
Content in a specific Bundle.
A ViewTypes is nothing more than a datastructure with absolutely
no further functions.
For an explanation of the different types of Views stored in the
ViewTypes see the method documentation below.
| Nested Class Summary | |
|---|---|
static class |
ViewTypes.Types
an enumeration of the different types. |
| Constructor Summary | |
|---|---|
ViewTypes()
constructs a new ViewTypes. |
|
| Method Summary | |
|---|---|
void |
addStandardView(View view)
adds a View to the ViewTypes standard
Views. |
View |
getCreateView()
|
View |
getDefaultView()
returns the default View of the ViewTypes. |
View |
getDeleteView()
|
View |
getEditView()
|
View |
getExpandEditView()
|
View |
getExpandView()
|
View |
getMoveView()
|
View |
getNodeCreateContentView()
|
View |
getSaveView()
|
java.util.Set<View> |
getStandardViews()
returns the standard Views of the ViewTypes. |
View |
getViewByType(java.lang.String type)
returns a View by type. |
static View |
initView(java.lang.Class<? extends View> clazz, Content content)
returns an intitialised View of the given class for the
given Content. |
void |
setCreateView(View view)
|
void |
setDefaultView(View view)
sets the default View of the ViewTypes. |
void |
setDeleteView(View view)
|
void |
setEditView(View view)
|
void |
setExpandEditView(View view)
|
void |
setExpandView(View view)
|
void |
setMoveView(View view)
|
void |
setNodeCreateContentView(View view)
|
void |
setSaveView(View view)
|
void |
setStandardViews(java.util.Collection<View> v)
sets the standard Views of the ViewType
including the default View, if already set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewTypes()
ViewTypes.
| Method Detail |
|---|
public final View getDefaultView()
View of the ViewTypes.
View of the ViewTypespublic final void setDefaultView(View view)
View of the ViewTypes.
view - the default View to be setpublic final void setCreateView(View view)
view - the create View to be setpublic final View getCreateView()
Viewpublic final void setSaveView(View view)
view - the save View to be setpublic final View getSaveView()
Viewpublic final void setEditView(View view)
view - the edit View to be setpublic final View getEditView()
Viewpublic final void setMoveView(View view)
view - the move View to be setpublic final View getMoveView()
Viewpublic final void setDeleteView(View view)
view - the delete View to be setpublic final View getDeleteView()
Viewpublic final void setNodeCreateContentView(View view)
view - the nodeCreateContentView View to be setpublic final View getNodeCreateContentView()
Viewpublic final void setExpandEditView(View view)
view - the expandEditView View to be setpublic final View getExpandEditView()
Viewpublic final void setExpandView(View view)
view - the expandView View to be setpublic final View getExpandView()
Viewpublic final View getViewByType(java.lang.String type)
type - the requested type
View by type if exists, null otherwise.public final java.util.Set<View> getStandardViews()
Views of the ViewTypes.
The standard Views comprise all non administrative
Views, i.e. all Views except the editor
View and the manager View.
Views of the ViewTypespublic final void setStandardViews(java.util.Collection<View> v)
Views of the ViewType
including the default View, if already set.
If no standard View is set, the first View in
the Collection will become the standard View.
v - The standardViews to set.public final void addStandardView(View view)
View to the ViewTypes standard
Views.
view - the standard View to be addedpublic static final View initView(java.lang.Class<? extends View> clazz, Content content)
View of the given class for the
given Content.
clazz - the Class to be initialisedcontent - the Content to be used for initialisation
View of the given class for the
given Content
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||