Interface InputURLChooser
- All Superinterfaces:
ContextDescriptionProvider
@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface InputURLChooser
extends ContextDescriptionProvider
Interface through which the CMS can set a custom URL to any Input URL Panel from Oxygen.
- Since:
- 12.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Open resource chooserstatic final int
Resource directory chooserstatic final int
Save resource chooser -
Method Summary
Modifier and TypeMethodDescriptionint
Get the mode for which the Input URL chooser will be used (for opening or for saving resources).Get the list of resource filters used for the local file chooser.void
Set in the Input URL panel combo box the new URL which was chosen from the CMS handler.Methods inherited from interface ro.sync.exml.workspace.api.standalone.ContextDescriptionProvider
getAttributeEditingContextDescription, getContextDescription
-
Field Details
-
SAVE_RESOURCE
static final int SAVE_RESOURCESave resource chooser- See Also:
-
OPEN_RESOURCE
static final int OPEN_RESOURCEOpen resource chooser- See Also:
-
OPEN_RESOURCE_DIRECTORY
static final int OPEN_RESOURCE_DIRECTORYResource directory chooser- See Also:
-
-
Method Details
-
urlChosen
Set in the Input URL panel combo box the new URL which was chosen from the CMS handler. When the customizer is used in places where a combo box for the URL is not present (like in the DITA Maps Manager view) this method performs the operation on the given URL.- Parameters:
selectedURL
- The URL which was probably selected by the user in a custom CMS chooser.
-
getBrowseMode
int getBrowseMode()Get the mode for which the Input URL chooser will be used (for opening or for saving resources).- Returns:
- One of the constants in this class:
OPEN_RESOURCE
,SAVE_RESOURCE
orOPEN_RESOURCE_DIRECTORY
- Since:
- 12.2
-
getResourceFilters
ResourceFilter[] getResourceFilters()Get the list of resource filters used for the local file chooser. This method is useful to decide the type of files the chooser dialog wants to browse. For example if the dialog wants to select an image to add to the Author page then the resource filters will contain image extensions.- Returns:
- The list of resource filters used for the local file chooser. Can be
null
. - Since:
- 13.1
-