Class EditorImpl
- java.lang.Object
 - 
- com.microstrategy.web.app.gui.AbstractGuiElement
 - 
- com.microstrategy.web.app.gui.EditorImpl
 
 
 
- 
- All Implemented Interfaces:
 Editor,GuiElement
public class EditorImpl extends AbstractGuiElement implements Editor
Title: EditorImpl.
Description: implementation of the
Editorinterface for the editor components in Microstrategy Web. The Editor GUI Element is responsible for producing a dialog like interface used by all the editors in the application. Its properties and methods allow the user to quiclky generate a dialog that follows the look and feel standards of Microstrategy Web. Instances of this interface are used by theAbstractEditorTransformto generate the application dialogs, but its usage is not limited to transform as any object capable of handling aMarkupOutputcan use this component. Instances to this component must be obtained through theGuiElementFactory.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classEditorImpl.Button 
- 
Field Summary
Fields Modifier and Type Field Description protected java.util.Hashtable_bodyAttributesHashtableproperty for holding the main editor body attributesprotected MarkupOutput_contentsMarkupOutputproperty for holding the HTML contents of the editor.protected java.lang.String_contentsCssthe content css class name for the editorprotected boolean_createFormBoolean property that determines whether the editor contains a formprotected MarkupOutput_extraPropertiesDeprecated.protected java.lang.String_formActionString property for holding the form's action for the editorprotected java.lang.String_formExtraAttributesString property for holding the form's extra attributes for the editorprotected java.lang.String_formMethodString property for holding the form's method for the editorprotected java.lang.String_formNameString property for holding the form name for the editorprotected java.lang.String_formOnSubmitString property for holding the form's onSubmit attribute for the editorprotected java.lang.String_globalContentCssString property for holding the global contents css class name for the editorprotected java.lang.String_globalCssString property for holding the global css class name for the editorprotected java.lang.String_imagesFolderString property for holding the folder path of the images locationprotected java.util.Hashtable_mainAttributesHashtableproperty for holding the main editor body attributesprotected MarkupOutput_postButtonContentsMarkupOutputproperty for holding the HTML contents to be placed after the button control on the editor.protected java.lang.String_titleString property for holding the title of the editorprotected java.util.Hashtable_titleAttributesHashtableproperty for holding the main editor title attributesprotected java.lang.String_titleBarCssprotected java.lang.String_titleCssString property for holding the title css class name for the editorprotected MarkupOutput_titleElementsMarkupOutputproperty for holding the title elements of the editor.protected java.lang.String_titleElementsCssString property for holding the title elements css class name for the editor- 
Fields inherited from class com.microstrategy.web.app.gui.AbstractGuiElement
_appContext, _name, _webComponent 
- 
Fields inherited from interface com.microstrategy.web.app.gui.Editor
APPLY_BUTTON, CANCEL_BUTTON, OK_BUTTON 
 - 
 
