public interface Presentations
HasPresentations
interfacePresentation
Modifier and Type | Method and Description |
---|---|
void |
add(Presentation p)
Adds a new presentation
|
void |
addListener(PresentationsChangeListener listener)
Adds listener
|
void |
commit()
Commits all changes into the database
|
java.lang.String |
getCaption(java.lang.Object id)
Returns presentation caption by its id
|
Presentation |
getCurrent()
Returns the current active presentation or
null if a current presentation didn't set |
Presentation |
getDefault()
Returns a default presentation or
null if it didn't set |
Presentation |
getPresentation(java.lang.Object id)
Returns presentation by its id or
null if a presentation doesn't exist |
Presentation |
getPresentationByName(java.lang.String name)
Returns a presentation by its name with ignored case.
|
java.util.Collection<java.lang.Object> |
getPresentationIds()
Returns a collection of the component presentations
|
org.dom4j.Element |
getSettings(Presentation p)
Returns user settings for the selected presentation or
null
if the presentation doesn't exist or if the presentation doesn't contain any settings |
boolean |
isAutoSave(Presentation p)
Returns
true if the selected presentation has an autoSave settings else returns false |
boolean |
isGlobal(Presentation p)
Returns
true if the selected presentation is marked as global else returns false |
void |
modify(Presentation p)
Modifies the selected presentation
|
void |
remove(Presentation p)
Removes a presentation from the list of available presentations
|
void |
removeListener(PresentationsChangeListener listener)
Removes listener
|
void |
setCurrent(Presentation p)
Sets current active presentation for a component
|
void |
setDefault(Presentation p)
Sets a default presentation
|
void |
setSettings(Presentation p,
org.dom4j.Element e)
Sets user settings for the selected presentation
|
Presentation getCurrent()
null
if a current presentation didn't setvoid setCurrent(Presentation p)
org.dom4j.Element getSettings(Presentation p)
null
if the presentation doesn't exist or if the presentation doesn't contain any settingsvoid setSettings(Presentation p, org.dom4j.Element e)
Presentation getPresentation(java.lang.Object id)
null
if a presentation doesn't existjava.lang.String getCaption(java.lang.Object id)
java.util.Collection<java.lang.Object> getPresentationIds()
Presentation getDefault()
null
if it didn't setvoid setDefault(Presentation p)
void add(Presentation p)
void remove(Presentation p)
void modify(Presentation p)
boolean isAutoSave(Presentation p)
true
if the selected presentation has an autoSave
settings else returns false
boolean isGlobal(Presentation p)
true
if the selected presentation is marked as global else returns false
void commit()
@Nullable Presentation getPresentationByName(java.lang.String name)
null
if a presentation with such name doesn't existvoid addListener(PresentationsChangeListener listener)
void removeListener(PresentationsChangeListener listener)