Package org.opencms.ui.components
Class CmsFileTableDialogContext
- java.lang.Object
-
- org.opencms.ui.A_CmsDialogContext
-
- org.opencms.ui.components.CmsFileTableDialogContext
-
- All Implemented Interfaces:
I_CmsDialogContext
,I_CmsEditPropertyContext
- Direct Known Subclasses:
CmsExplorerDialogContext
,CmsListManager.DialogContext
public class CmsFileTableDialogContext extends A_CmsDialogContext implements I_CmsEditPropertyContext
The file table dialog context.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opencms.ui.I_CmsDialogContext
I_CmsDialogContext.ContextType
-
-
Field Summary
-
Fields inherited from class org.opencms.ui.A_CmsDialogContext
m_window
-
Fields inherited from interface org.opencms.ui.I_CmsDialogContext
ATTR_SITEMAP_CONFIG_RESOURCE
-
-
Constructor Summary
Constructors Constructor Description CmsFileTableDialogContext(java.lang.String appId, I_CmsDialogContext.ContextType contextType, CmsFileTable fileTable, java.util.List<CmsResource> resources)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
editProperty(java.lang.Object propertyId)
Start the editing process.void
finish(java.util.Collection<CmsUUID> ids)
Signals that the dialog has finished.void
finish(CmsProject project, java.lang.String siteRoot)
Signals that the dialog has finished.void
focus(CmsUUID cmsUUID)
Tell the system that the resource with the given id should be shown somehow.java.util.List<CmsUUID>
getAllStructureIdsInView()
Gets a list of structure ids of all visible resources, not just the ones selected for the dialog.boolean
isPropertyEditable(java.lang.Object propertyId)
Checks whether the given property is editable.void
setEditableProperties(java.util.Collection<CmsResourceTableProperty> editableProperties)
Sets the in line editable properties.void
updateUserInfo()
Called when the user info was changed.-
Methods inherited from class org.opencms.ui.A_CmsDialogContext
closeWindow, error, getAppId, getCms, getContextType, getResources, getWindow, navigateTo, onViewChange, reload, setWindow, start, start
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opencms.ui.I_CmsDialogContext
getParameters
-
-
-
-
Constructor Detail
-
CmsFileTableDialogContext
public CmsFileTableDialogContext(java.lang.String appId, I_CmsDialogContext.ContextType contextType, CmsFileTable fileTable, java.util.List<CmsResource> resources)
Creates a new instance.- Parameters:
appId
- the app idcontextType
- the context typefileTable
- the file table instanceresources
- the list of selected resources
-
-
Method Detail
-
editProperty
public void editProperty(java.lang.Object propertyId)
Description copied from interface:I_CmsEditPropertyContext
Start the editing process.- Specified by:
editProperty
in interfaceI_CmsEditPropertyContext
- Parameters:
propertyId
- the property to edit- See Also:
I_CmsEditPropertyContext.editProperty(java.lang.Object)
-
finish
public void finish(CmsProject project, java.lang.String siteRoot)
Description copied from interface:I_CmsDialogContext
Signals that the dialog has finished.Call when current project and or site have been changed.
- Specified by:
finish
in interfaceI_CmsDialogContext
- Overrides:
finish
in classA_CmsDialogContext
- Parameters:
project
- changed projectsiteRoot
- changed site root- See Also:
A_CmsDialogContext.finish(org.opencms.file.CmsProject, java.lang.String)
-
finish
public void finish(java.util.Collection<CmsUUID> ids)
Description copied from interface:I_CmsDialogContext
Signals that the dialog has finished.- Specified by:
finish
in interfaceI_CmsDialogContext
- Overrides:
finish
in classA_CmsDialogContext
- Parameters:
ids
- the list of structure ids of changed resources- See Also:
I_CmsDialogContext.finish(java.util.Collection)
-
focus
public void focus(CmsUUID cmsUUID)
Description copied from interface:I_CmsDialogContext
Tell the system that the resource with the given id should be shown somehow.- Specified by:
focus
in interfaceI_CmsDialogContext
- Parameters:
cmsUUID
- the structure id of a resource- See Also:
I_CmsDialogContext.focus(org.opencms.util.CmsUUID)
-
getAllStructureIdsInView
public java.util.List<CmsUUID> getAllStructureIdsInView()
Description copied from interface:I_CmsDialogContext
Gets a list of structure ids of all visible resources, not just the ones selected for the dialog.- Specified by:
getAllStructureIdsInView
in interfaceI_CmsDialogContext
- Returns:
- the structure ids of all the resources in the current view
- See Also:
I_CmsDialogContext.getAllStructureIdsInView()
-
isPropertyEditable
public boolean isPropertyEditable(java.lang.Object propertyId)
Description copied from interface:I_CmsEditPropertyContext
Checks whether the given property is editable.- Specified by:
isPropertyEditable
in interfaceI_CmsEditPropertyContext
- Parameters:
propertyId
- the property id- Returns:
true
if the given property is editable- See Also:
I_CmsEditPropertyContext.isPropertyEditable(java.lang.Object)
-
setEditableProperties
public void setEditableProperties(java.util.Collection<CmsResourceTableProperty> editableProperties)
Sets the in line editable properties.- Parameters:
editableProperties
- the in line editable properties
-
updateUserInfo
public void updateUserInfo()
Description copied from interface:I_CmsDialogContext
Called when the user info was changed.- Specified by:
updateUserInfo
in interfaceI_CmsDialogContext
- See Also:
I_CmsDialogContext.updateUserInfo()
-
-