|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.content.Entry
public class Entry
Entry represents an individual piece of content in a ZPad.
| Field Summary | |
|---|---|
protected static String |
_HAD_OCCURRING_CLABELS_VALUE
|
protected static WProperties |
_sharedEmptyProperties
|
WProperties |
entryAttribs
The HTML attributes of this Entry (i.e. |
WProperties |
entryParams
The HTML parameters of this Entry (i.e. |
WProperties |
entryProps
The ZPad-specific properties of this Entry (e.g. |
OpaqueCLabel[] |
occurringOCLabels
|
| Fields inherited from interface info.aduna.gee.publication.net.FileNames |
|---|
ASA_FILE_NAME, BAK_FILE_NAME, CAT_FILE_NAME, CFG_FILE_NAME, CHS_FILE_NAME, DAT_FILE_NAME, HLP_FILE_NAME, LOCAL_FILE_PREFIX, SBS_FILE_NAME, SSS_FILE_NAME, WIF_FILE_NAME |
| Constructor Summary | |
|---|---|
Entry(WProperties eProps,
WProperties eAttribs,
WProperties eParams)
Construct a new Entry of the specified type. |
|
| Method Summary | |
|---|---|
protected void |
_addToVelocityContext(Object key,
Object value)
|
protected String |
_appletToHtmlTag()
Get the HTML representation of an applet Entry. |
protected Dimension |
_dimensionOf(String text,
int maxWidth)
Calculate the space a text will take when the maximum width is given. |
protected String |
_embedToHtmlTag()
|
protected static WProperties |
_getStubsFromString(String s,
String sStub,
String eStub)
|
protected Hashtable |
_getVelocityContext(boolean create)
|
protected static Entry |
_gsubTmpld(Navigator navigator,
Entry tmpld,
Entry tmpl)
Create a new Entry that is the result of expanding a Tmpld *once*. |
protected String |
_htmlConvenience(Navigator navigator,
String txt)
Replace returns by if the text does not contain fancy html itself and the tmpl is an html object. |
protected String |
_imageToHtmlTag(Template template,
Navigator navigator,
int entryId)
Get the HTML representation of an image Entry. |
protected String |
_importToHtmlTag()
|
String |
_objectToHtmlTag()
Get the HTML representation of an object Entry. |
protected String |
_tmpldToHtmlTag(Template template,
Navigator navigator,
int entryId)
Get the HTML tag of a templated entry. |
protected static String |
_toHtmlText(String text)
Replace special ASCII character with their correct HTML counterparts. |
protected static void |
_wrapTmpld(Navigator navigator,
Entry tmpld)
Wrap all keys expressed by the TMPLD itself. |
void |
calculateOpaqueLabels(Navigator navigator)
|
void |
cleanUp(int reason)
Remove all unnecessary attributes. |
Object |
clone()
Create a shallow clone of this Entry. |
int |
compareTime(Entry other,
Navigator navigator)
|
boolean |
contains(String pattern,
boolean useCase,
Navigator navigator)
Does this entry contain (case sensitive) the pattern supplied ? NOTE: do *not* use toString + index, because toString will remove all *irrelevant* keys (such as "10_info=Entry is handmatig aangemaakt"). |
static Entry |
create(int type)
Create a new Entry of the specified type. |
static Entry |
create(String source,
String options,
String attribs,
String params)
Create an Entry (the Zpad JavaScript API). |
static Entry |
create(String source,
WProperties optionProps,
WProperties attribProps,
WProperties paramProps)
Create an Entry (the Zpad Java API). |
static Entry |
create(WProperties allProps)
Create a new Entry from a WProperties object. |
static Entry |
createTmpld(Navigator navigator,
String tmplDescriptorOrId,
boolean isDescriptor)
Create a Tmpld Entry. |
boolean |
equals(Object other)
Is this Entry equal to another Entry. |
String |
getCLabelString()
Get the storage representation of the labels. |
String |
getInlineDescriptionHTML()
Get the HTML code (if any) that represents the inline description. |
static String |
getKey(String fullKey)
Get the key-part of a subKey'ed key |
WDate |
getMovingDate()
Get the section of a "moving Entry" (aka "repeat today Entry") |
String |
getProvideString(Navigator navigator)
Get the provide String of an Entry. |
static String |
getSubKey(String fullKey)
Get the subkey-part of a subKey'ed key |
String |
getTemplateID()
This function is to hide backwards compatibility. |
WTime |
getTime(Navigator navigator,
boolean startTime)
|
Entry |
getTmpl(Navigator navigator,
boolean allowDefault)
|
Vector |
getTmpls(Navigator navigator,
boolean allowDefault)
Get the sequence of TMPL's of a TMPLD. |
WProperties |
getTmplStubs(Navigator navigator)
Find the list of stubs of a tmpl. |
static WProperties |
getTmplStubs(Navigator navigator,
Vector tmpls)
Get the effective stubs-list of a Vector of Templates. |
Entry |
getTopTmpl(Navigator navigator)
Get the top Template in the template hierarchy of this TMPLD. |
int |
getType()
Get the type of this Entry. |
Entry |
gsub(Navigator navigator,
Entry tmpld)
Gsub using the current (Template!) Entry the key-value pairs of the (Templated) argument and return the resulting new one. |
Entry |
gsubTmpld(Navigator navigator,
boolean doClone)
Return the Entry that results from expanding a TMPLD completely. |
static String |
infoKey(String key)
Get the Info Key that corresponds to the original key. |
boolean |
isContributed()
Is the Entry contributed by a subscription? |
boolean |
isExpiredAt(WDate date)
Is this Entry at its expiry date at the specified date? |
boolean |
isImported()
Is the Entry contributed by an IMPORT? |
boolean |
isInspired()
Is the entry already inspired ? |
boolean |
isTemplate()
Is the Entry an entry template ? |
static String |
redirect(String attrib,
String value)
Use (server side) redirection knowledge. |
boolean |
requiresNewPage()
Does the Entry require a new page ? |
void |
scaled(int boundaryWidth,
int boundaryHeight,
Navigator navigator)
Scale this Entry to fit within new boundaries while maintaining its aspect ratio, i.e. |
void |
setCLabelString(String labelString)
Set the storage representation of the labels. |
static String |
subKey(String key,
String sub)
Get the full key that combines the original key and a subkey part. |
String |
toHtmlTag(Template template,
Navigator navigator,
int entryId)
Get the HTML representation of this Entry. |
WProperties |
toProperties()
Create a properties object representing this object. |
String |
toString()
Get a very rough String representation of this Entry. |
int |
totalWidth()
Calculate the total width of the entry + (optionally) the description below it. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public WProperties entryProps
entryAttribs,
entryParamspublic WProperties entryAttribs
entryProps,
entryParamspublic WProperties entryParams
#entryPropss,
entryAttribspublic OpaqueCLabel[] occurringOCLabels
protected static WProperties _sharedEmptyProperties
protected static final String _HAD_OCCURRING_CLABELS_VALUE
| Constructor Detail |
|---|
public Entry(WProperties eProps,
WProperties eAttribs,
WProperties eParams)
eProps - The properties of the new Entry.
A TYPE_KEY property should exist in eProps.eAttribs - The HTML attributes of the new Entry.eParams - The object parameters of the new Entry.EntryConstants.TYPE_KEY,
entryProps,
entryAttribs,
entryParams| Method Detail |
|---|
public static Entry create(int type)
type - The type of entry to create.EntryConstants.TYPE_KEY,
create(int)public static Entry create(WProperties allProps)
allProps - properties object containing properties objects containing
the entry parameters.
#toWProperties
public static Entry create(String source,
String options,
String attribs,
String params)
public static Entry create(String source,
WProperties optionProps,
WProperties attribProps,
WProperties paramProps)
public WProperties toProperties()
create(info.aduna.gee.publication.util.WProperties)public boolean equals(Object other)
equals in class Objectother - the Entry to compare this Entry to.
public int compareTime(Entry other,
Navigator navigator)
other - the Entry to compare this Entry to.navigator - the navigatorpublic boolean isContributed()
public boolean isImported()
public boolean isTemplate()
public String getTemplateID()
public boolean requiresNewPage()
public boolean isExpiredAt(WDate date)
date - the "virtual" date at which the expiration is checked
public boolean isInspired()
public void scaled(int boundaryWidth,
int boundaryHeight,
Navigator navigator)
boundaryWidth - the width to scale this Entry to.boundaryHeight - the height to scale this Entry to.
public String toHtmlTag(Template template,
Navigator navigator,
int entryId)
#_textToHtmlTag,
_imageToHtmlTag(info.aduna.gee.publication.cover.Template, info.aduna.gee.publication.ui.navigator.Navigator, int),
_appletToHtmlTag(),
_objectToHtmlTag()
protected String _imageToHtmlTag(Template template,
Navigator navigator,
int entryId)
protected String _appletToHtmlTag()
public String _objectToHtmlTag()
protected static String _toHtmlText(String text)
text - the text to change.
public Object clone()
clone in class Objectpublic String toString()
toString in class Objectpublic int getType()
EntryConstants.TYPE_KEY
public boolean contains(String pattern,
boolean useCase,
Navigator navigator)
pattern - the pattern we're looking for.useCase - if true use case.public String getProvideString(Navigator navigator)
navigator - either the Navigator or nullpublic void cleanUp(int reason)
reason - one of BEFORE_STORAGE, BEFORE_TRANSFER, AFTER_TRANSFER
protected Dimension _dimensionOf(String text,
int maxWidth)
public int totalWidth()
public String getInlineDescriptionHTML()
public static String infoKey(String key)
public static String subKey(String key,
String sub)
key - the original key, e.g. LINK_KEYsub - the subkey indicator (e.g. the String a clabel number) or nullpublic static String getKey(String fullKey)
public static String getSubKey(String fullKey)
public static String redirect(String attrib,
String value)
public WDate getMovingDate()
public static Entry createTmpld(Navigator navigator,
String tmplDescriptorOrId,
boolean isDescriptor)
public WProperties getTmplStubs(Navigator navigator)
public static WProperties getTmplStubs(Navigator navigator,
Vector tmpls)
protected String _tmpldToHtmlTag(Template template,
Navigator navigator,
int entryId)
public Entry gsubTmpld(Navigator navigator,
boolean doClone)
protected static void _wrapTmpld(Navigator navigator,
Entry tmpld)
protected static Entry _gsubTmpld(Navigator navigator,
Entry tmpld,
Entry tmpl)
public Entry gsub(Navigator navigator,
Entry tmpld)
protected void _addToVelocityContext(Object key,
Object value)
protected Hashtable _getVelocityContext(boolean create)
protected String _importToHtmlTag()
protected String _embedToHtmlTag()
public Entry getTmpl(Navigator navigator,
boolean allowDefault)
public Vector getTmpls(Navigator navigator,
boolean allowDefault)
public Entry getTopTmpl(Navigator navigator)
public void calculateOpaqueLabels(Navigator navigator)
navigator - if null, only a best effort will be done and nothing is set when it doesn't succeed.public String getCLabelString()
public void setCLabelString(String labelString)
protected static WProperties _getStubsFromString(String s,
String sStub,
String eStub)
protected String _htmlConvenience(Navigator navigator,
String txt)
public WTime getTime(Navigator navigator,
boolean startTime)
navigator - the navigatorstartTime - if true the start time else the end time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||