Class OperationLocationOptions

    • Method Detail

      • toXML

        public org.jdom.Element toXML()
        Description copied from interface: XMLSerializable
        Convert object to a JDOM element. The representation should be complete so that XMLSerializable.fromXML(org.jdom.Element) can completely restore the object's representation.

        It is recommended that the returned element use XMLSerializable.ROOT_ELEMENT_NAME as its name, in which case it must not define an attribute called "type". In this case, fromXML, will be called with an element whose name may differ from the element return from this function. This recommendation allows a more compact representation of the XML can be stored.

        This method generally should not be called directly. Instead, you should usually call XMLSerializer.classToXML(String, XMLSerializable) which calls this method internally.

        PluginDocument implementations of this method may choose to throw an XMLSerializationException, enclosed in a RuntimeException.

        Specified by:
        toXML in interface XMLSerializable
        Overrides:
        toXML in class Options
        Returns:
        object encoded as a JDOM element
      • addLocationChangedListener

        public void addLocationChangedListener​(OperationLocationOptions.LocationChangedListener listener)
        Registers a listener that will be notified when the location changes. In addition this method immediately notifies the listener of the current location.
        Parameters:
        listener - that will be notified when the location changes
      • getSelectedLocation

        public GeneiousService getSelectedLocation()
        Returns:
        The GeneiousService that represents the currently selected location (for example the GeneiousServer service) or null if local is selected.