- 
Constructor Summary
Constructors Constructor Description EditorImpl()Class constructor, initializes main properties. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidappendDisplayFlag(int flag)Append a new display flag valueTaggetActionButtonsBar()Returns the TR tag that will be used to render the action buttons barWebEventgetApplyEvent()Get theWebEventinstance to be associated with the Apply button on the editorjava.lang.StringgetApplyJS()Get the JavaScript to be associated with the Apply button and should be executed if it is selectedbooleangetCanAutoSize()get the autosize property of the editorWebEventgetCancelEvent()Get theWebEventinstance to be associated with the Cancel button on the editorjava.lang.StringgetCancelJS()Get the JavaScript to be associated with the Cancel button and should be executed if it is selectedWebEventgetCloseEvent()Get theWebEventinstance to be associated with the Close button on the editorjava.lang.StringgetCloseJS()Indicates JavaScript to be executed when closing current Editor.MarkupOutputgetContents()Returns the content of the editor.intgetDisplayFlags()Get the display flag value as specified for the editorWebEventgetHelpEvent()Deprecated.usegetHelpEvent()java.lang.StringgetHelpToolTip()Get the tooltip of the help button of the editorjava.lang.StringgetHelpTopic()java.lang.StringgetHelpType()get the type of the help fileWebEventgetOkEvent()Get theWebEventinstance to be associated with the OK button on the editorjava.lang.StringgetOkJS()Get the JavaScript to be associated with the Ok button and should be executed if it is selectedMarkupOutputgetPostButtonContents()Get the content after the apply/ok/cancel buttonsjava.lang.StringgetTitle()Get the title of the editorMarkupOutputgetTitleElements()Get the title elements of the editorbooleangetUseDHTMLForEditorClose()Returns if the editor should use DHTML (JavaScript) for closing the editor.booleanhasSpaceAfterEditor()Determine whether to display a blank space underneath the editorprotected voidinitializeEditor()Utility method for initializing properties of the editor such as images, labels events with default values.booleanisHideFocus()gets the hide focus property of the buttons in the editorprotected voidrenderActionButtons(MarkupOutput out)Generate the action buttons (ie apply, ok, cancel buttons) this editor will provide.voidrenderCloseButton(MarkupOutput spanOut, WebEvent closeEvent, java.lang.String closeJS)Generate the Close button for this editorMarkupOutputrenderElement()render the gui element in a MarkupOutput objectMarkupOutputrenderElement(java.lang.String cssClass)Generate the output of the editor according to the information used for initializing its properties, in particular, the editor contents.voidrenderHelpButton(MarkupOutput out)Generate the Help button for this editorvoidrenderHelpButton(MarkupOutput spanOut, WebEvent helpEvent, java.lang.String helpTopic)Deprecated.protected voidrenderStatusBar(MarkupOutput out)protected voidrenderTitleButtons(MarkupOutput out)Generate the title buttons (ie help, close buttons) this editor will provide.protected voidrenderToolbar(MarkupOutput out)Generates the toolbar HTML as specified on the toolbar configuration for this editorvoidsetActionButtonsBar(Tag ab)Set the TR tag that will be used to render the action buttons barvoidsetApplyEvent(WebEvent event)Set theWebEventinstance to be associated with the Apply button on the editorvoidsetApplyJS(java.lang.String value)Define the JavaScript to be associated with the Apply button and should be executed if it is selectedvoidsetApplyLabel(java.lang.String applyLabel)Set the apply label, which is displayed as the text of the apply buttonvoidsetApplyTooltip(java.lang.String applyTooltip)Set the apply tooltip, which is displayed as the text of the ok buttonvoidsetAttribute(java.lang.String attributeName, java.lang.String value, int location)Set attributes for the location specified (EnumEditorSectionTypes.EditorMainDiv, EnumEditorSectionTypes.EditorTitleDiv, EnumEditorSectionTypes.EditorBodyDiv).voidsetButtonDisabled(int button, boolean disableValue)Set the disabled property of the specified button.voidsetButtonsCss(java.lang.String css)Set the button css class name for the editorvoidsetCanAutoSize(boolean value)Set the autosize property of the editorvoidsetCancelEvent(WebEvent event)Set theWebEventinstance to be associated with the Cancel button on the editorvoidsetCancelJS(java.lang.String value)Define the JavaScript to be associated with the Cancel button and should be executed if it is selectedvoidsetCancelLabel(java.lang.String cancelLabel)Set the cancel label, which is displayed as the text of the cancel buttonvoidsetCancelTooltip(java.lang.String cancelTooltip)Set the cancel tooltip, which is displayed as the text of the cancel buttonvoidsetCloseEvent(WebEvent event)Set theWebEventinstance to be associated with the Close button on the editorvoidsetCloseJS(java.lang.String value)Specifies JavaScript function to be invoked when closing Editor in DHTML mode only.voidsetCloseLabel(java.lang.String closeLabel)Set the close label, which is displayed as the tooltip of the close iconvoidsetContents(MarkupOutput out)Deprecated.Don't create a MarkupOutput and create it, instead callgetContentsand populate this instance.voidsetContentsCss(java.lang.String css)Set the content css class name for the editorvoidsetCssPrefix(java.lang.String value)Define the prefix the css classes will have for the HTML contents generated by this editor component.voidsetDisplayFlags(int flags)Set the display flag to use for the editorvoidsetEditorDefinitionLayout(java.lang.String fileName)Sets the definition layout for the editor.voidsetExtraProperties(MarkupOutput mo)Deprecated.replaced bysetAttribute(String, String, int)voidsetForm(java.lang.String action, java.lang.String method, java.lang.String formName)Set the form information for the editorvoidsetForm(java.lang.String action, java.lang.String method, java.lang.String formName, java.lang.String extraAttributes)Set the form information for the editorvoidsetForm(java.lang.String action, java.lang.String method, java.lang.String formName, java.lang.String extraAttributes, java.lang.String onSubmitInfo)Set the form information for the editorvoidsetFormId(java.lang.String value)Deprecated.Unused MethodvoidsetGlobalContentCss(java.lang.String css)Set the global content css class name for the editorvoidsetGlobalCss(java.lang.String css)Set the global css class name for the editorvoidsetHelpEvent(WebEvent event)Deprecated.voidsetHelpLabel(java.lang.String helpLabel)set the help label, which is displayed as the tooltip of the help iconvoidsetHelpToolTip(java.lang.String tooltip)Set the tooltip of the editorvoidsetHelpTopic(java.lang.String topic)Set the help topic of the editorvoidsetHelpType(java.lang.String type)set the help type for the editorvoidsetHideFocus(boolean value)set the hide focus property of the buttons in the editorvoidsetImageBasePath(java.lang.String path)Set the folder path to be used as base for all the images to use while displaying menusvoidsetOkEvent(WebEvent event)Set theWebEventinstance to be associated with the OK button on the editorvoidsetOkJS(java.lang.String value)Define the JavaScript to be associated with the Ok button and should be executed if it is selectedvoidsetOKLabel(java.lang.String OKLabel)Set the ok label, which is displayed as the text of the ok buttonvoidsetOKTooltip(java.lang.String OKTooltip)Set the ok tooltip, which is displayed as the text of the ok buttonvoidsetPostButtonContents(MarkupOutput out)Set the content after the apply/ok/cancel buttonsvoidsetSpaceAfterEditor(boolean spaceAfterEditor)Set whether display a blank space underneath the editorvoidsetTitle(java.lang.String title)Set the title of the editorvoidsetTitleCss(java.lang.String css)Set the title css class name for the editorvoidsetTitleElements(MarkupOutput out)Set the title elements of the editorvoidsetTitleElementsCss(java.lang.String css)Set the title elements' css class name for the editorvoidsetUseDHTMLForEditorClose(boolean value)Define if the editor should use JavaScript (DHTML) for closing the editor or not.- 
Methods inherited from class com.microstrategy.web.app.gui.AbstractGuiElement
getAppContext, getDescriptor, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getFeatures, getMessages, getName, getTagsFactory, getUseIFrame, getWebComponent, isDhtml, isIFrameEnabled, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, renderElement, setAppContext, setExtraInput, setExtraUrl, setName, setUseIFrame, setWebComponent 
- 
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.app.gui.GuiElement
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getFeatures, getMessages, getName, getUseIFrame, getWebComponent, renderElement, setAppContext, setExtraInput, setExtraUrl, setName, setUseIFrame, setWebComponent 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_title
protected java.lang.String _title
String property for holding the title of the editor 
- 
_contents
protected MarkupOutput _contents
MarkupOutputproperty for holding the HTML contents of the editor. 
- 
_postButtonContents
protected MarkupOutput _postButtonContents
MarkupOutputproperty for holding the HTML contents to be placed after the button control on the editor. 
- 
_titleElements
protected MarkupOutput _titleElements
MarkupOutputproperty for holding the title elements of the editor. 
- 
_extraProperties
protected MarkupOutput _extraProperties
Deprecated.MarkupOutputproperty for holding the extra properties of the editor. 
- 
_mainAttributes
protected java.util.Hashtable _mainAttributes
Hashtableproperty for holding the main editor body attributes- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
_titleAttributes
protected java.util.Hashtable _titleAttributes
Hashtableproperty for holding the main editor title attributes- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
_bodyAttributes
protected java.util.Hashtable _bodyAttributes
Hashtableproperty for holding the main editor body attributes- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
_globalCss
protected java.lang.String _globalCss
String property for holding the global css class name for the editor 
- 
_globalContentCss
protected java.lang.String _globalContentCss
String property for holding the global contents css class name for the editor 
- 
_contentsCss
protected java.lang.String _contentsCss
the content css class name for the editor 
- 
_titleCss
protected java.lang.String _titleCss
String property for holding the title css class name for the editor 
- 
_titleBarCss
protected java.lang.String _titleBarCss
- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
_titleElementsCss
protected java.lang.String _titleElementsCss
String property for holding the title elements css class name for the editor 
- 
_formName
protected java.lang.String _formName
String property for holding the form name for the editor 
- 
_formAction
protected java.lang.String _formAction
String property for holding the form's action for the editor 
- 
_formMethod
protected java.lang.String _formMethod
String property for holding the form's method for the editor 
- 
_formOnSubmit
protected java.lang.String _formOnSubmit
String property for holding the form's onSubmit attribute for the editor 
- 
_formExtraAttributes
protected java.lang.String _formExtraAttributes
String property for holding the form's extra attributes for the editor 
- 
_createForm
protected boolean _createForm
Boolean property that determines whether the editor contains a form 
- 
_imagesFolder
protected java.lang.String _imagesFolder
String property for holding the folder path of the images location- Since:
 - MicroStrategy Web 8.0.0
 
 
 - 
 
