|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.gadgets.spec.ModulePrefs
public class ModulePrefs
Represents the ModulePrefs element of a gadget spec. This encapsulates most gadget meta data, including everything except for Content and UserPref nodes.
| Constructor Summary | |
|---|---|
ModulePrefs(Element element,
Uri base)
|
|
| Method Summary | |
|---|---|
String |
getAttribute(String name)
|
String |
getAttribute(String name,
String defaultValue)
|
String |
getAuthor()
ModulePrefs@author Message Bundles |
String |
getAuthorAboutme()
ModulePrefs@author_aboutme Message Bundles |
String |
getAuthorAffiliation()
ModulePrefs@author_affiliation Message Bundles |
String |
getAuthorEmail()
ModulePrefs@author_email Message Bundles |
Uri |
getAuthorLink()
ModulePrefs@author_link Message Bundles |
String |
getAuthorLocation()
ModulePrefs@author_location Message Bundles |
Uri |
getAuthorPhoto()
ModulePrefs@author_photo Message Bundles |
String |
getAuthorQuote()
ModulePrefs@author_quote Message Bundles |
boolean |
getBoolAttribute(String name)
|
List<String> |
getCategories()
|
String |
getDescription()
ModulePrefs@description Message Bundles |
String |
getDirectoryTitle()
ModulePrefs@directory_title Message Bundles |
com.google.common.collect.Multimap<String,Node> |
getExtraElements()
|
Map<String,Feature> |
getFeatures()
|
int |
getHeight()
ModuleSpec@height |
List<Icon> |
getIcons()
|
int |
getIntAttribute(String name)
|
Map<String,LinkSpec> |
getLinks()
|
LocaleSpec |
getLocale(Locale locale)
Gets the locale spec for the given locale, if any exists. |
Map<Locale,LocaleSpec> |
getLocales()
|
OAuthSpec |
getOAuthSpec()
|
List<Preload> |
getPreloads()
|
boolean |
getScaling()
ModulePrefs@scaling |
Uri |
getScreenshot()
ModulePrefs@screenshot Message Bundles |
boolean |
getScrolling()
ModulePrefs@scrolling |
boolean |
getShowInDirectory()
ModulePrefs@show_in_directory |
boolean |
getShowStats()
ModulePrefs@show_stats |
boolean |
getSingleton()
ModulePrefs@singleton |
Uri |
getThumbnail()
ModulePrefs@thumbnail Message Bundles |
String |
getTitle()
ModulePrefs@title User Pref + Message Bundle + Bidi |
Uri |
getTitleUrl()
ModulePrefs@title_url User Pref + Message Bundle + Bidi |
Uri |
getUriAttribute(String name)
|
int |
getWidth()
ModuleSpec@width |
boolean |
needsUserPrefSubstitution()
Note: not part of the spec. |
ModulePrefs |
substitute(Substitutions substituter)
Produces a new ModulePrefs by substituting hangman variables from substituter. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModulePrefs(Element element,
Uri base)
throws SpecParserException
SpecParserException| Method Detail |
|---|
public String getTitle()
public Uri getTitleUrl()
public String getDescription()
public String getAuthor()
public String getAuthorEmail()
public Uri getScreenshot()
public Uri getThumbnail()
public String getDirectoryTitle()
public String getAuthorAffiliation()
public String getAuthorLocation()
public Uri getAuthorPhoto()
public String getAuthorAboutme()
public String getAuthorQuote()
public Uri getAuthorLink()
public boolean getShowStats()
public boolean getShowInDirectory()
public boolean getSingleton()
public boolean getScaling()
public boolean getScrolling()
public int getWidth()
public int getHeight()
public String getAttribute(String name)
name - the attribute name
public String getAttribute(String name,
String defaultValue)
name - the attribute namedefaultValue - the default Value
public Uri getUriAttribute(String name)
name - the attribute name
public boolean getBoolAttribute(String name)
name - the attribute name
public int getIntAttribute(String name)
name - the attribute name
public List<String> getCategories()
public Map<String,Feature> getFeatures()
public List<Preload> getPreloads()
public List<Icon> getIcons()
public Map<Locale,LocaleSpec> getLocales()
public Map<String,LinkSpec> getLinks()
public OAuthSpec getOAuthSpec()
public com.google.common.collect.Multimap<String,Node> getExtraElements()
public boolean needsUserPrefSubstitution()
public LocaleSpec getLocale(Locale locale)
public ModulePrefs substitute(Substitutions substituter)
substituter - the substituter to execute
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||