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