- 
Method Detail
- 
initializeEditor
protected void initializeEditor()
Utility method for initializing properties of the editor such as images, labels events with default values.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
renderElement
public MarkupOutput renderElement()
Description copied from class:AbstractGuiElementrender the gui element in a MarkupOutput object- Specified by:
 renderElementin interfaceGuiElement- Specified by:
 renderElementin classAbstractGuiElement- Returns:
 - the 
MarkupOutputobject 
 
- 
renderElement
public MarkupOutput renderElement(java.lang.String cssClass)
Generate the output of the editor according to the information used for initializing its properties, in particular, the editor contents.- Specified by:
 renderElementin interfaceEditor- Parameters:
 cssClass- the css class of target object- Returns:
 - a new 
MarkupOutputinstance with the generated HTML output of this method. 
 
- 
renderToolbar
protected void renderToolbar(MarkupOutput out)
Generates the toolbar HTML as specified on the toolbar configuration for this editor- Parameters:
 out- theMarkupOutputobject where the HTML output should be saved.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
renderStatusBar
protected void renderStatusBar(MarkupOutput out)
- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
renderActionButtons
protected void renderActionButtons(MarkupOutput out)
Generate the action buttons (ie apply, ok, cancel buttons) this editor will provide.- Parameters:
 out- theMarkupOutputobject where the HTML output should be saved.
 
