bibliothek.gui.dock.themes
Interface ThemeMeta

All Known Implementing Classes:
DefaultThemeMeta

public interface ThemeMeta

A set of information related to a ThemeFactory.

Author:
Benjamin Sigg

Method Summary
 void addListener(ThemeMetaListener listener)
          Adds a listener to this meta information, the listener will be informed if this meta information changes.
 String[] getAuthors()
          Gets a list of strings, containing the names of the authors.
 String getDescription()
          Gets a human readable description of the theme.
 ThemeFactory getFactory()
          Gets the factory which created this ThemeMeta.
 String getName()
          Gets the name of the theme.
 URI[] getWebpages()
          Gets a set of links to any webpage the authors might want to show the user.
 void removeListener(ThemeMetaListener listener)
          Removes a listener from this
 void setFactory(ThemeFactory factory)
          Changes the result of getFactory() to factory.
 

Method Detail

getFactory

ThemeFactory getFactory()
Gets the factory which created this ThemeMeta.

Returns:
the source of this meta

setFactory

void setFactory(ThemeFactory factory)
Changes the result of getFactory() to factory. This method is intended to be used by ThemeFactorys that wrap around other factories.

Parameters:
factory - the new factory

addListener

void addListener(ThemeMetaListener listener)
Adds a listener to this meta information, the listener will be informed if this meta information changes.

Parameters:
listener - the new listener

removeListener

void removeListener(ThemeMetaListener listener)
Removes a listener from this

Parameters:
listener - the listener to remove

getDescription

String getDescription()
Gets a human readable description of the theme.

Returns:
the description, might be null

getName

String getName()
Gets the name of the theme.

Returns:
the name, might be null

getAuthors

String[] getAuthors()
Gets a list of strings, containing the names of the authors.

Returns:
the authors, might be null

getWebpages

URI[] getWebpages()
Gets a set of links to any webpage the authors might want to show the user.

Returns:
the pages, might be null