|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The ApiAlbum is basic class for the using the program interface in the PPSee album templates and BSH script.
The instance of the class is available by variable api.
Sample: api.getAlbum()
// the expression returns a collection of index pages.
| Field Summary |
| Fields inherited from interface cz.ponec.ppSee.api.Api |
DOCTYPE_401_STRICT, DOCTYPE_401_TRANS, DOCTYPE_X10_STRICT, DOCTYPE_X10_TRANS, NO |
| Method Summary | |
java.lang.Object |
bsh(java.lang.String function)
Returns the value from BeanShell script (see BSH Editor ). |
java.lang.Object |
bsh(java.lang.String function,
java.lang.Object parameter)
Returns the value from BeanShell script (see BSH Editor ). |
Album |
getAlbum()
Returns a collections of Album images and index pages. |
java.lang.String |
getBackgroundImage(boolean topIndex)
Returns Link to Texture Image (include "") or null in the case the background is not requred.. |
java.lang.String |
getBackgroundImageCss(boolean topIndex)
Returns Link to Texture Image for CSS definition. |
java.lang.Object |
getContext()
Returns a HTML template context. |
int |
getCountOfFiles()
Returns the Count of Files (include Images and another Files). |
int |
getCountOfImages()
Returns the Count of Images. |
java.lang.Object |
getParam(Property parameterName)
Returns a user parameter form the PPSee program (parameters are managed by user by graphical interface of the PPSee program). |
java.io.File |
getTargetDirectory()
Returns the top of the tree target directories. |
Util |
getUtil()
Returns the text utilities object. |
boolean |
isPreviewMode()
Returns true value, if the album is created in a preview (quick) mode. |
void |
log(java.lang.Object message)
Print the Message to standard output. |
void |
log(java.lang.Object message,
java.lang.Throwable exception)
Print the Message with an Exception to standard output. |
| Methods inherited from interface cz.ponec.ppSee.api.Api |
formatHedader, formatMark, formatPicture, getApplName, getApplVersion, getDirDescription, getDirTitle, getDoctype, getHtmlText, getCharset, getLang, getLocale, getPoweredBy, getPoweredByText, getSourceDirectory, toHtml |
| Method Detail |
public java.io.File getTargetDirectory()
public Util getUtil()
public java.lang.Object getParam(Property parameterName)
parameterName - Select a parameter name from HtmParamspublic int getCountOfFiles()
public int getCountOfImages()
public java.lang.Object bsh(java.lang.String function,
java.lang.Object parameter)
function - Name of BeanShell function.parameter - The One Parameter of function.
public java.lang.Object bsh(java.lang.String function)
public void log(java.lang.Object message,
java.lang.Throwable exception)
log in interface Apipublic void log(java.lang.Object message)
public Album getAlbum()
public java.lang.Object getContext()
getContext in interface Apipublic boolean isPreviewMode()
public java.lang.String getBackgroundImage(boolean topIndex)
topIndex - public java.lang.String getBackgroundImageCss(boolean topIndex)
topIndex -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||