- 
renderTitleButtons
protected void renderTitleButtons(MarkupOutput out)
Generate the title buttons (ie help, close buttons) this editor will provide.- Parameters:
 out- theMarkupOutputobject where the HTML output should be saved.
 
- 
renderCloseButton
public void renderCloseButton(MarkupOutput spanOut, WebEvent closeEvent, java.lang.String closeJS)
Generate the Close button for this editor- Specified by:
 renderCloseButtonin interfaceEditor- Parameters:
 spanOut- theMarkupOutputobject where the HTML output should be saved.closeEvent-WebEventthat will be triggered by the close button if selectedcloseJS- String with the JavaScript to be triggered if the close button is selected- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
renderHelpButton
public void renderHelpButton(MarkupOutput out)
Generate the Help button for this editor- Specified by:
 renderHelpButtonin interfaceEditor- Parameters:
 out- theMarkupOutputobject where the HTML output should be saved.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
renderHelpButton
public void renderHelpButton(MarkupOutput spanOut, WebEvent helpEvent, java.lang.String helpTopic)
Deprecated.Generate the Help button for this editor- Specified by:
 renderHelpButtonin interfaceEditor- Parameters:
 spanOut- theMarkupOutputobject where the HTML output should be saved.helpEvent-WebEventthat will be triggered by the help button if selectedhelpTopic- String with the topic the help button will access if selected- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getActionButtonsBar
public Tag getActionButtonsBar()
Returns the TR tag that will be used to render the action buttons bar- Specified by:
 getActionButtonsBarin interfaceEditor- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setActionButtonsBar
public void setActionButtonsBar(Tag ab)
Set the TR tag that will be used to render the action buttons bar- Specified by:
 setActionButtonsBarin interfaceEditor- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setTitle
public void setTitle(java.lang.String title)
Set the title of the editor 
- 
setHelpToolTip
public void setHelpToolTip(java.lang.String tooltip)
Set the tooltip of the editor- Specified by:
 setHelpToolTipin interfaceEditor- Parameters:
 tooltip- String with the tooltip of the editor- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getTitle
