Package ro.sync.ecss.extensions.commons
Class ImageFileChooser
java.lang.Object
ro.sync.ecss.extensions.commons.ObjectChooser
ro.sync.ecss.extensions.commons.ImageFileChooser
Choose an image file.
-
Field Summary
FieldsFields inherited from class ro.sync.ecss.extensions.commons.ObjectChooser
ALLOWED_IMAGE_EXTENSIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringchooseImageFile(AuthorAccess authorAccess) Ask user to choose an image file.Methods inherited from class ro.sync.ecss.extensions.commons.ObjectChooser
makeUrlRelative
-
Field Details
-
IMG_FROM_TESTS
Used to test the class from JUnit test cases.
-
-
Constructor Details
-
ImageFileChooser
public ImageFileChooser()
-
-
Method Details
-
chooseImageFile
Ask user to choose an image file.- Parameters:
authorAccess- Access to some author utility methods.- Returns:
- The path to the image 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.
-