|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.AbstractNamedEntity
org.torweg.pulse.util.entity.AbstractNamableEntity
org.torweg.pulse.site.View
@Entity public final class View
is an abstract base class for Views.
A View is used to assign a specific presentation of a Content
to a specific SitemapNode in the Sitemap.
SitemapNode, Content, Serialized Form| Constructor Summary | |
|---|---|
View()
constructs a new blank View. |
|
View(Content c)
builds a new View with the given Content. |
|
| Method Summary | |
|---|---|
View |
createCopy()
returns a copy of the View. |
View |
createCopy(java.util.Locale l)
creates a copy of the View in the given locale. |
org.jdom.Element |
deserializeToJDOM()
this will deserialize the state of the JDOMable as a JDOM
Element. |
Command |
getCommand(Command currentCommand)
Builds a Command producing the desired View for the
Content. |
CommandBuilder |
getCommandBuilder()
returns a copy of the CommandBuilder of the View. |
Content |
getContent()
|
java.util.Set<Parameter> |
getParameters()
returns the Parameters of the CommandBuilder. |
SitemapNode |
getSitemapNode()
Returns the SitemapNode. |
void |
removeParameter(Parameter parameter)
removes a Parameter from the CommandBuilder. |
void |
setCommandBuilder(CommandBuilder builder)
sets a CommandBuilder, which describes all fields which need
modification to create the right Command for
getCommand(Command). |
void |
setContent(Content c)
|
void |
setParameters(java.util.Set<Parameter> newParameters)
sets the Parameters of the CommandBuilder. |
void |
setSitemapNode(SitemapNode sn)
Sets the SitemapNode. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractNamableEntity |
|---|
setName |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity |
|---|
getName |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.torweg.pulse.util.INamed |
|---|
getName |
| Constructor Detail |
|---|
public View()
View.
public View(Content c)
View with the given Content.
c - the Content to be set| Method Detail |
|---|
public void setSitemapNode(SitemapNode sn)
SitemapNode.
sn - the SitemapNode to setpublic SitemapNode getSitemapNode()
SitemapNode.
SitemapNodepublic void setContent(Content c)
c - The content to set.public Content getContent()
public Command getCommand(Command currentCommand)
Command producing the desired View for the
Content.
Actually calls CommandBuilder.mixIn(Command) and sets the suffix
(Command.setSuffix(String)), if the Content of this
View is an instance of AbstractBasicContent.
currentCommand - the current Command used as a template
Command producing the desired View for the
Contentpublic void setCommandBuilder(CommandBuilder builder)
CommandBuilder, which describes all fields which need
modification to create the right Command for
getCommand(Command).
builder - the CommandBuilderpublic org.jdom.Element deserializeToJDOM()
JDOMableJDOMable as a JDOM
Element.
deserializeToJDOM in interface JDOMableJDOMable.deserializeToJDOM()public java.util.Set<Parameter> getParameters()
Parameters of the CommandBuilder.
Parameters of the CommandBuilderpublic void removeParameter(Parameter parameter)
Parameter from the CommandBuilder.
parameter - the Parameter to be removedpublic void setParameters(java.util.Set<Parameter> newParameters)
Parameters of the CommandBuilder.
newParameters - the new Parameters for the CommandBuilderpublic CommandBuilder getCommandBuilder()
CommandBuilder of the View.
CommandBuilder of the Viewpublic View createCopy()
View.
Viewpublic View createCopy(java.util.Locale l)
View in the given locale. If the
localization map of the content associated with the View contains
an entry for the given locale, the copied view is assigned the matching
localization.
l - the target locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||