public java.lang.String getTitle()
Get the title of the editor 
- 
setHideFocus
public void setHideFocus(boolean value)
set the hide focus property of the buttons in the editor- Specified by:
 setHideFocusin interfaceEditor- Parameters:
 value- the value of the hide focus property- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
isHideFocus
public boolean isHideFocus()
gets the hide focus property of the buttons in the editor- Specified by:
 isHideFocusin interfaceEditor- Returns:
 - the value of the hide focus property
 - Since:
 - MicroStrategy Web 8.1.0
 
 
- 
getHelpToolTip
public java.lang.String getHelpToolTip()
Get the tooltip of the help button of the editor- Specified by:
 getHelpToolTipin interfaceEditor- Returns:
 - the tooltip of the help button on the editor
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setUseDHTMLForEditorClose
public void setUseDHTMLForEditorClose(boolean value)
Define if the editor should use JavaScript (DHTML) for closing the editor or not.- Specified by:
 setUseDHTMLForEditorClosein interfaceEditor- Parameters:
 value- The boolean value set to true if we want to use DHTML code to close the editor
 
- 
getUseDHTMLForEditorClose
public boolean getUseDHTMLForEditorClose()
Returns if the editor should use DHTML (JavaScript) for closing the editor.- Specified by:
 getUseDHTMLForEditorClosein interfaceEditor- Returns:
 - true if the editor will use DHTML code to close the editor or not.
 
 
- 
appendDisplayFlag
public void appendDisplayFlag(int flag)
Append a new display flag value- Specified by:
 appendDisplayFlagin interfaceEditor- Parameters:
 flag- value of the flag to append, from theEnumEditorDisplayFlagsenumeration
 
- 
getDisplayFlags
public int getDisplayFlags()
Get the display flag value as specified for the editor- Specified by:
 getDisplayFlagsin interfaceEditor- Returns:
 - the display flag value as defined for the editor
 
 
- 
setDisplayFlags
public void setDisplayFlags(int flags)
Set the display flag to use for the editor- Specified by:
 setDisplayFlagsin interfaceEditor- Parameters:
 flags- value of the display flag to use on the editor, which should be a bit-wise value from theEnumEditorDisplayFlagsenumeration.
 
- 
setOkEvent
public void setOkEvent(WebEvent event)
Set theWebEventinstance to be associated with the OK button on the editor- Specified by:
 setOkEventin interfaceEditor- Parameters:
 event-WebEventinitialized instance with the information of the event to trigger if the Ok button is selected.
 
- 
getOkEvent
public WebEvent getOkEvent()
Get theWebEventinstance to be associated with the OK button on the editor- Specified by:
 getOkEventin interfaceEditor- Returns:
 - the 
WebEventinitialized instance with the information of the event to trigger if the Ok button is selected. 
 
- 
setCancelEvent
public void setCancelEvent(WebEvent event)
Set theWebEventinstance to be associated with the Cancel button on the editor- Specified by:
 setCancelEventin interfaceEditor- Parameters:
 event-WebEventinitialized instance with the information of the event to trigger if the Cancel button is selected.
 
- 
getCancelEvent
public WebEvent getCancelEvent()
Get theWebEventinstance to be associated with the Cancel button on the editor- Specified by:
 getCancelEventin interfaceEditor- Returns:
 - the 
WebEventinitialized instance with the information of the event to trigger if the Cancel button is selected. 
 
- 
setApplyEvent
public void setApplyEvent(WebEvent event)
Set theWebEventinstance to be associated with the Apply button on the editor- Specified by:
 setApplyEventin interfaceEditor- Parameters:
 event-WebEventinitialized instance with the information of the event to trigger if the Apply button is selected.
 
- 
getApplyEvent
public WebEvent getApplyEvent()
Get theWebEventinstance to be associated with the Apply button on the editor- Specified by:
 getApplyEventin interfaceEditor- Returns:
 - the 
WebEventinitialized instance with the information of the event to trigger if the Apply button is selected. 
 
- 
setApplyJS
public void setApplyJS(java.lang.String value)
Define the JavaScript to be associated with the Apply button and should be executed if it is selected- Specified by:
 setApplyJSin interfaceEditor- Parameters:
 value- String with the JavaScript code to associate with the Apply button.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getApplyJS
