Class View

java.lang.Object
com.atlassian.gadgets.view.View
All Implemented Interfaces:
Serializable

@Immutable public class View extends Object implements Serializable
Models information the renderer needs to know about a gadget to render it properly.
See Also:
  • Field Details

    • DEFAULT

      public static final View DEFAULT
      Default View, which uses the default ViewType and is writable.
    • DIRECTORY

      public static final View DIRECTORY
  • Method Details

    • getViewType

      public ViewType getViewType()
      Returns the ViewType of this gadget which will be rendered.
      Returns:
      the ViewType to render
    • isWritable

      public boolean isWritable()
      Returns true if the viewer is allowed to make changes to the gadget state.
      Returns:
      true if the viewer is allowed to make changes
    • paramsAsMap

      public Map<String,String> paramsAsMap()
      Returns an unmodifiable Map of all view parameters.
      Returns:
      an unmodifiable Map of all view parameters