Skip to main content

%DeepSee.Component.Portlet.abstractPortlet

Class %DeepSee.Component.Portlet.abstractPortlet Extends (%ZEN.Component.component, %ZEN.Component.dataView) [ System = 4 ]

Base class for DeepSee Dashboard portlets.
A portlet is a specialized Zen component that can be plugged into a DeepSee dashboard to supply customized content.

Parameters

NAMESPACE

Parameter NAMESPACE = "http://www.intersystems.com/deepsee";

Properties

settings

Property settings As %String [ MultiDimensional ];

MultiDimensional property containing the current settings values for this portlet.

XDatas

Style

XData Style

Style for the portlet

Methods

%OnGetPortletName

ClassMethod %OnGetPortletName() As %String

Return the localized caption of this portlet. This is displayed in the Widget Builder dialog. This should be overridden in subclasses.

%OnGetPortletIcon

ClassMethod %OnGetPortletIcon() As %String

Return the URL of the icon to display for this portlet. This is displayed in the Widget Builder dialog. This should be overridden in subclasses.

%OnGetPortletSettings

ClassMethod %OnGetPortletSettings(Output pInfo As %List, ByRef pSettings) As %Status

Return an optional array of "settings" values for this portlet.
The list of settings is displayed in the Widget Builder where the user can view and edit them. When the portlet is rendered, the values of all settings is made available to the portlet's %DrawHTML method via the settings--a multidimensional array subscripted by setting name.
On return, pInfo can contain a list of settings in the form:
pInfo(n) = $LB(name,value,type,caption,title)
name is the logical name of the setting.
value is the default value of the setting.
type indicates the type of the setting. This determines the control displayed to get the value of the setting. If omitted the type is assumed to be a string. The type can be: "%Integer", "%Boolean", or "ENUM^caption1:value1,caption2:value2".
caption is the localized caption of the setting.
title is an optional tooltip displayed for the setting.
Custom portlet settings can be controlled using the SETTINGS=PORTLET parameter in the dashboard URL

%DrawHTML

Method %DrawHTML()

Static HTML display method: draw the BODY of this component as HTML.
This should be overridden in subclasses.

adjustContentSize

ClientMethod adjustContentSize(load, width, height) [ Abstract, Language = javascript ]

Notification from the containing widget that the page is loaded or the widget is resized. Subclass can implement this, if they wish.

onApplyFilters

ClientMethod onApplyFilters(refresh, widget) [ Abstract, Language = javascript ]

Notification that a filter has changed. Subclass can implement this, if they wish.
refresh inidicates if the display should be refreshed.
widget is the containing widget object.