Package ro.sync.ecss.extensions.commons
Class MediaFileChooser
- java.lang.Object
-
- ro.sync.ecss.extensions.commons.ObjectChooser
-
- ro.sync.ecss.extensions.commons.MediaFileChooser
-
@API(type=INTERNAL, src=PUBLIC) public class MediaFileChooser extends ObjectChooser
Choose an media file.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MEDIA_FROM_TESTS
Used to test the class from JUnit test cases.-
Fields inherited from class ro.sync.ecss.extensions.commons.ObjectChooser
ALLOWED_IMAGE_EXTENSIONS
-
-
Constructor Summary
Constructors Constructor Description MediaFileChooser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
chooseMediaFile(AuthorAccess authorAccess)
Ask user to choose an image file.-
Methods inherited from class ro.sync.ecss.extensions.commons.ObjectChooser
makeUrlRelative
-
-
-
-
Method Detail
-
chooseMediaFile
public static java.lang.String chooseMediaFile(AuthorAccess authorAccess)
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
null
if the user canceled the operation.
-
-