Top Description Methods
javax.portlet.annotations

public @Interface Supports

extends Annotation
Annotations
@Retention:RUNTIME
@Target:ANNOTATION_TYPE
Imports
java.lang.annotation.Retention, .Target

This annotation is used within composite portlet configuration annotations to specify the supported portlet modes and window states for a given content type. It cannot be used as a stand-alone portlet annotation.
Since
3.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The MIME type
mimeType
()

The MIME type for the supported portlet modes and window states listed in this annotation, for example "text/html".
public String[]

Returns:

The supported portlet modes
portletModes
()

Defines the portlet modes supported by this portlet.
public String[]

Returns:

The supported window states
windowStates
()

Defines the window states supported by this portlet.
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

mimeTypeback to summary
public String mimeType()

The MIME type for the supported portlet modes and window states listed in this annotation, for example "text/html".

The MIME type may also contain the wildcard character '*', for example "text/*" or "*/*".

Returns:String

The MIME type

portletModesback to summary
public String[] portletModes()

Defines the portlet modes supported by this portlet.

The following names represent the standard portlet modes: "edit", "help", "view". Custom portlet modes may also be defined.

Portlet mode names are not case sensitive.

Returns:String[]

The supported portlet modes

windowStatesback to summary
public String[] windowStates()

Defines the window states supported by this portlet.

The following names represent the standard window states: "normal", "minimized", "maximized". Custom window states may also be defined.

Window state names are not case sensitive.

Returns:String[]

The supported window states