public java.lang.String getApplyJS()
Get the JavaScript to be associated with the Apply button and should be executed if it is selected- Specified by:
 getApplyJSin interfaceEditor- Returns:
 - String with the JavaScript code to associate with the Apply button.
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setOkJS
public void setOkJS(java.lang.String value)
Define the JavaScript to be associated with the Ok button and should be executed if it is selected 
- 
getOkJS
public java.lang.String getOkJS()
Get the JavaScript to be associated with the Ok button and should be executed if it is selected 
- 
setCancelJS
public void setCancelJS(java.lang.String value)
Define the JavaScript to be associated with the Cancel button and should be executed if it is selected- Specified by:
 setCancelJSin interfaceEditor- Parameters:
 value- String with the JavaScript code to associate with the Cancel button.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getCancelJS
public java.lang.String getCancelJS()
Get the JavaScript to be associated with the Cancel button and should be executed if it is selected- Specified by:
 getCancelJSin interfaceEditor- Returns:
 - String with the JavaScript code to associate with the Cancel button.
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setCloseJS
public void setCloseJS(java.lang.String value)
Specifies JavaScript function to be invoked when closing Editor in DHTML mode only.- Specified by:
 setCloseJSin interfaceEditor- Parameters:
 value- String Array consisted of function name and parameters.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getCloseJS
public java.lang.String getCloseJS()
Indicates JavaScript to be executed when closing current Editor.- Specified by:
 getCloseJSin interfaceEditor- Returns:
 - String with the JavaScript function information to be triggered when closing the editor
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setHelpEvent
public void setHelpEvent(WebEvent event)
Deprecated.Set theWebEventinstance to be associated with the Help button on the editor- Specified by:
 setHelpEventin interfaceEditor- Parameters:
 event-WebEventinitialized instance with the information of the event to trigger if the Help button is selected.
 
- 
getHelpEvent
public WebEvent getHelpEvent()
Deprecated.usegetHelpEvent()Get theWebEventinstance to be associated with the Help button on the editor- Specified by:
 getHelpEventin interfaceEditor- Returns:
 WebEventinitialized instance with the information of the event to trigger if the Help button is selected.
 
- 
setCloseEvent
public void setCloseEvent(WebEvent event)
Set theWebEventinstance to be associated with the Close button on the editor- Specified by:
 setCloseEventin interfaceEditor- Parameters:
 event-WebEventinitialized instance with the information of the event to trigger if the Close button is selected.
 
- 
getCloseEvent
public WebEvent getCloseEvent()
Get theWebEventinstance to be associated with the Close button on the editor- Specified by:
 getCloseEventin interfaceEditor- Returns:
 WebEventinitialized instance with the information of the event to trigger if the Close button is selected.
 
- 
setContents
public void setContents(MarkupOutput out)
Deprecated.Don't create a MarkupOutput and create it, instead callgetContentsand populate this instance.Registers the content of the editor. This is the body section. Users can provide their own populated MarkupOutput which will be appended to the editor's output in the body section.
Is not recommeneded to use this method (in fact, it has been deprecated). Users should instead call thegetContentsmethod which returns aMarkupOutputand populate this object.- Specified by:
 setContentsin interfaceEditor- Parameters:
 out- the content as aMarkupOutputobject
 
- 
getContents
public MarkupOutput getContents()
Returns the content of the editor. This is the MarkupOutput clients users should manipulate to generate the body of the editor.- Specified by:
 getContentsin interfaceEditor- Returns:
 - the content as a 
MarkupOutputobject used for the body section 
 
- 
setTitleElements
public void setTitleElements(MarkupOutput out)
Set the title elements of the editor- Specified by:
 setTitleElementsin interfaceEditor- Parameters:
 out- the title elements as a MarkupOutput object
 
- 
getTitleElements
public MarkupOutput getTitleElements()
Get the title elements of the editor- Specified by:
 getTitleElementsin interfaceEditor- Returns:
 - the title elements as a MarkupOutput object
 
 
- 
setGlobalCss
public void setGlobalCss(java.lang.String css)
Set the global css class name for the editor- Specified by:
 setGlobalCssin interfaceEditor- Parameters:
 css- the css class name
 
- 
setGlobalContentCss
public void setGlobalContentCss(java.lang.String css)
Set the global content css class name for the editor- Specified by:
 setGlobalContentCssin interfaceEditor- Parameters:
 css- the css class name
 
- 
setContentsCss
public void setContentsCss(java.lang.String css)
Set the content css class name for the editor- Specified by:
 setContentsCssin interfaceEditor- Parameters:
 css- the css class name
 
- 
setButtonsCss
public void setButtonsCss(java.lang.String css)
Set the button css class name for the editor- Specified by:
 setButtonsCssin interfaceEditor- Parameters:
 css- the css class name
 
- 
setTitleCss
public void setTitleCss(java.lang.String css)
Set the title css class name for the editor- Specified by:
 setTitleCssin interfaceEditor- Parameters:
 css- the css class name
 
- 
setTitleElementsCss
public void setTitleElementsCss(java.lang.String css)
Set the title elements' css class name for the editor- Specified by:
 setTitleElementsCssin interfaceEditor- Parameters:
 css- the css class name
 
- 
setApplyLabel
public void setApplyLabel(java.lang.String applyLabel)
Set the apply label, which is displayed as the text of the apply button- Specified by:
 setApplyLabelin interfaceEditor- Parameters:
 applyLabel- the apply label
 
- 
setOKLabel
public void setOKLabel(java.lang.String OKLabel)
Set the ok label, which is displayed as the text of the ok button- Specified by:
 setOKLabelin interfaceEditor- Parameters:
 OKLabel- the ok label
 
- 
setCancelLabel
public void setCancelLabel(java.lang.String cancelLabel)
Set the cancel label, which is displayed as the text of the cancel button- Specified by:
 setCancelLabelin interfaceEditor- Parameters:
 cancelLabel- the cancel label
 
- 
setApplyTooltip
public void setApplyTooltip(java.lang.String applyTooltip)
Set the apply tooltip, which is displayed as the text of the ok button- Specified by:
 setApplyTooltipin interfaceEditor- Parameters:
 applyTooltip- the apply label- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
setOKTooltip
public void setOKTooltip(java.lang.String OKTooltip)
Set the ok tooltip, which is displayed as the text of the ok button- Specified by:
 setOKTooltipin interfaceEditor- Parameters:
 OKTooltip- the ok label- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
setCancelTooltip
public void setCancelTooltip(java.lang.String cancelTooltip)
Set the cancel tooltip, which is displayed as the text of the cancel button- Specified by:
 setCancelTooltipin interfaceEditor- Parameters:
 cancelTooltip- the cancel label- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
setCloseLabel
public void setCloseLabel(java.lang.String closeLabel)
Set the close label, which is displayed as the tooltip of the close icon- Specified by:
 setCloseLabelin interfaceEditor- Parameters:
 closeLabel- the close label
 
- 
setHelpLabel
public void setHelpLabel(java.lang.String helpLabel)
set the help label, which is displayed as the tooltip of the help icon- Specified by:
 setHelpLabelin interfaceEditor- Parameters:
 helpLabel- the help label
 
- 
setButtonDisabled
public void setButtonDisabled(int button, boolean disableValue)Description copied from interface:EditorSet the disabled property of the specified button. The button which needs to be disabled is one ofEditor.APPLY_BUTTON,Editor.OK_BUTTONorEditor.CANCEL_BUTTON- Specified by:
 setButtonDisabledin interfaceEditor- Parameters:
 button- The actual button whose disabled property needs to be changed.disableValue- boolean value set to true to disable the apply button.- Since:
 - MicroStrategy Web 8.0.1
 - See Also:
 Editor.setButtonDisabled(int, boolean)
 
- 
setForm
public void setForm(java.lang.String action, java.lang.String method, java.lang.String formName)Set the form information for the editor 
- 
setForm
public void setForm(java.lang.String action, java.lang.String method, java.lang.String formName, java.lang.String extraAttributes)Set the form information for the editor 
- 
setForm
public void setForm(java.lang.String action, java.lang.String method, java.lang.String formName, java.lang.String extraAttributes, java.lang.String onSubmitInfo)Set the form information for the editor- Specified by:
 setFormin interfaceEditor- Parameters:
 action- the action attribute of the formmethod- the method attribute of the formformName- the name attribute of the formextraAttributes- extra attributes in the form definitiononSubmitInfo- a String with the name and value of the ONSUBMIT attribute for the form tag. If providing this property, any default ONSUBMIT value that is generated (ie. appendState() call) will not be generated. It's responsibility of the developer to add it on its value.
 
