Package org.eclnt.workplace
Class WorkplaceFavorites
java.lang.Object
org.eclnt.jsfserver.managedbean.DefaultDispatchedBean
org.eclnt.workplace.WorkplaceFavorites
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
WorkplaceHistory
This class needs to be sub-classed by your implementation and needs
to be registered within the workpage dispatcher of your application.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWorkplaceFavorites
(IDispatcher dispatcher) WorkplaceFavorites
(IDispatcher dispatcher, String persistId) When passing a persistId, then favorites automatically will be read and stored from persistence (viaStreamStore
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFavorite
(WorkpageStartInfo favoriteInfo) Adds a favorite to the favorite bar.void
addFavoritesListener
(IFavoritesListener listener) Returns back the current favorite infos that are kept.Favorites as list - do not modify this list!getFis()
Internal use.boolean
void
loadFromPersistence
(String persistId) Read workplace favorites from persistence - and from now on also saves changes automatically.protected void
loadFromPersistId
(String persistId) protected void
void
onPaneAction
(javax.faces.event.ActionEvent event) Internal use.void
removeFavoritesListener
(IFavoritesListener listener) protected void
void
setDefaultImage
(String value) void
setIconDirectoryPath
(String path) Sets the directory path for the icons that are selectable by the user.void
setImageHeightStr
(String value) internal usevoid
setImageWidthStr
(String value) internal usevoid
setObjectBinding
(String value) void
setPane
(org.eclnt.jsfserver.elements.impl.PANEComponent pane) Internal use.void
setRowAlignmentYStr
(String value) internal usevoid
setWithIconTexts
(boolean value) void
setWithIconTextStr
(String value) internal useprotected void
The button tag is passed so that you can update attributes that influence the look and feel of a button tag instance, representing one favorite-button.protected void
Transfers the favorite info into a compoent tree, that is plugged below the pane element coming from the layout.Methods inherited from class org.eclnt.jsfserver.managedbean.DefaultDispatchedBean
ccDestroy, getOwningDispatcher, setDispatcher
-
Field Details
-
m_defaultImage
-
-
Constructor Details
-
WorkplaceFavorites
-
WorkplaceFavorites
When passing a persistId, then favorites automatically will be read and stored from persistence (viaStreamStore
.
-
-
Method Details
-
setDefaultImage
-
getDefaultImage
-
setWithIconTexts
public void setWithIconTexts(boolean value) -
getWithIconTexts
public boolean getWithIconTexts() -
addFavoritesListener
-
removeFavoritesListener
-
setImageWidthStr
internal use -
setImageHeightStr
internal use -
setWithIconTextStr
internal use -
setRowAlignmentYStr
internal use -
setObjectBinding
-
getObjectBinding
-
setPane
public void setPane(org.eclnt.jsfserver.elements.impl.PANEComponent pane) Internal use. -
setIconDirectoryPath
Sets the directory path for the icons that are selectable by the user. Default is "/eclntjsfserver/images/". The directory path is a path inside your web application. -
addFavorite
Adds a favorite to the favorite bar. -
getFis
Internal use. -
getFavorites
Favorites as list - do not modify this list! -
onPaneAction
public void onPaneAction(javax.faces.event.ActionEvent event) Internal use. -
getFaovriteInfos
Returns back the current favorite infos that are kept. -
loadFromPersistence
Read workplace favorites from persistence - and from now on also saves changes automatically. You may also use this method for reloading the workplace favorites persistent information. -
updateButtonTagBeforeComponentCreation
The button tag is passed so that you can update attributes that influence the look and feel of a button tag instance, representing one favorite-button. -
updatePane
protected void updatePane()Transfers the favorite info into a compoent tree, that is plugged below the pane element coming from the layout. -
notifyFavoritesListeners
protected void notifyFavoritesListeners() -
loadFromPersistId
-
save
-