Package org.eclnt.workplace
Class Workpage
java.lang.Object
org.eclnt.workplace.Workpage
- All Implemented Interfaces:
Serializable,IWorkpage
- Direct Known Subclasses:
WorkpageByPageBean
Default implementation of IWorkplage interface. Must be used
as base for own implementations.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidassignIdToModelessPopup(ModelessPopup popup, String id) booleanFor event listeners are supportingIMultiWorkplaceWorkpageProcessingEventListener: check if event is relevant.booleanclose()Asks all life cycle listeners - if one does not want to close then the whole close is interrupted.booleancloseAndContinue(Runnable continueOperation) Same processing as withclose()- but now passing the continueOperation in addition.voidDefault behaviour: the dispatcher gets destroyed.voidcloseSemiModalPopup(IPageBean callingPageBean, IPageBean popupPageBean) Close popup that was opened via#openSemiModalPopup(IPageBean, String, int, int, org.eclnt.jsfserver.defaultscreens.ModelessPopup.IModelessPopupListener).Creates a modal popup that runs in the context of the workpage.Creates a modeless popup that runs in the context of the workpage.Comment - the comment is e.g. shown in tool tips.Each workpage is associated with a dispatcher that manages the managed beans for this workpage.booleanThe workplace perspective management allows to store currently opened workplace arrangements as perspectives.The icon of the workpage that is shown in the task overview.getId()Each workpage specifies an id.This is the start page of the workpage.getModelesspopup(String assignedId) A workpage may be opened as modeless popup.Background painting that is applied to the title selector.The text that is shown inside the selector for the workpage.intThe sequence of workpages within a container is always sorted after being updated.getTitle()The title of the workpage.Each workpage provides a technical id that is unique across all work pages.getUuid()Tehchnical unique is that is automatically assigned to each workpage instance.Returns the workpage container managing the workplace management.booleanManaged at runtime by workplace management: if a page opens up semi modal popup dialogs then the page need to be blocked.booleanIndicates if the workpage can be closed via a close icon.booleanIndicates if the workplace embeds the workpage into a frame with titlebar etc.booleanIndicates if the dialog popup into which the workpage is opened has some decoration or not.booleanIndicates if the workpage can be isolated from the workpage container into a modal popup.booleanisShown()Checks if workpage is visible to the user.booleanIndicates if the workpage can be dragged and dropped into a workplace running on a different browser.openSemiModalPopup(IPageBean callingPageBean, IPageBean popupPageBean, String title, int width, int height, ModelessPopup.IModelessPopupListener popupListener) Opens a modal popup which is only modal in the optical scope of the workpage.voidProcess workpage processing event coming from other workpage.booleanThis method is called before the workpage gets hidden e.g. due to user selection in the workpage selector.voidThis method is called whenever the workpage container is pushing this page to be displayed.voidThis method is called whenever a workpage that is currently shown within in the content area is replaced by another one.voidThis method is called if the workpage is currently shown in its workpage container - and if the user re-selects the workpage.voidThe page is (re)shown in the content area of the workplace.voidThe page is (re)shown in a modeless popup.voidThe page is requested to be shown, but is already available - so the workplace management switches to this existing page.voidvoidvoidsetCloseSupported(boolean closeSupported) Controls if the workpage provides a close icond within its title area.voidsetComment(String comment) voidsetDecorated(boolean value) voidsetExcludeFromSavePerspective(boolean excludeFromSavePerspective) voidsetIconURL(String value) Update the icon during runtime.voidThe id can be changed during runtime.voidsetJspPage(String value) voidFunction that allows WorkpageContainer to set ModelessPopup instance.voidvoidsetPopupDecorated(boolean popupDecorated) Controls if the dialog popup that is opened is decorated or not.voidsetPopupSupported(boolean value) Controls if the workpage is isolate-able as modeless popup by the user.voidsetSelectorBgpaint(String selectorBgpaint) voidsetSelectorTitle(String value) Update selector title during runtime.voidsetStartSubWorkpageContainerId(String startSubWorkpageContainerId) voidUpdate title during runtime.voidsetWorkpageStartInfo(IWorkpageStartInfo workpageStartInfo) voidsetWpDragSupported(boolean wpDragSupported) voidThrows an event and triggers the delegation of the event to all other workpage instances.toString()
-
Constructor Details
-
Workpage
public Workpage(IWorkpageDispatcher dispatcher, String jspPage, String id, String title, String iconURL, boolean isDecorated) - Parameters:
dispatcher- Dispatcher in that the workpage creates its own dispatcher. If the dispatcher passed is "#{d}" then the workpage will create a sub-dispatcher "#{d.d_1}" that will be used for the beans used within this workpage context.
-
-
Method Details
-
getDragsend
-
getMwpDragsend
-
setWorkpageStartInfo
- Specified by:
setWorkpageStartInfoin interfaceIWorkpage
-
getWorkpageStartInfo
- Specified by:
getWorkpageStartInfoin interfaceIWorkpage
-
getDispatcher
Description copied from interface:IWorkpageEach workpage is associated with a dispatcher that manages the managed beans for this workpage. This is the dispatcher of the workpage.
Please note: there is a dispatcher hierarchy - a top dispatcher ("#{d}") and there are sub-dispatchers, one for each workpage instance ("#{d.d_x}"). The dispatcher that is returned by this method is the workpage instance ("#{d.d_x}").- Specified by:
getDispatcherin interfaceIWorkpage- Returns:
- The dispatcher that is associated with this workpage. Pay attentions: this is NOT the dispatcher passed via the constructor but this is a sub-dispatcher of this dispatcher.
-
getUuid
Tehchnical unique is that is automatically assigned to each workpage instance. -
setId
Description copied from interface:IWorkpageThe id can be changed during runtime. -
getId
Description copied from interface:IWorkpageEach workpage specifies an id. The id is used to check if a workpage is already included in a workpage container or not. The id needs to uniquely identify the workpage with its content. -
setTitle
Description copied from interface:IWorkpageUpdate title during runtime. -
getTitle
Description copied from interface:IWorkpageThe title of the workpage. -
getSelectorBgpaint
Description copied from interface:IWorkpageBackground painting that is applied to the title selector.- Specified by:
getSelectorBgpaintin interfaceIWorkpage
-
setSelectorBgpaint
-
setSelectorTitle
Description copied from interface:IWorkpageUpdate selector title during runtime.- Specified by:
setSelectorTitlein interfaceIWorkpage
-
getSelectorTitle
Description copied from interface:IWorkpageThe text that is shown inside the selector for the workpage. If returned as null then the normal title viaIWorkpage.getTitle()is shown.- Specified by:
getSelectorTitlein interfaceIWorkpage
-
getSelectorTitleOriginal
-
setJspPage
-
getJspPage
Description copied from interface:IWorkpageThis is the start page of the workpage.- Specified by:
getJspPagein interfaceIWorkpage
-
setIconURL
Description copied from interface:IWorkpageUpdate the icon during runtime.- Specified by:
setIconURLin interfaceIWorkpage
-
getIconURL
Description copied from interface:IWorkpageThe icon of the workpage that is shown in the task overview.- Specified by:
getIconURLin interfaceIWorkpage
-
setDecorated
public void setDecorated(boolean value) -
isDecorated
public boolean isDecorated()Description copied from interface:IWorkpageIndicates if the workplace embeds the workpage into a frame with titlebar etc.- Specified by:
isDecoratedin interfaceIWorkpage
-
isWpDragSupported
public boolean isWpDragSupported()Description copied from interface:IWorkpageIndicates if the workpage can be dragged and dropped into a workplace running on a different browser. This functions is part of the multi workplace management.- Specified by:
isWpDragSupportedin interfaceIWorkpage
-
setWpDragSupported
public void setWpDragSupported(boolean wpDragSupported) -
getStartSubWorkpageContainerId
- Specified by:
getStartSubWorkpageContainerIdin interfaceIWorkpage
-
setStartSubWorkpageContainerId
-
close
public boolean close()Asks all life cycle listeners - if one does not want to close then the whole close is interrupted. Calls closeForced() when all have agreed to close. -
closeAndContinue
Same processing as withclose()- but now passing the continueOperation in addition.- Specified by:
closeAndContinuein interfaceIWorkpage
-
closeForced
public void closeForced()Default behaviour: the dispatcher gets destroyed.- Specified by:
closeForcedin interfaceIWorkpage
-
getWorkpageContainer
Returns the workpage container managing the workplace management. This is always the top workpage container and not a child workpage container.- Specified by:
getWorkpageContainerin interfaceIWorkpage
-
setPopupSupported
public void setPopupSupported(boolean value) Controls if the workpage is isolate-able as modeless popup by the user. -
isPopupSupported
public boolean isPopupSupported()Description copied from interface:IWorkpageIndicates if the workpage can be isolated from the workpage container into a modal popup.- Specified by:
isPopupSupportedin interfaceIWorkpage
-
setPopupDecorated
public void setPopupDecorated(boolean popupDecorated) Controls if the dialog popup that is opened is decorated or not.- Specified by:
setPopupDecoratedin interfaceIWorkpage
-
isPopupDecorated
public boolean isPopupDecorated()Description copied from interface:IWorkpageIndicates if the dialog popup into which the workpage is opened has some decoration or not. Only is used ifIWorkpage.isPopupSupported()is set to true.- Specified by:
isPopupDecoratedin interfaceIWorkpage
-
setCloseSupported
public void setCloseSupported(boolean closeSupported) Controls if the workpage provides a close icond within its title area. -
isCloseSupported
public boolean isCloseSupported()Description copied from interface:IWorkpageIndicates if the workpage can be closed via a close icon.- Specified by:
isCloseSupportedin interfaceIWorkpage
-
reactOnDisplay
public void reactOnDisplay()Description copied from interface:IWorkpageThis method is called whenever the workpage container is pushing this page to be displayed.- Specified by:
reactOnDisplayin interfaceIWorkpage
-
setParam
-
getParam
-
getParamMap
- Specified by:
getParamMapin interfaceIWorkpage
-
addLifecycleListener
- Specified by:
addLifecycleListenerin interfaceIWorkpage
-
removeLifecycleListener
- Specified by:
removeLifecycleListenerin interfaceIWorkpage
-
getLifecycleListeners
- Specified by:
getLifecycleListenersin interfaceIWorkpage
-
toString
-
reactOnReselectedInContentArea
public void reactOnReselectedInContentArea()Description copied from interface:IWorkpageThis method is called if the workpage is currently shown in its workpage container - and if the user re-selects the workpage.- Specified by:
reactOnReselectedInContentAreain interfaceIWorkpage
-
reactOnSwitchToPage
public void reactOnSwitchToPage()Description copied from interface:IWorkpageThe page is requested to be shown, but is already available - so the workplace management switches to this existing page.- Specified by:
reactOnSwitchToPagein interfaceIWorkpage
-
reactOnShownInContentArea
public void reactOnShownInContentArea()Description copied from interface:IWorkpageThe page is (re)shown in the content area of the workplace.- Specified by:
reactOnShownInContentAreain interfaceIWorkpage
-
reactOnHide
public void reactOnHide()Description copied from interface:IWorkpageThis method is called whenever a workpage that is currently shown within in the content area is replaced by another one.- Specified by:
reactOnHidein interfaceIWorkpage
-
reactOnBeforeHide
public boolean reactOnBeforeHide()Description copied from interface:IWorkpageThis method is called before the workpage gets hidden e.g. due to user selection in the workpage selector.- Specified by:
reactOnBeforeHidein interfaceIWorkpage
-
reactOnShownInPopup
public void reactOnShownInPopup()Description copied from interface:IWorkpageThe page is (re)shown in a modeless popup.- Specified by:
reactOnShownInPopupin interfaceIWorkpage
-
throwWorkpageProcessingEvent
Description copied from interface:IWorkpageThrows an event and triggers the delegation of the event to all other workpage instances.- Specified by:
throwWorkpageProcessingEventin interfaceIWorkpage
-
processWorkpageProcessingEvent
Description copied from interface:IWorkpageProcess workpage processing event coming from other workpage.- Specified by:
processWorkpageProcessingEventin interfaceIWorkpage
-
checkIfWorkpageProcessingEventIsRelevant
Description copied from interface:IWorkpageFor event listeners are supportingIMultiWorkplaceWorkpageProcessingEventListener: check if event is relevant.- Specified by:
checkIfWorkpageProcessingEventIsRelevantin interfaceIWorkpage
-
addWorkpageProcessingEventListener
- Specified by:
addWorkpageProcessingEventListenerin interfaceIWorkpage
-
removeWorkpageProcessingEventListener
- Specified by:
removeWorkpageProcessingEventListenerin interfaceIWorkpage
-
createModalPopupInWorkpageContext
Description copied from interface:IWorkpageCreates a modal popup that runs in the context of the workpage.
This method is deprecated because all popup dialog management should be done through page beans. It is still available for compatibility reasons.- Specified by:
createModalPopupInWorkpageContextin interfaceIWorkpage
-
createModelessPopupInWorkpageContext
Description copied from interface:IWorkpageCreates a modeless popup that runs in the context of the workpage.
This method is deprecated because all popup dialog management should be done through page beans. It is still available for compatibility reasons.- Specified by:
createModelessPopupInWorkpageContextin interfaceIWorkpage
-
assignIdToModelessPopup
- Specified by:
assignIdToModelessPopupin interfaceIWorkpage
-
getModelesspopup
- Specified by:
getModelesspopupin interfaceIWorkpage
-
getModelessPopupOfWorkpage
Description copied from interface:IWorkpageA workpage may be opened as modeless popup. This function returns the popup instance the workpage is running in. In case the workplage does not run in a modeless popup, null will be returned.- Specified by:
getModelessPopupOfWorkpagein interfaceIWorkpage- Returns:
-
setModelessPopupOfWorkpage
Description copied from interface:IWorkpageFunction that allows WorkpageContainer to set ModelessPopup instance.- Specified by:
setModelessPopupOfWorkpagein interfaceIWorkpage
-
getUniqueTechnicalId
Description copied from interface:IWorkpageEach workpage provides a technical id that is unique across all work pages. The technical id is assigned internally and does not provide any application semantics!- Specified by:
getUniqueTechnicalIdin interfaceIWorkpage
-
setExcludeFromSavePerspective
public void setExcludeFromSavePerspective(boolean excludeFromSavePerspective) -
getExcludeFromSavePerspective
public boolean getExcludeFromSavePerspective()Description copied from interface:IWorkpageThe workplace perspective management allows to store currently opened workplace arrangements as perspectives. The perspectives include the arrangement of workplace tiles - and the workpages that are currently started within the tile. - You can exclude the current workpage from being stored as part of a perspective by using this function.- Specified by:
getExcludeFromSavePerspectivein interfaceIWorkpage
-
getComment
Description copied from interface:IWorkpageComment - the comment is e.g. shown in tool tips.- Specified by:
getCommentin interfaceIWorkpage
-
setComment
-
isBlocked
public boolean isBlocked()Description copied from interface:IWorkpageManaged at runtime by workplace management: if a page opens up semi modal popup dialogs then the page need to be blocked. -
openSemiModalPopup
public ModelessPopup openSemiModalPopup(IPageBean callingPageBean, IPageBean popupPageBean, String title, int width, int height, ModelessPopup.IModelessPopupListener popupListener) Opens a modal popup which is only modal in the optical scope of the workpage. Other workpage can still be used.- Specified by:
openSemiModalPopupin interfaceIWorkpage- Returns:
-
closeSemiModalPopup
Description copied from interface:IWorkpageClose popup that was opened via#openSemiModalPopup(IPageBean, String, int, int, org.eclnt.jsfserver.defaultscreens.ModelessPopup.IModelessPopupListener).- Specified by:
closeSemiModalPopupin interfaceIWorkpage
-
isShown
public boolean isShown()Description copied from interface:IWorkpageChecks if workpage is visible to the user. -
getClientName
- Specified by:
getClientNamein interfaceIWorkpage
-
getSortIndex
public int getSortIndex()Description copied from interface:IWorkpageThe sequence of workpages within a container is always sorted after being updated. By default the sorting is not explicitly controlled - the sequence of pages reflects the chronology of adding/removing workpages. But you can explicitly sort pages by assigning an index which is not negative.- Specified by:
getSortIndexin interfaceIWorkpage- Returns:
- negative value: not explicit sorting; positive value: sorting by this index.
-