java.lang.Object | |
↳ | com.atlassian.gadgets.view.ViewType |
Represents a context under which a gadget will be viewed. ViewType
s can be registered via
createViewType
and unregistered via removeViewType
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CANVAS | |||||||||||
DEFAULT |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
ViewType with the given canonical name and optional aliases. | |||||||||||
Gets the aliases for this
ViewType | |||||||||||
Gets the canonical name of this
ViewType | |||||||||||
Removes a
ViewType . | |||||||||||
Returns the
ViewType associated with the value . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a ViewType
with the given canonical name and optional aliases. The name
and
aliases
must be unique : no two ViewTypes
can share names or aliases. If any of the name
or aliases
is associated with another ViewType
, an IllegalArgumentException
will be thrown
name | the unique canonical name for the ViewType |
---|---|
aliases | optional aliases for this ViewType |
ViewType
Gets the aliases for this ViewType
ViewType
's aliases
Gets the canonical name of this ViewType
Removes a ViewType
. Its name and all its aliases are free to be used in new ViewTypes
Returns the ViewType
associated with the value
. Previously, a ViewType
must
have been created (and not subsequently deleted) with the name value
or with an alias value
.
If no such ViewType
exists, an IllegalArgumentException
will be thrown.