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 AboutManager
public void setProject(String name, URL description, URL icon, Map<String,String> vars)
setProject
in interface AboutManager
public AboutParticipant addDeveloper(String name, URL description, int priority)
AboutManager
addDeveloper
in interface AboutManager
public AboutParticipant addDeveloper(String name, URL description, int priority, URL icon)
addDeveloper
in interface AboutManager
public AboutParticipant addSponsor(String name, URL description, int priority)
AboutManager
addSponsor
in interface AboutManager
public AboutParticipant addSponsor(String name, URL description, int priority, URL icon)
addSponsor
in interface AboutManager
public AboutParticipant addTranslator(String name, URL description, int priority)
AboutManager
addTranslator
in interface AboutManager
public AboutParticipant addTranslator(String name, URL description, int priority, URL icon)
addTranslator
in interface AboutManager
public JPanel getAboutPanel()
getAboutPanel
in interface AboutManager
public List<AboutContribution> getContributions(AboutParticipant participant)
public AboutProject getProject()
getProject
in interface AboutManager
public List<AboutDeveloper> getDevelopers()
getDevelopers
in interface AboutManager
public List<AboutSponsor> getSponsors()
getSponsors
in interface AboutManager
public List<AboutTranslator> getTranslators()
getTranslators
in interface AboutManager
public AboutDeveloper getDeveloper(String name)
getDeveloper
in interface AboutManager
public AboutSponsor getSponsor(String name)
getSponsor
in interface AboutManager
public AboutTranslator getTranslator(String name)
getTranslator
in interface AboutManager
public String getStringFromFile(String filename) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public String getURLBase(URL fileURL)
AboutManager
The 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 AboutManager
fileURL
- the URL
of the file