|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.plugins.ireport.PluginResourcesManager
This class manages the interface with iReport (load or save file), the boundleResources for language and the main data for the plugin configuration, like config folder, temp folder, and server location
Method Summary | |
void |
closeIReportFile()
|
java.lang.String |
getConfigFile()
|
java.lang.String |
getConfigFolder()
|
java.util.Locale |
getCurrentLocale()
|
java.io.File |
getIReportFile()
If the operation mode is set on "run", this method checks if there is an open JReportFrame. |
java.lang.String |
getIReportHomeDirectory()
|
java.lang.String |
getLanguageResource(java.lang.String key)
|
java.lang.String |
getLog()
|
javax.swing.JFrame |
getMainFrame()
This methods returns the main instance of the iReport MainFrame class if the operation mode is set on "run" or an empty JFrame otherwise |
static PluginResourcesManager |
getMainInstance()
This method returns the unique instance of this class |
java.lang.String |
getServerLocation()
|
java.lang.String |
getTempFolder()
|
void |
languageChanged(it.businesslogic.ireport.util.LanguageChangedEvent arg0)
|
void |
logOnConsole(java.lang.String msg)
This methods shows a message on the main console of iReport if the operation mode is set on "run" or on the System.out otherwise |
void |
openIReportFile(java.lang.String fileName)
If the operation mode is set on "run", this method calls iReport method to open a JReportFile. |
java.io.File |
saveAndGetIReportFile()
If the operation mode is set on "run", this method checks if there is an open JReportFrame and then shows a JDialog to ask to the user if he wants to save it. |
void |
setConfigFolder(java.lang.String configFolder)
|
void |
setOperationMode(java.lang.String operationMode)
|
void |
setResourceBounle()
This method reads the .properties files containing language informations, complaint to the ResourceBoundle class If the operation mode is set on "run", the Locale information are taken from the iReport I18n class. |
void |
setServerLocation(java.lang.String serverLocation)
|
void |
setTempFolder(java.lang.String tempFolder)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static PluginResourcesManager getMainInstance()
public void setOperationMode(java.lang.String operationMode)
public javax.swing.JFrame getMainFrame()
public java.lang.String getIReportHomeDirectory()
public void logOnConsole(java.lang.String msg)
public java.io.File saveAndGetIReportFile()
public void closeIReportFile()
public java.io.File getIReportFile()
public void openIReportFile(java.lang.String fileName)
fileName
- Name of the file to be openedpublic void setResourceBounle()
public void languageChanged(it.businesslogic.ireport.util.LanguageChangedEvent arg0)
languageChanged
in interface it.businesslogic.ireport.util.LanguageChangedListener
public java.util.Locale getCurrentLocale()
public java.lang.String getLanguageResource(java.lang.String key)
public java.lang.String getConfigFolder()
public void setConfigFolder(java.lang.String configFolder)
public java.lang.String getServerLocation()
public void setServerLocation(java.lang.String serverLocation)
public java.lang.String getTempFolder()
public void setTempFolder(java.lang.String tempFolder)
public java.lang.String getConfigFile()
public java.lang.String getLog()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |