@API(type=INTERNAL,
src=PUBLIC)
public class ImageFileChooser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
ALLOWED_IMAGE_EXTENSIONS
All the allowed extensions for an image.
|
static java.lang.String |
IMG_FROM_TESTS
Used to test the class from JUnit test cases.
|
Constructor and Description |
---|
ImageFileChooser() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
chooseImageFile(AuthorAccess authorAccess)
Ask user to choose an image file.
|
static java.lang.String |
makeUrlRelative(AuthorAccess authorAccess,
java.lang.String url)
Makes the given URL relative to the XML whose access object we are given.
|
public static final java.lang.String[] ALLOWED_IMAGE_EXTENSIONS
public static java.lang.String IMG_FROM_TESTS
public static java.lang.String chooseImageFile(AuthorAccess authorAccess)
authorAccess
- Access to some author utility methods.null
if the
user canceled the operation.public static java.lang.String makeUrlRelative(AuthorAccess authorAccess, java.lang.String url)
authorAccess
- The author access of the XML document.url
- The url.© Copyright SyncRO Soft SRL 2002 - 2015. All rights reserved.