public class View extends Object implements RequestAuthenticationInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
View.ContentType
Possible values for Content/@type
|
| Constructor and Description |
|---|
View(String name,
List<Element> elements,
Uri base) |
| Modifier and Type | Method and Description |
|---|---|
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() |
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.SpecParserExceptionpublic 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 - Copyright © 2007-2012. All Rights Reserved.