com.jaxfront.swing.ui.editor
Interface ResourceChooser

All Known Implementing Classes:
TemplateFileChooser

public interface ResourceChooser

Author:
Stephan Portmann TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Method Summary
 java.lang.String getRootName()
          Returns the selected root name.
 java.lang.String getTitle(boolean xuiHasChanged)
          Returns the title of the XUI-Editor Frame.
 java.net.URL getXmlURL()
          Returns the URL of the xml file
 java.net.URL getXsdURL()
          Returns the URL of the xsd file
 java.net.URL getXuiURL()
          Returns the URL of the xui file
 boolean isCancelled()
          Returns true if the dialog has been cancelled
 void save(java.net.URL url, Document dom)
          Saves the xui to a given url location.
 java.net.URL saveAsChooser(java.net.URL xsdURL, java.net.URL xuiURL, AbstractEditorPanel editor)
          Should open a location chooser to save the xui.
 void saveNLS(Document uiDOM, java.net.URL url, NLS nls, java.lang.String rootName)
          Stores the nls at a given location.
 void setXmlURL(java.net.URL xmlURL)
          Sets the xml url.
 void setXsdURL(java.net.URL xsdURL)
          Sets the xsd url.
 void setXuiURL(java.net.URL xuiURL)
          Sets the xui url.
 void show()
           
 

Method Detail

getRootName

java.lang.String getRootName()
Returns the selected root name.


getXmlURL

java.net.URL getXmlURL()
Returns the URL of the xml file


getXsdURL

java.net.URL getXsdURL()
Returns the URL of the xsd file


getXuiURL

java.net.URL getXuiURL()
Returns the URL of the xui file


isCancelled

boolean isCancelled()
Returns true if the dialog has been cancelled


show

void show()
See Also:
Component.show()

save

void save(java.net.URL url,
          Document dom)
Saves the xui to a given url location.


saveNLS

void saveNLS(Document uiDOM,
             java.net.URL url,
             NLS nls,
             java.lang.String rootName)
Stores the nls at a given location.

Parameters:
url - location to store
nls - NLS to store
rootName - root name of the work document

saveAsChooser

java.net.URL saveAsChooser(java.net.URL xsdURL,
                           java.net.URL xuiURL,
                           AbstractEditorPanel editor)
Should open a location chooser to save the xui. Must return a URL location to store the xui.


getTitle

java.lang.String getTitle(boolean xuiHasChanged)
Returns the title of the XUI-Editor Frame.

Parameters:
xuiHasChanged - indicates if xui has changed (mark it)

setXsdURL

void setXsdURL(java.net.URL xsdURL)
Sets the xsd url.


setXmlURL

void setXmlURL(java.net.URL xmlURL)
Sets the xml url.


setXuiURL

void setXuiURL(java.net.URL xuiURL)
Sets the xui url.