|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.gadgets.spec.View
public class View
Represents a Content section, but normalized into an individual view value after views are split on commas.
| Nested Class Summary | |
|---|---|
static class |
View.ContentType
Possible values for Content/@type |
| Constructor Summary | |
|---|---|
View(String name,
List<Element> elements,
Uri base)
|
|
| Method Summary | |
|---|---|
Map<String,String> |
getAttributes()
|
AuthType |
getAuthType()
|
String |
getContent()
|
Uri |
getHref()
|
String |
getName()
|
PipelinedData |
getPipelinedData()
All os: preloads. |
int |
getPreferredHeight()
|
int |
getPreferredWidth()
|
boolean |
getQuirks()
|
String |
getRawType()
|
View.ContentType |
getType()
|
boolean |
isSignOwner()
|
boolean |
isSignViewer()
|
boolean |
needsUserPrefSubstitution()
|
void |
setHrefContent(String content)
Set content for a type=html, href=URL style gadget. |
View |
substitute(Substitutions substituter)
Creates a new view by performing hangman substitution. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public View(String name,
List<Element> elements,
Uri base)
throws SpecParserException
name - The name of this view.elements - List of all views, in order, that make up this view.
An ordered list is required per the spec, since values must
overwrite one another.base - The base url to resolve href against.
SpecParserException| Method Detail |
|---|
public String getName()
public View.ContentType getType()
public String getRawType()
public Uri getHref()
getHref in interface RequestAuthenticationInfopublic boolean getQuirks()
public int getPreferredHeight()
public int getPreferredWidth()
public String getContent()
public void setHrefContent(String content)
content - New gadget content retrieved from href.public boolean needsUserPrefSubstitution()
public AuthType getAuthType()
getAuthType in interface RequestAuthenticationInfopublic boolean isSignOwner()
isSignOwner in interface RequestAuthenticationInfopublic boolean isSignViewer()
isSignViewer in interface RequestAuthenticationInfopublic Map<String,String> getAttributes()
getAttributes in interface RequestAuthenticationInfopublic PipelinedData getPipelinedData()
public View substitute(Substitutions substituter)
substituter -
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||