Class ObjectChooser

  • Direct Known Subclasses:
    ImageFileChooser, MediaFileChooser

    @API(type=INTERNAL,
         src=PUBLIC)
    public abstract class ObjectChooser
    extends java.lang.Object
    Base class for choosers dialogs.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String[] ALLOWED_IMAGE_EXTENSIONS
      All the allowed extensions for an image.
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectChooser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ALLOWED_IMAGE_EXTENSIONS

        public static final java.lang.String[] ALLOWED_IMAGE_EXTENSIONS
        All the allowed extensions for an image.
    • Constructor Detail

      • ObjectChooser

        public ObjectChooser()
    • Method Detail

      • makeUrlRelative

        public 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.
        Parameters:
        authorAccess - The author access of the XML document.
        url - The url.
        Returns:
        The relative URL.