Class AddressListTransform
- java.lang.Object
-
- com.microstrategy.web.transform.AbstractTransform
-
- com.microstrategy.web.transform.AbstractLayoutTransform
-
- com.microstrategy.web.app.transforms.AbstractAppTransform
-
- com.microstrategy.web.app.transforms.AddressTransform
-
- com.microstrategy.web.app.transforms.AddressListTransform
-
- All Implemented Interfaces:
AppTransform,Transform
- Direct Known Subclasses:
AddressListFileTransform,AddressListPrintTransform,UserAddressListTransform
public class AddressListTransform extends AddressTransform
This transform is used to list and edit Narrowcast Addresses. It also allows to add new addresses and set default addresses.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
AbstractAppTransform.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected int_levelFlagVariable to hold the value of thelevelFlagFormal Parameterprotected int_maxItemCountVariable to hold the value of themaxItemCountFormal ParameterFormalParametercheckImageThe name of the image used to indicate the default address.FormalParameterconfirmDeleteIndicates whether to confirm or not before deleting an address.protected java.lang.StringcssContentDeprecated.This CSS is no longer required as we use new styles for this purpose rather than nested tables.protected java.lang.StringcssFooterDeprecated.This CSS is no longer required as we use new styles for this purpose rather than nested tables.protected java.lang.StringcssHeaderDeprecated.This CSS is no longer required as we use new styles for this purpose rather than nested tables.protected java.lang.StringcssItemVariable to hold the CSS class for the each of the individual address itemsprotected java.lang.StringcssSelectedItemVariable to hold the CSS class for the individual items of a selected address or for editing or a new addressprotected java.lang.StringcssTableHeaderVariable to hold the CSS class for the headers of the listed addressesstatic java.lang.StringFP_CONFIRM_DELETEConstant for the name of theconfirmDeleteFormal Parameter.static java.lang.StringFP_IMG_CHECKConstant for the name of thecheckImageFormal Parameter.static java.lang.StringFP_IMG_UPPER_LEFTDeprecated.This image is no longer required, the header of the preferences page is defined with css stylesstatic java.lang.StringFP_IMG_UPPER_RIGHTDeprecated.This image is no longer required, the header of the preferences page is defined with css stylesstatic java.lang.StringFP_LEVEL_FLAGConstant for the name of thelevelFlagFormal Parameter.static java.lang.StringFP_MAX_ITEMS_COUNTConstant for the name of themaxItemCountFormal Parameter.static intLEVEL_ADDLEVEL parameter that specifies to include a link to add new addressesstatic intLEVEL_ALLLEVEL parameter that includes all LEVEL parameters.static intLEVEL_COLUMN_HEADERSLEVEL parameter that specifies to include the column headersstatic intLEVEL_DEVICE_NAMELEVEL parameter that specifies to include the address device namestatic intLEVEL_DISPLAY_NAMELEVEL parameter that specifies to include the address display namestatic intLEVEL_EDITLEVEL parameter that specifies to include a link to edit the address.static intLEVEL_OUTER_FRAMELEVEL parameter that specifies to include the address list within another frame This frame is the one used by other sections in Preferences page.static intLEVEL_PHYSICAL_ADDRESSLEVEL parameter that specifies to include the address physical addressstatic intLEVEL_REMOVELEVEL parameter that specifies to include a link to remove the addressstatic intLEVEL_SET_DEFAULTLEVEL parameter that specifies to include a link to set any of the addresses as defaultFormalParameterlevelFlagSpecifies what information is displayed for each address.FormalParametermaxItemCountIndicates how many addresses will be displayed in the address list.FormalParameterupperLeftCornerImageDeprecated.This image is no longer required, the header of the preferences page is defined with css stylesFormalParameterupperRightCornerImageDeprecated.This image is no longer required, the header of the preferences page is defined with css styles-
Fields inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
_bean, _componentBlock, _cssPrefix, _imgBlank, _imgWait, _selfOutput, _subOutput, appliesTo, CLASS_INPUT, CLASS_MESSAGE, contextMenus, cssFile, cssPrefix, debugErrorFlags, debugFlags, dragMode, extraInput, extraUrl, FP_APPLIES_TO, FP_CONTEXT_MENUS, FP_CSS_ERROR_MESSAGE, FP_CSS_ERROR_TITLE, FP_CSS_FILE, FP_CSS_PREFIX, FP_DEBUG_ERROR_FLAGS, FP_DEBUG_FLAGS, FP_DRAG_MODE, FP_EXTRA_INPUT, FP_EXTRA_URL, FP_HEIGHT, FP_IFRAME_ENABLED, FP_IMG_WAIT, FP_INITIAL_INDENT, FP_ORIENTATION, FP_ORIENTATIONS_ALLOWED, FP_PARTIAL_IFRAME_UPDATE, FP_PROCESSING_BUTTONS_FLAGS, FP_PROCESSING_INFO_FLAGS, FP_RESIZE_LEVEL, FP_SCRIPT_CLASS, FP_TYPE, FP_USE_DHTML, FP_WIDTH, globalCssErrorMessage, globalCssErrorTitle, height, iframeEnabled, imgWait, indent, initialIndent, isDHTML, orientation, orientationsAllowed, partialIframeUpdate, PROCESSING_BUTTONS_ALL, PROCESSING_BUTTONS_CANCEL, PROCESSING_BUTTONS_HISTORY_LIST, PROCESSING_BUTTONS_REFRESH, PROCESSING_BUTTONS_VIEW_DETAILS, PROCESSING_INFO_ALL, PROCESSING_INFO_DESCRIPTION, PROCESSING_INFO_LAST_UPDATE, PROCESSING_INFO_NAME, PROCESSING_INFO_NONE, PROCESSING_INFO_STATUS, processingButtonsFlags, processingInfoFlags, RESIZE_ALL, RESIZE_HORIZONTAL, RESIZE_NONE, RESIZE_VERTICAL, resizeLevel, scriptClass, scriptEndTagEncoder, type, useDHTML, width
-
-
Constructor Summary
Constructors Constructor Description AddressListTransform()Default no argument constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributesToLinkAnchor(Tag anchor)protected booleancanDisplayNewAddressLink()booleancheckLevel(int column)Checks the level flag with the level of a column to decide if we want to render a particular column.protected AnchorTaggenerateAnchor(WebEvent event)Overwrites parent method by testing if anchor should be enabled for iframe environmentprotected SimpleListgetAddresses()protected AddressListBeangetAddressListBean()Returns the list of supported devices for email addresses.protected SimpleListgetAvailableDevices()Returns the list of supported devices for email addresses.java.lang.StringgetDescription()Returns the description of this transform.InputTaggetEditDisplayNameField(WebSubscriptionAddress address)InputTaggetEditPhysicalAddressInput(WebSubscriptionAddress address)WebEventgetEventAdd()Returns the event to add a new address.WebEventgetEventCancel()Returns the event to cancel editing or saving an address.WebEventgetEventEdit(WebSubscriptionAddress address)Returns the event to edit an existing address.WebEventgetEventRemove(WebSubscriptionAddress address)Returns the event to delete an existing address.WebEventgetEventSave()Returns the event to save the address currently being editingWebEventgetEventSetDefault()Returns the event to change the current default address.protected java.lang.StringgetSelectedDeviceId(WebSubscriptionAddress address)java.lang.ClassgetSupportedBeanType()Returns the supported bean type for the transform.java.lang.StringgetTitle()Retrieves the Title for the dialog.voidinitializeCss()Initialize the css classes to be used by this transform.voidinitializeImages()Initialize the images to be used by this transform.voidinitializeTransform(Transformable data)This method initialize the private and protected fields of the transform.protected booleanisAddressInEditMode(WebSubscriptionAddress address)protected booleanisEditMode()protected booleanisNewAddress(WebSubscriptionAddress address, SimpleList addresses)protected booleanisNewAvailable()voidrenderAddress(MarkupOutput out, WebSubscriptionAddress address, boolean edit)Renders a single address.voidrenderAddress(MarkupOutput out, WebSubscriptionAddress address, boolean edit, int bandOn)overloaded version - to add banding effect and remove deprecated code Renders a single address.protected voidrenderAddressesTable(MarkupOutput out)protected booleanrenderCancelInputButton(MarkupOutput out)voidrenderColgroups(MarkupOutput out)Renders all column headers for the address list.protected booleanrenderDeleteLink(MarkupOutput out, WebSubscriptionAddress address)voidrenderDeviceField(MarkupOutput out, WebSubscriptionAddress address, boolean edit)voidrenderDeviceInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)Renders the device column of an address.voidrenderDisplayNameField(MarkupOutput out, WebSubscriptionAddress address, boolean edit)voidrenderDisplayNameInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)Renders the address name column of an address.voidrenderEditInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)Renders the edit/remove column of an address.protected booleanrenderEditLink(MarkupOutput out, WebSubscriptionAddress address)voidrenderEmptyAddress(MarkupOutput out)Renders an empty address when there is addresses available for that delivery modevoidrenderEmtpyList(MarkupOutput out)Renders an empty list of addresses.voidrenderFormEnd(MarkupOutput out)Renders the FORM end tag.voidrenderFormStart(MarkupOutput out)Renders the FORM start tag.voidrenderHeader(MarkupOutput out, int column)Renders a single column header for the Address List.protected voidrenderHeaderContent(MarkupOutput out, int column)voidrenderHeaders(MarkupOutput out)Renders all column headers for the address list.voidrenderImage(MarkupOutput out, java.lang.String image)Renders an image in the transform.voidrenderList(MarkupOutput out, SimpleList list)Renders a non-empty list of addresses.protected voidrenderNewLink(MarkupOutput out)voidrenderPhysicalAddressField(MarkupOutput out, WebSubscriptionAddress address, boolean edit)voidrenderPhysicalAddressInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)Renders the physical address column of an address.protected booleanrenderSaveButton(MarkupOutput out)protected voidrenderSetDefaultButton(MarkupOutput out)voidrenderSetDefaultField(MarkupOutput out, WebSubscriptionAddress address, boolean edit)voidrenderSetDefaultInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)Renders the default column of an address.protected voidsetAddresses(SimpleList addresses)protected voidtransformBody(MarkupOutput out)This is called to generate the main body of the Address List dialog.protected voidtransformFooter(MarkupOutput out)Generates the Footer of the Address List dialog.voidtransformForRequestInError(MarkupOutput out)Transform when the status isIn Error.voidtransformForRequestNotInited(MarkupOutput out)Transform when the status isNot initialized.voidtransformForRequestSuccessful(MarkupOutput out)Generates the graphical output for the AddressListBean when the bean is succesfull.voidtransformForRequestWaitingForUserInput(MarkupOutput out)Transform when the status isWaitingForUserInputessful.protected voidtransformHeader(MarkupOutput out)Generates the Header of the Address List dialog.-
Methods inherited from class com.microstrategy.web.app.transforms.AddressTransform
getCancelEvent
-
Methods inherited from class com.microstrategy.web.app.transforms.AbstractAppTransform
addContactInfo, addDynamicScriptClass, addDynamicScriptFile, addFormalParameter, checkLevel, checkProcessingButtonsFlag, checkProcessingInfoFlag, checkStatus, displayError, displayError, displayError, emptyCell, excludeStaticTags, generateAnchorForExport, generateHiddenInputsForEvent, generateIFrameTag, getAppContext, getArgumentName, getAttributesShellDiv, getBeanPath, getBoneId, getCancelEvent, getClientSideHelper, getContainerServices, getContext, getContextMenu, getContextMenuManager, getContextMenuManagerName, getContextMenusDefinition, getCssPrefix, getDateFormat, getDebugOut, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getDisplayMode, getDisplayName, getErrorMessage, getErrorMessage, getErrorTitle, getErrorTitle, getEventManager, getFirstDayOfWeek, getFloatValue, getHelpPath, getID, getIntValue, getJSNameSpace, getLayoutContext, getLocale, getLocale, getPreferenceValue, getProjectID, getRefreshEvent, getRequestKeys, getResourcesFolder, getScriptClass, getStringValue, getStyleRequestContext, getStyleShellDiv, getTagsFactory, getTimeFormat, getUnitsLabel, getWebBeanErrorInfo, hasSubBlock, initHeightAndWidthFromPreferences, initializeWebComponent, is508, isBlockMode, isContextMenusEnabled, isDhtml, isDialog, isDormant, isFeatureAvailable, isIFrameDisplayMode, isIFrameEnabled, isIFrameRequest, isJobExpired, isModal, isOpen, isPortlet, isTrue, localIsIFrameDisplayMode, newContext, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, redirectToDisplayError, redirectToDisplayError, renderBean, renderBean, renderBean, renderBean, renderCancelButton, renderContextMenus, renderCssLink, renderDescriptor, renderDescriptor, renderErrorButton, renderHiddenInputFromRequest, renderLayout, renderProcessingButton, renderProcessingButton, renderProcessingButton, renderProcessingButtonForGet, renderProcessingButtonForGet, renderProcessingButtons, renderProcessingInfo, renderProcessingInfoData, renderProcessingInfoImage, renderProcessingInfoSubtitle, renderProcessingInfoTitle, renderProcessingObjectName, renderRefreshButton, renderRegisterBone, renderSelf, renderShell, renderSubBlock, renderUserHelpAnchor, setBoneProperties, setDisplayMode, setHasSubBlock, setHeight, setIFrameDisplayMode, setIsDormant, setRenderSubBlock, setShellAttributeOnClosedComponent, setWidth, shouldDisplay, transform, transformForRequestCanceled, transformForRequestProcessing
-
Methods inherited from class com.microstrategy.web.transform.AbstractLayoutTransform
getLayoutDefinition, setLayoutDefinition, transformUsingLayout
-
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, canTransform, getEvents, getFormalParams, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports, supports
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.transform.Transform
canTransform, getFormalParams, getPreview, isPreviewAvailable, isResolved, supports, supports
-
-
-
-
Field Detail
-
cssHeader
@Deprecated protected java.lang.String cssHeader
Deprecated.This CSS is no longer required as we use new styles for this purpose rather than nested tables.Variable to hold the CSS class for the header cells of the outer table for rendering addresses
-
cssContent
@Deprecated protected java.lang.String cssContent
Deprecated.This CSS is no longer required as we use new styles for this purpose rather than nested tables.Variable to hold the CSS class for the content cells of the outer table for rendering addresses
-
cssFooter
@Deprecated protected java.lang.String cssFooter
Deprecated.This CSS is no longer required as we use new styles for this purpose rather than nested tables.Variable to hold the CSS class for the footer cells of the outer table for rendering addresses
-
cssTableHeader
protected java.lang.String cssTableHeader
Variable to hold the CSS class for the headers of the listed addresses
-
cssItem
protected java.lang.String cssItem
Variable to hold the CSS class for the each of the individual address items
-
cssSelectedItem
protected java.lang.String cssSelectedItem
Variable to hold the CSS class for the individual items of a selected address or for editing or a new address
-
LEVEL_DISPLAY_NAME
public static final int LEVEL_DISPLAY_NAME
LEVEL parameter that specifies to include the address display name- See Also:
- Constant Field Values
-
LEVEL_PHYSICAL_ADDRESS
public static final int LEVEL_PHYSICAL_ADDRESS
LEVEL parameter that specifies to include the address physical address- See Also:
- Constant Field Values
-
LEVEL_DEVICE_NAME
public static final int LEVEL_DEVICE_NAME
LEVEL parameter that specifies to include the address device name- See Also:
- Constant Field Values
-
LEVEL_REMOVE
public static final int LEVEL_REMOVE
LEVEL parameter that specifies to include a link to remove the address- See Also:
- Constant Field Values
-
LEVEL_EDIT
public static final int LEVEL_EDIT
LEVEL parameter that specifies to include a link to edit the address.- See Also:
- Constant Field Values
-
LEVEL_ADD
public static final int LEVEL_ADD
LEVEL parameter that specifies to include a link to add new addresses- See Also:
- Constant Field Values
-
LEVEL_SET_DEFAULT
public static final int LEVEL_SET_DEFAULT
LEVEL parameter that specifies to include a link to set any of the addresses as default- See Also:
- Constant Field Values
-
LEVEL_COLUMN_HEADERS
public static final int LEVEL_COLUMN_HEADERS
LEVEL parameter that specifies to include the column headers- See Also:
- Constant Field Values
-
LEVEL_OUTER_FRAME
public static final int LEVEL_OUTER_FRAME
LEVEL parameter that specifies to include the address list within another frame This frame is the one used by other sections in Preferences page.- See Also:
- Constant Field Values
-
LEVEL_ALL
public static final int LEVEL_ALL
LEVEL parameter that includes all LEVEL parameters.- See Also:
- Constant Field Values
-
FP_IMG_CHECK
public static final java.lang.String FP_IMG_CHECK
Constant for the name of thecheckImageFormal Parameter.- See Also:
checkImage, Constant Field Values
-
FP_IMG_UPPER_LEFT
@Deprecated public static final java.lang.String FP_IMG_UPPER_LEFT
Deprecated.This image is no longer required, the header of the preferences page is defined with css stylesConstant for the name of theupperLeftCornerImageFormal Parameter.- See Also:
upperLeftCornerImage, Constant Field Values
-
FP_IMG_UPPER_RIGHT
@Deprecated public static final java.lang.String FP_IMG_UPPER_RIGHT
Deprecated.This image is no longer required, the header of the preferences page is defined with css stylesConstant for the name of theupperRightCornerImageFormal Parameter.- See Also:
upperRightCornerImage, Constant Field Values
-
FP_LEVEL_FLAG
public static final java.lang.String FP_LEVEL_FLAG
Constant for the name of thelevelFlagFormal Parameter.- See Also:
levelFlag, Constant Field Values
-
FP_MAX_ITEMS_COUNT
public static final java.lang.String FP_MAX_ITEMS_COUNT
Constant for the name of themaxItemCountFormal Parameter.- See Also:
maxItemCount, Constant Field Values
-
FP_CONFIRM_DELETE
public static final java.lang.String FP_CONFIRM_DELETE
Constant for the name of theconfirmDeleteFormal Parameter.- See Also:
confirmDelete, Constant Field Values
-
checkImage
public FormalParameter checkImage
The name of the image used to indicate the default address.
When editing an address or when adding a new address we use this image to indicate the default address among the list of addresses.
Usage:
"Check.gif"
-
upperLeftCornerImage
@Deprecated public FormalParameter upperLeftCornerImage
Deprecated.This image is no longer required, the header of the preferences page is defined with css stylesThe name of the image used for rendering the upper left corner of the Address List widget.
-
upperRightCornerImage
@Deprecated public FormalParameter upperRightCornerImage
Deprecated.This image is no longer required, the header of the preferences page is defined with css stylesThe name of the image used for rendering the upper right corner of the Address List widget.
-
levelFlag
public FormalParameter levelFlag
Specifies what information is displayed for each address.
The information may include address name, device name, edit link, delete link and other information. Multiple fields may be displayed at the same time. Which fields to show is indicated by a bitwise flag.
Allowed Values:
- Display Name = 1
- Physical Address = 2
- Device Name = 4
- Delete Link = 16
- Edit Link = 32
- Add Link = 64
- Set Default Address = 128
- Show column headers = 256
- Show address list with in the outer preferences frame = 512
- Show every thing = 65535
Usage:
For example, if you want to specify display name and device name only, then you would specify (1 + 4 = 5).
-
_levelFlag
protected int _levelFlag
Variable to hold the value of thelevelFlagFormal Parameter- See Also:
levelFlag
-
maxItemCount
public FormalParameter maxItemCount
Indicates how many addresses will be displayed in the address list.
This value will determine the number of addresses rendered in the address list. Any negative value would display the entire list of addresses.
-
_maxItemCount
protected int _maxItemCount
Variable to hold the value of themaxItemCountFormal Parameter- See Also:
maxItemCount
-
confirmDelete
public FormalParameter confirmDelete
Indicates whether to confirm or not before deleting an address.
Setting this value to true will render a address deletion confirmation page before deleting the address. If confirming is set to true, we would use the event from the servlet to go to the confirmation page. If not, we will just ask the AddressListBean to remove the address.
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Returns the description of this transform.
This is used in the style catalog editor.- Returns:
- The description of this transform.
-
initializeTransform
public void initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform.
It also invokes the initializeTransform method of the parent. It retrieves the list of addresses from the bean.- Specified by:
initializeTransformin interfaceAppTransform- Overrides:
initializeTransformin classAbstractAppTransform- Parameters:
data- The bean to transform
-
getAddresses
protected SimpleList getAddresses()
- Since:
- MicroStrategy Web 9.0.0
-
setAddresses
protected void setAddresses(SimpleList addresses)
- Since:
- MicroStrategy Web 9.0.0
-
transformForRequestWaitingForUserInput
public void transformForRequestWaitingForUserInput(MarkupOutput out)
Transform when the status isWaitingForUserInputessful.
Overwrites by showing the Preferences form. It paints the address list form.- Overrides:
transformForRequestWaitingForUserInputin classAbstractAppTransform- Parameters:
out- the transform's output- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
transformForRequestInError
public void transformForRequestInError(MarkupOutput out)
Transform when the status isIn Error.
OverwritestransformForRequestInErrorby showing a "The email subscriptions feature is currently unavailable" message.- Overrides:
transformForRequestInErrorin classAbstractAppTransform- Parameters:
out- the transform's output- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
transformForRequestNotInited
public void transformForRequestNotInited(MarkupOutput out)
Transform when the status isNot initialized.
It invokes the transformForRequestNotInited method on the parent and then invokes the transformForRequestWaitingForUserInput method on itself.- Overrides:
transformForRequestNotInitedin classAbstractAppTransform- Parameters:
out- Output by this transform- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
transformForRequestSuccessful
public void transformForRequestSuccessful(MarkupOutput out)
Generates the graphical output for the AddressListBean when the bean is succesfull. It callstransformForRequestWaitingForUserInputso the user might edit or view Address Values.- Specified by:
transformForRequestSuccessfulin classAbstractAppTransform- Parameters:
out- The transform's output.- See Also:
AbstractAppTransform.checkStatus(com.microstrategy.web.beans.MarkupOutput)
-
transformHeader
protected void transformHeader(MarkupOutput out)
Generates the Header of the Address List dialog.- Parameters:
out- The transform's output.
-
getTitle
public java.lang.String getTitle()
Retrieves the Title for the dialog.- Returns:
- The Title for the dialog. By default it is the current group, "Email Addresses" in this case.
-
transformFooter
protected void transformFooter(MarkupOutput out)
Generates the Footer of the Address List dialog.- Parameters:
out- The transform's output.
-
renderSetDefaultButton
protected void renderSetDefaultButton(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
isNewAvailable
protected boolean isNewAvailable()
- Since:
- MicroStrategy Web 9.0.0
-
isEditMode
protected boolean isEditMode()
- Since:
- MicroStrategy Web 9.0.0
-
renderAddressesTable
protected void renderAddressesTable(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
canDisplayNewAddressLink
protected boolean canDisplayNewAddressLink()
- Since:
- MicroStrategy Web 9.0.0
-
transformBody
protected void transformBody(MarkupOutput out)
This is called to generate the main body of the Address List dialog.
This method calls other methods to render the entire address list and links for edit, delete, add and set default address.- Parameters:
out- The transform's output.
-
renderNewLink
protected void renderNewLink(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
generateAnchor
protected AnchorTag generateAnchor(WebEvent event)
Overwrites parent method by testing if anchor should be enabled for iframe environment- Overrides:
generateAnchorin classAbstractAppTransform- Parameters:
event- WebEvent- Returns:
- AnchorTag
- Since:
- MicroStrategy Web 8.0.0
-
isNewAddress
protected boolean isNewAddress(WebSubscriptionAddress address, SimpleList addresses)
-
renderColgroups
public void renderColgroups(MarkupOutput out)
Renders all column headers for the address list.- Parameters:
out- The transform's output.- Since:
- MicroStrategy Web 9.0.0
-
renderHeaders
public void renderHeaders(MarkupOutput out)
Renders all column headers for the address list.- Parameters:
out- The transform's output.
-
renderHeader
public void renderHeader(MarkupOutput out, int column)
Renders a single column header for the Address List. CallsrenderHeaderContent(com.microstrategy.web.beans.MarkupOutput, int)for displaying the text and other content related with the header.- Parameters:
out- The transform's output.column- The column to render
-
renderHeaderContent
protected void renderHeaderContent(MarkupOutput out, int column)
- Since:
- MicroStrategy Web 9.0.0
-
renderEmtpyList
public void renderEmtpyList(MarkupOutput out)
Renders an empty list of addresses.
It would render the form to create a new address if there are no addresses in the list. This new address is also set as the derfault address.- Parameters:
out- The transform's output.
-
renderEmptyAddress
public void renderEmptyAddress(MarkupOutput out)
Renders an empty address when there is addresses available for that delivery mode- Parameters:
out-- Throws:
WebBeanException- Since:
- MicroStrategy Web 8.0.1
-
renderList
public void renderList(MarkupOutput out, SimpleList list)
Renders a non-empty list of addresses.- Parameters:
out- The transform's output.list- The list of addresses to render
-
isAddressInEditMode
protected boolean isAddressInEditMode(WebSubscriptionAddress address)
- Since:
- MicroStrategy Web 9.0.0
-
renderAddress
public void renderAddress(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
Renders a single address.- Parameters:
out- The transform's output.address- The address to renderedit- Indicates whether to show the address in edit mode.
-
renderAddress
public void renderAddress(MarkupOutput out, WebSubscriptionAddress address, boolean edit, int bandOn)
overloaded version - to add banding effect and remove deprecated code Renders a single address.- Parameters:
out- The transform's output.address- The address to renderedit- Indicates whether to show the address in edit mode.bandOn- flat to indicate where set bandOn effect to this TR 0 - off; 1 - on- Since:
- MicroStrategy Web 9.0.0
-
renderSetDefaultInfo
public void renderSetDefaultInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
Renders the default column of an address.
In the list mode it would render the radio button and in the edit mode it would render the check box next to the defaul address.- Parameters:
out- The transform's output.address- the address to renderedit- indicates whether to show the address in edit mode.
-
renderSetDefaultField
public void renderSetDefaultField(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
- Since:
- MicroStrategy Web 9.0.0
-
renderDisplayNameInfo
public void renderDisplayNameInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
Renders the address name column of an address.- Parameters:
out- The transform's output.address- The address to renderedit- Indicates whether to show the address in edit mode.
-
renderDisplayNameField
public void renderDisplayNameField(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
- Since:
- MicroStrategy Web 9.0.0
-
getEditDisplayNameField
public InputTag getEditDisplayNameField(WebSubscriptionAddress address)
-
renderPhysicalAddressInfo
public void renderPhysicalAddressInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
Renders the physical address column of an address.- Parameters:
out- The transform's output.address- The address to render.edit- Indicates whether to show the address in edit mode.
-
renderPhysicalAddressField
public void renderPhysicalAddressField(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
- Since:
- MicroStrategy Web 9.0.0
-
getEditPhysicalAddressInput
public InputTag getEditPhysicalAddressInput(WebSubscriptionAddress address)
-
renderDeviceInfo
public void renderDeviceInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
Renders the device column of an address.- Parameters:
out- The transform's output.address- The address to render.edit- Indicates whether to show the address in edit mode.
-
renderDeviceField
public void renderDeviceField(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
- Since:
- MicroStrategy Web 9.0.0
-
getSelectedDeviceId
protected java.lang.String getSelectedDeviceId(WebSubscriptionAddress address)
- Since:
- MicroStrategy Web 9.0.0
-
renderSaveButton
protected boolean renderSaveButton(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
renderCancelInputButton
protected boolean renderCancelInputButton(MarkupOutput out)
- Since:
- MicroStrategy Web 9.0.0
-
renderEditLink
protected boolean renderEditLink(MarkupOutput out, WebSubscriptionAddress address)
- Since:
- MicroStrategy Web 9.0.0
-
addAttributesToLinkAnchor
protected void addAttributesToLinkAnchor(Tag anchor)
- Since:
- MicroStrategy Web 9.0.0
-
renderDeleteLink
protected boolean renderDeleteLink(MarkupOutput out, WebSubscriptionAddress address)
- Since:
- MicroStrategy Web 9.0.0
-
renderEditInfo
public void renderEditInfo(MarkupOutput out, WebSubscriptionAddress address, boolean edit)
Renders the edit/remove column of an address.
It also renders the save/cancel buttons if editing an address.- Parameters:
out- The transform's output.address- the address to render.edit- Indicates whether to show the address in edit mode.
-
renderImage
public void renderImage(MarkupOutput out, java.lang.String image)
Renders an image in the transform.- Overrides:
renderImagein classAbstractAppTransform- Parameters:
out- The transform's output.image- The image name.
-
renderFormStart
public void renderFormStart(MarkupOutput out)
Renders the FORM start tag.- Parameters:
out- The transform's output.
-
renderFormEnd
public void renderFormEnd(MarkupOutput out)
Renders the FORM end tag.- Parameters:
out- The transform's output.
-
initializeImages
public void initializeImages()
Initialize the images to be used by this transform.- Overrides:
initializeImagesin classAbstractAppTransform
-
initializeCss
public void initializeCss()
Initialize the css classes to be used by this transform.- Overrides:
initializeCssin classAbstractAppTransform
-
checkLevel
public boolean checkLevel(int column)
Checks the level flag with the level of a column to decide if we want to render a particular column.- Parameters:
column- The ID of the column to use. The level is determined by the levelFlag FormalParameter Possible values are the LEVEL_ fieds, i.e:LEVEL_DISPLAY_NAME- Returns:
- true If the given level is included in the levelFlag.
-
getEventCancel
public WebEvent getEventCancel()
Returns the event to cancel editing or saving an address.- Returns:
- The
EnumServletEvents.WebEventCancelevent.
-
getEventSetDefault
public WebEvent getEventSetDefault()
Returns the event to change the current default address.- Returns:
- The
EnumAddressListBeanEvents.ADDRESS_LIST_EVENT_CHANGE_DEFAULTevent.
-
getEventEdit
public WebEvent getEventEdit(WebSubscriptionAddress address)
Returns the event to edit an existing address.- Parameters:
address- The address to edit.- Returns:
- The
EnumAddressListBeanEvents.ADDRESS_LIST_EVENT_INIT_ADDRESSevent.
-
getEventAdd
public WebEvent getEventAdd()
Returns the event to add a new address.- Returns:
- The
EnumAddressListBeanEvents.ADDRESS_LIST_EVENT_CREATE_NEW_ADDRESSevent.
-
getEventRemove
public WebEvent getEventRemove(WebSubscriptionAddress address)
Returns the event to delete an existing address.- Parameters:
address- The address to remove.- Returns:
- The
EnumAddressListBeanEvents.ADDRESS_LIST_EVENT_DELETEevent.
-
getEventSave
public WebEvent getEventSave()
Returns the event to save the address currently being editing- Returns:
- The
EnumAddressListBeanEvents.ADDRESS_LIST_EVENT_SAVEevent.
-
getSupportedBeanType
public java.lang.Class getSupportedBeanType()
Returns the supported bean type for the transform.- Specified by:
getSupportedBeanTypein interfaceTransform- Overrides:
getSupportedBeanTypein classAbstractAppTransform- Returns:
- The
AddressListBeanbean for this transform.
-
getAvailableDevices
protected SimpleList getAvailableDevices()
Returns the list of supported devices for email addresses.- Returns:
- The
SimpleListsupported devices for email addresses. - Since:
- MicroStrategy Web 7.5.1
-
getAddressListBean
protected AddressListBean getAddressListBean()
Returns the list of supported devices for email addresses.- Returns:
- The
SimpleListsupported devices for email addresses. - Since:
- MicroStrategy Web 7.5.1
-
-