Package ro.sync.ecss.extensions.commons
Class MediaFileChooser
java.lang.Object
ro.sync.ecss.extensions.commons.ObjectChooser
ro.sync.ecss.extensions.commons.MediaFileChooser
Choose an media file.
-
Field Summary
FieldsFields inherited from class ro.sync.ecss.extensions.commons.ObjectChooser
ALLOWED_IMAGE_EXTENSIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringchooseMediaFile(AuthorAccess authorAccess) Ask user to choose an image file.Methods inherited from class ro.sync.ecss.extensions.commons.ObjectChooser
makeUrlRelative
-
Field Details
-
MEDIA_FROM_TESTS
Used to test the class from JUnit test cases.
-
-
Constructor Details
-
MediaFileChooser
public MediaFileChooser()
-
-
Method Details
-
chooseMediaFile
Ask user to choose an image file.- Parameters:
authorAccess- Access to some author utility methods.- Returns:
- The path to the media file relative to the opened XML and escaped
so that it can be used as an attribute value, or
nullif the user canceled the operation.
-