|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=TYPE) public static @interface Gadget.ModulePrefs
Defines the preferences associated with the gadget.
| Optional Element Summary | |
|---|---|
java.lang.String |
author_aboutme
For the authors page, a statement about yourself (try to keep to ~500 characters). |
java.lang.String |
author_affiliation
For the authors page, an optional string such as "Google" that indicates the author's affiliation. |
java.lang.String |
author_email
Optional string that provides the gadget author's email address. |
java.lang.String |
author_link
For the authors page, a link to your website, blog, etc. |
java.lang.String |
author_location
The author's geographical location, such as "Mountain View, CA, USA ". |
java.lang.String |
author_photo
For the authors page, a URL to a photo (70x100 PNG format preferred, but JPG/GIF are also supported). |
java.lang.String |
author_quote
For the authors page, a quote you'd like to include (try to keep to ~300 characters). |
java.lang.String |
author
Optional string that lists the author of the gadget. |
java.lang.String |
description
Optional string that describes the gadget. |
java.lang.String |
directory_title
Optional string that provides the title that should be displayed for your gadget in the content directory. |
int |
height
Optional positive integer that specifies the height of the area in which the gadget runs. |
Gadget.GadgetLocale[] |
locales
Specify gadget locale support TODO(zundel) integrate with GWT locale support? |
GadgetFeature.MayRequire[] |
requirements
Deprecated. |
boolean |
scaling
Optional boolean that specifies whether the aspect ratio (height-to-width ratio) of the gadget is maintained when the browser is resized. |
java.lang.String |
screenshot
Optional string that gives the URL of a gadget screenshot. |
boolean |
scrolling
Optional boolean that provides vertical and/or horizontal scrollbars if the content exceeds the space provided. |
boolean |
singleton
Optional boolean that specifies whether users can add a gadget multiple times from a directory. |
java.lang.String |
thumbnail
Optional string that gives the URL of a gadget thumbnail. |
java.lang.String |
title_url
Optional string that provides a URL that the gadget title links to. |
java.lang.String |
title
Optional string that provides the title of the gadget. |
int |
width
Optional positive integer that specifies the width of the area in which the gadget runs. |
public abstract java.lang.String author
public abstract java.lang.String author_aboutme
public abstract java.lang.String author_affiliation
public abstract java.lang.String author_email
public abstract java.lang.String author_link
public abstract java.lang.String author_location
public abstract java.lang.String author_photo
public abstract java.lang.String author_quote
public abstract java.lang.String description
public abstract java.lang.String directory_title
public abstract int height
public abstract Gadget.GadgetLocale[] locales
public abstract GadgetFeature.MayRequire[] requirements
public abstract boolean scaling
public abstract java.lang.String screenshot
public abstract boolean scrolling
false, then the
content is clipped to the height and width provided (not that width is
not configurable).
public abstract boolean singleton
true, meaning that by
default, gadgets can only be added once. Directories can handle this
attribute however they choose. For example, the content directory handles
singleton="true" by graying out and displaying the text
"Added" for gadgets that have already been added. Note that changes to
this attribute may not be picked up by directories right away.
This attribute doesn't prevent users from adding gadgets multiple times
through the developer gadget or Add by URL. Consequently, you still need
to write your gadget to support multiple instances.
public abstract java.lang.String thumbnail
public abstract java.lang.String title
public abstract java.lang.String title_url
public abstract int width
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||