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
Editor
interface 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 theAbstractEditorTransform
to generate the application dialogs, but its usage is not limited to transform as any object capable of handling aMarkupOutput
can 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 class
EditorImpl.Button
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Hashtable
_bodyAttributes
Hashtable
property for holding the main editor body attributesprotected MarkupOutput
_contents
MarkupOutput
property for holding the HTML contents of the editor.protected java.lang.String
_contentsCss
the content css class name for the editorprotected boolean
_createForm
Boolean property that determines whether the editor contains a formprotected MarkupOutput
_extraProperties
Deprecated.protected java.lang.String
_formAction
String property for holding the form's action for the editorprotected java.lang.String
_formExtraAttributes
String property for holding the form's extra attributes for the editorprotected java.lang.String
_formMethod
String property for holding the form's method for the editorprotected java.lang.String
_formName
String property for holding the form name for the editorprotected java.lang.String
_formOnSubmit
String property for holding the form's onSubmit attribute for the editorprotected java.lang.String
_globalContentCss
String property for holding the global contents css class name for the editorprotected java.lang.String
_globalCss
String property for holding the global css class name for the editorprotected java.lang.String
_imagesFolder
String property for holding the folder path of the images locationprotected java.util.Hashtable
_mainAttributes
Hashtable
property for holding the main editor body attributesprotected MarkupOutput
_postButtonContents
MarkupOutput
property for holding the HTML contents to be placed after the button control on the editor.protected java.lang.String
_title
String property for holding the title of the editorprotected java.util.Hashtable
_titleAttributes
Hashtable
property for holding the main editor title attributesprotected java.lang.String
_titleBarCss
protected java.lang.String
_titleCss
String property for holding the title css class name for the editorprotected MarkupOutput
_titleElements
MarkupOutput
property for holding the title elements of the editor.protected java.lang.String
_titleElementsCss
String 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 void
appendDisplayFlag(int flag)
Append a new display flag valueTag
getActionButtonsBar()
Returns the TR tag that will be used to render the action buttons barWebEvent
getApplyEvent()
Get theWebEvent
instance to be associated with the Apply button on the editorjava.lang.String
getApplyJS()
Get the JavaScript to be associated with the Apply button and should be executed if it is selectedboolean
getCanAutoSize()
get the autosize property of the editorWebEvent
getCancelEvent()
Get theWebEvent
instance to be associated with the Cancel button on the editorjava.lang.String
getCancelJS()
Get the JavaScript to be associated with the Cancel button and should be executed if it is selectedWebEvent
getCloseEvent()
Get theWebEvent
instance to be associated with the Close button on the editorjava.lang.String
getCloseJS()
Indicates JavaScript to be executed when closing current Editor.MarkupOutput
getContents()
Returns the content of the editor.int
getDisplayFlags()
Get the display flag value as specified for the editorWebEvent
getHelpEvent()
Deprecated.usegetHelpEvent()
java.lang.String
getHelpToolTip()
Get the tooltip of the help button of the editorjava.lang.String
getHelpTopic()
java.lang.String
getHelpType()
get the type of the help fileWebEvent
getOkEvent()
Get theWebEvent
instance to be associated with the OK button on the editorjava.lang.String
getOkJS()
Get the JavaScript to be associated with the Ok button and should be executed if it is selectedMarkupOutput
getPostButtonContents()
Get the content after the apply/ok/cancel buttonsjava.lang.String
getTitle()
Get the title of the editorMarkupOutput
getTitleElements()
Get the title elements of the editorboolean
getUseDHTMLForEditorClose()
Returns if the editor should use DHTML (JavaScript) for closing the editor.boolean
hasSpaceAfterEditor()
Determine whether to display a blank space underneath the editorprotected void
initializeEditor()
Utility method for initializing properties of the editor such as images, labels events with default values.boolean
isHideFocus()
gets the hide focus property of the buttons in the editorprotected void
renderActionButtons(MarkupOutput out)
Generate the action buttons (ie apply, ok, cancel buttons) this editor will provide.void
renderCloseButton(MarkupOutput spanOut, WebEvent closeEvent, java.lang.String closeJS)
Generate the Close button for this editorMarkupOutput
renderElement()
render the gui element in a MarkupOutput objectMarkupOutput
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.void
renderHelpButton(MarkupOutput out)
Generate the Help button for this editorvoid
renderHelpButton(MarkupOutput spanOut, WebEvent helpEvent, java.lang.String helpTopic)
Deprecated.protected void
renderStatusBar(MarkupOutput out)
protected void
renderTitleButtons(MarkupOutput out)
Generate the title buttons (ie help, close buttons) this editor will provide.protected void
renderToolbar(MarkupOutput out)
Generates the toolbar HTML as specified on the toolbar configuration for this editorvoid
setActionButtonsBar(Tag ab)
Set the TR tag that will be used to render the action buttons barvoid
setApplyEvent(WebEvent event)
Set theWebEvent
instance to be associated with the Apply button on the editorvoid
setApplyJS(java.lang.String value)
Define the JavaScript to be associated with the Apply button and should be executed if it is selectedvoid
setApplyLabel(java.lang.String applyLabel)
Set the apply label, which is displayed as the text of the apply buttonvoid
setApplyTooltip(java.lang.String applyTooltip)
Set the apply tooltip, which is displayed as the text of the ok buttonvoid
setAttribute(java.lang.String attributeName, java.lang.String value, int location)
Set attributes for the location specified (EnumEditorSectionTypes.EditorMainDiv, EnumEditorSectionTypes.EditorTitleDiv, EnumEditorSectionTypes.EditorBodyDiv).void
setButtonDisabled(int button, boolean disableValue)
Set the disabled property of the specified button.void
setButtonsCss(java.lang.String css)
Set the button css class name for the editorvoid
setCanAutoSize(boolean value)
Set the autosize property of the editorvoid
setCancelEvent(WebEvent event)
Set theWebEvent
instance to be associated with the Cancel button on the editorvoid
setCancelJS(java.lang.String value)
Define the JavaScript to be associated with the Cancel button and should be executed if it is selectedvoid
setCancelLabel(java.lang.String cancelLabel)
Set the cancel label, which is displayed as the text of the cancel buttonvoid
setCancelTooltip(java.lang.String cancelTooltip)
Set the cancel tooltip, which is displayed as the text of the cancel buttonvoid
setCloseEvent(WebEvent event)
Set theWebEvent
instance to be associated with the Close button on the editorvoid
setCloseJS(java.lang.String value)
Specifies JavaScript function to be invoked when closing Editor in DHTML mode only.void
setCloseLabel(java.lang.String closeLabel)
Set the close label, which is displayed as the tooltip of the close iconvoid
setContents(MarkupOutput out)
Deprecated.Don't create a MarkupOutput and create it, instead callgetContents
and populate this instance.void
setContentsCss(java.lang.String css)
Set the content css class name for the editorvoid
setCssPrefix(java.lang.String value)
Define the prefix the css classes will have for the HTML contents generated by this editor component.void
setDisplayFlags(int flags)
Set the display flag to use for the editorvoid
setEditorDefinitionLayout(java.lang.String fileName)
Sets the definition layout for the editor.void
setExtraProperties(MarkupOutput mo)
Deprecated.replaced bysetAttribute(String, String, int)
void
setForm(java.lang.String action, java.lang.String method, java.lang.String formName)
Set the form information for the editorvoid
setForm(java.lang.String action, java.lang.String method, java.lang.String formName, java.lang.String extraAttributes)
Set the form information for the editorvoid
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 editorvoid
setFormId(java.lang.String value)
Deprecated.Unused Methodvoid
setGlobalContentCss(java.lang.String css)
Set the global content css class name for the editorvoid
setGlobalCss(java.lang.String css)
Set the global css class name for the editorvoid
setHelpEvent(WebEvent event)
Deprecated.void
setHelpLabel(java.lang.String helpLabel)
set the help label, which is displayed as the tooltip of the help iconvoid
setHelpToolTip(java.lang.String tooltip)
Set the tooltip of the editorvoid
setHelpTopic(java.lang.String topic)
Set the help topic of the editorvoid
setHelpType(java.lang.String type)
set the help type for the editorvoid
setHideFocus(boolean value)
set the hide focus property of the buttons in the editorvoid
setImageBasePath(java.lang.String path)
Set the folder path to be used as base for all the images to use while displaying menusvoid
setOkEvent(WebEvent event)
Set theWebEvent
instance to be associated with the OK button on the editorvoid
setOkJS(java.lang.String value)
Define the JavaScript to be associated with the Ok button and should be executed if it is selectedvoid
setOKLabel(java.lang.String OKLabel)
Set the ok label, which is displayed as the text of the ok buttonvoid
setOKTooltip(java.lang.String OKTooltip)
Set the ok tooltip, which is displayed as the text of the ok buttonvoid
setPostButtonContents(MarkupOutput out)
Set the content after the apply/ok/cancel buttonsvoid
setSpaceAfterEditor(boolean spaceAfterEditor)
Set whether display a blank space underneath the editorvoid
setTitle(java.lang.String title)
Set the title of the editorvoid
setTitleCss(java.lang.String css)
Set the title css class name for the editorvoid
setTitleElements(MarkupOutput out)
Set the title elements of the editorvoid
setTitleElementsCss(java.lang.String css)
Set the title elements' css class name for the editorvoid
setUseDHTMLForEditorClose(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
MarkupOutput
property for holding the HTML contents of the editor.
-
_postButtonContents
protected MarkupOutput _postButtonContents
MarkupOutput
property for holding the HTML contents to be placed after the button control on the editor.
-
_titleElements
protected MarkupOutput _titleElements
MarkupOutput
property for holding the title elements of the editor.
-
_extraProperties
protected MarkupOutput _extraProperties
Deprecated.MarkupOutput
property for holding the extra properties of the editor.
-
_mainAttributes
protected java.util.Hashtable _mainAttributes
Hashtable
property for holding the main editor body attributes- Since:
- MicroStrategy Web 8.0.0
-
_titleAttributes
protected java.util.Hashtable _titleAttributes
Hashtable
property for holding the main editor title attributes- Since:
- MicroStrategy Web 8.0.0
-
_bodyAttributes
protected java.util.Hashtable _bodyAttributes
Hashtable
property 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:AbstractGuiElement
render the gui element in a MarkupOutput object- Specified by:
renderElement
in interfaceGuiElement
- Specified by:
renderElement
in classAbstractGuiElement
- Returns:
- the
MarkupOutput
object
-
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:
renderElement
in interfaceEditor
- Parameters:
cssClass
- the css class of target object- Returns:
- a new
MarkupOutput
instance 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
- theMarkupOutput
object 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
- theMarkupOutput
object 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
- theMarkupOutput
object 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:
renderCloseButton
in interfaceEditor
- Parameters:
spanOut
- theMarkupOutput
object where the HTML output should be saved.closeEvent
-WebEvent
that 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:
renderHelpButton
in interfaceEditor
- Parameters:
out
- theMarkupOutput
object 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:
renderHelpButton
in interfaceEditor
- Parameters:
spanOut
- theMarkupOutput
object where the HTML output should be saved.helpEvent
-WebEvent
that 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:
getActionButtonsBar
in 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:
setActionButtonsBar
in 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:
setHelpToolTip
in 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:
setHideFocus
in 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:
isHideFocus
in 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:
getHelpToolTip
in 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:
setUseDHTMLForEditorClose
in 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:
getUseDHTMLForEditorClose
in 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:
appendDisplayFlag
in interfaceEditor
- Parameters:
flag
- value of the flag to append, from theEnumEditorDisplayFlags
enumeration
-
getDisplayFlags
public int getDisplayFlags()
Get the display flag value as specified for the editor- Specified by:
getDisplayFlags
in 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:
setDisplayFlags
in interfaceEditor
- Parameters:
flags
- value of the display flag to use on the editor, which should be a bit-wise value from theEnumEditorDisplayFlags
enumeration.
-
setOkEvent
public void setOkEvent(WebEvent event)
Set theWebEvent
instance to be associated with the OK button on the editor- Specified by:
setOkEvent
in interfaceEditor
- Parameters:
event
-WebEvent
initialized instance with the information of the event to trigger if the Ok button is selected.
-
getOkEvent
public WebEvent getOkEvent()
Get theWebEvent
instance to be associated with the OK button on the editor- Specified by:
getOkEvent
in interfaceEditor
- Returns:
- the
WebEvent
initialized instance with the information of the event to trigger if the Ok button is selected.
-
setCancelEvent
public void setCancelEvent(WebEvent event)
Set theWebEvent
instance to be associated with the Cancel button on the editor- Specified by:
setCancelEvent
in interfaceEditor
- Parameters:
event
-WebEvent
initialized instance with the information of the event to trigger if the Cancel button is selected.
-
getCancelEvent
public WebEvent getCancelEvent()
Get theWebEvent
instance to be associated with the Cancel button on the editor- Specified by:
getCancelEvent
in interfaceEditor
- Returns:
- the
WebEvent
initialized instance with the information of the event to trigger if the Cancel button is selected.
-
setApplyEvent
public void setApplyEvent(WebEvent event)
Set theWebEvent
instance to be associated with the Apply button on the editor- Specified by:
setApplyEvent
in interfaceEditor
- Parameters:
event
-WebEvent
initialized instance with the information of the event to trigger if the Apply button is selected.
-
getApplyEvent
public WebEvent getApplyEvent()
Get theWebEvent
instance to be associated with the Apply button on the editor- Specified by:
getApplyEvent
in interfaceEditor
- Returns:
- the
WebEvent
initialized 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:
setApplyJS
in 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:
getApplyJS
in 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:
setCancelJS
in 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:
getCancelJS
in 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:
setCloseJS
in 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:
getCloseJS
in 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 theWebEvent
instance to be associated with the Help button on the editor- Specified by:
setHelpEvent
in interfaceEditor
- Parameters:
event
-WebEvent
initialized instance with the information of the event to trigger if the Help button is selected.
-
getHelpEvent
public WebEvent getHelpEvent()
Deprecated.usegetHelpEvent()
Get theWebEvent
instance to be associated with the Help button on the editor- Specified by:
getHelpEvent
in interfaceEditor
- Returns:
WebEvent
initialized instance with the information of the event to trigger if the Help button is selected.
-
setCloseEvent
public void setCloseEvent(WebEvent event)
Set theWebEvent
instance to be associated with the Close button on the editor- Specified by:
setCloseEvent
in interfaceEditor
- Parameters:
event
-WebEvent
initialized instance with the information of the event to trigger if the Close button is selected.
-
getCloseEvent
public WebEvent getCloseEvent()
Get theWebEvent
instance to be associated with the Close button on the editor- Specified by:
getCloseEvent
in interfaceEditor
- Returns:
WebEvent
initialized 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 callgetContents
and 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 thegetContents
method which returns aMarkupOutput
and populate this object.- Specified by:
setContents
in interfaceEditor
- Parameters:
out
- the content as aMarkupOutput
object
-
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:
getContents
in interfaceEditor
- Returns:
- the content as a
MarkupOutput
object used for the body section
-
setTitleElements
public void setTitleElements(MarkupOutput out)
Set the title elements of the editor- Specified by:
setTitleElements
in interfaceEditor
- Parameters:
out
- the title elements as a MarkupOutput object
-
getTitleElements
public MarkupOutput getTitleElements()
Get the title elements of the editor- Specified by:
getTitleElements
in 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:
setGlobalCss
in 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:
setGlobalContentCss
in 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:
setContentsCss
in 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:
setButtonsCss
in 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:
setTitleCss
in 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:
setTitleElementsCss
in 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:
setApplyLabel
in 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:
setOKLabel
in 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:
setCancelLabel
in 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:
setApplyTooltip
in 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:
setOKTooltip
in 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:
setCancelTooltip
in 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:
setCloseLabel
in 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:
setHelpLabel
in interfaceEditor
- Parameters:
helpLabel
- the help label
-
setButtonDisabled
public void setButtonDisabled(int button, boolean disableValue)
Description copied from interface:Editor
Set the disabled property of the specified button. The button which needs to be disabled is one ofEditor.APPLY_BUTTON
,Editor.OK_BUTTON
orEditor.CANCEL_BUTTON
- Specified by:
setButtonDisabled
in 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:
setForm
in 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:
setImageBasePath
in 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:
setAttribute
in 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:
setExtraProperties
in interfaceEditor
- Parameters:
mo
- the MarkupOutput object
-
setHelpTopic
public void setHelpTopic(java.lang.String topic)
Set the help topic of the editor- Specified by:
setHelpTopic
in 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:Editor
set the help type for the editor- Specified by:
setHelpType
in 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:Editor
get the type of the help file- Specified by:
getHelpType
in 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:
setPostButtonContents
in interfaceEditor
- Parameters:
out
- the content as aMarkupOutput
object
-
getPostButtonContents
public MarkupOutput getPostButtonContents()
Get the content after the apply/ok/cancel buttons- Specified by:
getPostButtonContents
in interfaceEditor
- Returns:
- the content as a
MarkupOutput
object
-
hasSpaceAfterEditor
public boolean hasSpaceAfterEditor()
Determine whether to display a blank space underneath the editor- Specified by:
hasSpaceAfterEditor
in 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:
setSpaceAfterEditor
in 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:
setCanAutoSize
in 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:
getCanAutoSize
in 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:
setCssPrefix
in 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:
setEditorDefinitionLayout
in 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:Editor
Set the if of the form to use in XHR partial update
-
-