public class DefaultAboutManager extends Object implements AboutManager
| Modifier and Type | Field and Description |
|---|---|
protected List<AboutDeveloper> |
developers |
protected int |
ICON_SIZE |
protected DefaultAboutProject |
root |
protected List<AboutSponsor> |
sponsors |
protected List<AboutTranslator> |
translators |
| Constructor and Description |
|---|
DefaultAboutManager() |
protected List<AboutDeveloper> developers
protected List<AboutTranslator> translators
protected List<AboutSponsor> sponsors
protected DefaultAboutProject root
protected int ICON_SIZE
public void setProject(String name, URL description, URL icon)
setProject in interface AboutManagerpublic void setProject(String name, URL description, URL icon, Map<String,String> vars)
setProject in interface AboutManagerpublic AboutParticipant addDeveloper(String name, URL description, int priority)
AboutManageraddDeveloper in interface AboutManagerpublic AboutParticipant addDeveloper(String name, URL description, int priority, URL icon)
addDeveloper in interface AboutManagerpublic AboutParticipant addSponsor(String name, URL description, int priority)
AboutManageraddSponsor in interface AboutManagerpublic AboutParticipant addSponsor(String name, URL description, int priority, URL icon)
addSponsor in interface AboutManagerpublic AboutParticipant addTranslator(String name, URL description, int priority)
AboutManageraddTranslator in interface AboutManagerpublic AboutParticipant addTranslator(String name, URL description, int priority, URL icon)
addTranslator in interface AboutManagerpublic JPanel getAboutPanel()
getAboutPanel in interface AboutManagerpublic List<AboutContribution> getContributions(AboutParticipant participant)
public AboutProject getProject()
getProject in interface AboutManagerpublic List<AboutDeveloper> getDevelopers()
getDevelopers in interface AboutManagerpublic List<AboutSponsor> getSponsors()
getSponsors in interface AboutManagerpublic List<AboutTranslator> getTranslators()
getTranslators in interface AboutManagerpublic AboutDeveloper getDeveloper(String name)
getDeveloper in interface AboutManagerpublic AboutSponsor getSponsor(String name)
getSponsor in interface AboutManagerpublic AboutTranslator getTranslator(String name)
getTranslator in interface AboutManagerpublic String getStringFromFile(String filename) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic String getURLBase(URL fileURL)
AboutManagerThe method will simply cut the last path of the URL. For example, if the URL is:
http://www.gvsig.org/docs/file.htmlThe returned base string would be:
http://www.gvsig.org/docs/getURLBase in interface AboutManagerfileURL - the URL of the file