- 
setImageBasePath
public void setImageBasePath(java.lang.String path)
Set the folder path to be used as base for all the images to use while displaying menus- Specified by:
 setImageBasePathin interfaceEditor- Parameters:
 path- the folder path
 
- 
setAttribute
public void setAttribute(java.lang.String attributeName, java.lang.String value, int location)Set attributes for the location specified (EnumEditorSectionTypes.EditorMainDiv, EnumEditorSectionTypes.EditorTitleDiv, EnumEditorSectionTypes.EditorBodyDiv). We use it for setting bone properties.- Specified by:
 setAttributein interfaceEditor- Parameters:
 attributeName- the name of the attribute to setvalue- the value of the attributelocation- the location to add the properties asEnumEditorSectionTypes- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setExtraProperties
public void setExtraProperties(MarkupOutput mo)
Deprecated.replaced bysetAttribute(String, String, int)Set extra information to the whole editor. We use it for setting the drag and drop properties.- Specified by:
 setExtraPropertiesin interfaceEditor- Parameters:
 mo- the MarkupOutput object
 
- 
setHelpTopic
public void setHelpTopic(java.lang.String topic)
Set the help topic of the editor- Specified by:
 setHelpTopicin interfaceEditor- Parameters:
 topic- the help topic
 
- 
getHelpTopic
public java.lang.String getHelpTopic()
- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setHelpType
public void setHelpType(java.lang.String type)
Description copied from interface:Editorset the help type for the editor- Specified by:
 setHelpTypein interfaceEditor- Parameters:
 type- String is one ofHelpHelper.HELP_TYPE_ADMIN,HelpHelper.HELP_TYPE_USER,HelpHelper.HELP_TYPE_CUSTOM- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
getHelpType
public java.lang.String getHelpType()
Description copied from interface:Editorget the type of the help file- Specified by:
 getHelpTypein interfaceEditor- Returns:
 - the type is one of 
HelpHelper.HELP_TYPE_ADMIN,HelpHelper.HELP_TYPE_USER,HelpHelper.HELP_TYPE_CUSTOM - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setPostButtonContents
public void setPostButtonContents(MarkupOutput out)
Set the content after the apply/ok/cancel buttons- Specified by:
 setPostButtonContentsin interfaceEditor- Parameters:
 out- the content as aMarkupOutputobject
 
- 
getPostButtonContents
public MarkupOutput getPostButtonContents()
Get the content after the apply/ok/cancel buttons- Specified by:
 getPostButtonContentsin interfaceEditor- Returns:
 - the content as a 
MarkupOutputobject 
 
- 
hasSpaceAfterEditor
public boolean hasSpaceAfterEditor()
Determine whether to display a blank space underneath the editor- Specified by:
 hasSpaceAfterEditorin interfaceEditor- Returns:
 - whether display a blank space underneath the editor
 
 
- 
setSpaceAfterEditor
public void setSpaceAfterEditor(boolean spaceAfterEditor)
Set whether display a blank space underneath the editor- Specified by:
 setSpaceAfterEditorin interfaceEditor- Parameters:
 spaceAfterEditor- whether display a blank space underneath the editor
 
- 
setCanAutoSize
public void setCanAutoSize(boolean value)
Set the autosize property of the editor- Specified by:
 setCanAutoSizein interfaceEditor- Parameters:
 value- The boolean value that specifies if the editor can autosize or not- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
getCanAutoSize
public boolean getCanAutoSize()
get the autosize property of the editor- Specified by:
 getCanAutoSizein interfaceEditor- Returns:
 - The boolean value that specifies if the editor can autosize or not
 - Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setCssPrefix
public void setCssPrefix(java.lang.String value)
Define the prefix the css classes will have for the HTML contents generated by this editor component.- Specified by:
 setCssPrefixin interfaceEditor- Parameters:
 value- String with the css prefix value to use.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setEditorDefinitionLayout
public void setEditorDefinitionLayout(java.lang.String fileName)
Sets the definition layout for the editor. The definition layout indicates what section of the editor to display i.e. the buttons to include in the footer.- Specified by:
 setEditorDefinitionLayoutin interfaceEditor- Parameters:
 fileName- the definition of the editor- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
setFormId
public void setFormId(java.lang.String value)
Deprecated.Unused MethodDescription copied from interface:EditorSet the if of the form to use in XHR partial update 
 - 
 
 -