|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) public static @interface GadgetInfo.ModulePrefs
Defines the preferences associated with the gadget.
| Optional Element Summary | |
|---|---|
String |
author_aboutme
For the authors page, a statement about yourself (try to keep to ~500 characters). |
String |
author_affiliation
For the authors page, an optional string such as "Google" that indicates the author's affiliation. |
String |
author_email
Optional string that provides the gadget author's email address. |
String |
author_link
For the authors page, a link to your website, blog, etc. |
String |
author_location
The author's geographical location, such as "Mountain View, CA, USA ". |
String |
author_photo
For the authors page, a URL to a photo (70x100 PNG format preferred, but JPG/GIF are also supported). |
String |
author_quote
For the authors page, a quote you'd like to include (try to keep to ~300 characters). |
String |
author
Optional string that lists the author of the gadget. |
String |
category
Optional string that tells the gadget category. |
String |
category2
Optional string that tells the gadget secondary category. |
String |
description
Optional string that describes the gadget. |
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. |
String |
icon
The icon property specifies a 16px x 16px image that containers can associate with a particular gadget (for example, the container might display the icon next to the gadget's name in the left nav bar). |
GadgetInfo.GadgetLocale[] |
locales
Specify gadget locale support |
boolean |
scaling
Optional boolean that specifies whether the aspect ratio (height-to-width ratio) of the gadget is maintained when the browser is resized. |
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. |
String |
thumbnail
Optional string that gives the URL of a gadget thumbnail. |
String |
title_url
Optional string that provides a URL that the gadget title links to. |
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 String author
public abstract String author_aboutme
public abstract String author_affiliation
public abstract String author_email
public abstract String author_link
public abstract String author_location
public abstract String author_photo
public abstract String author_quote
public abstract String category
public abstract String category2
public abstract String description
public abstract String directory_title
public abstract int height
public abstract String icon
public abstract GadgetInfo.GadgetLocale[] locales
public abstract boolean scaling
public abstract 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 String thumbnail
public abstract String title
public abstract String title_url
public abstract int width
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||