Package com.microstrategy.web.app.gui
Class AbstractGuiElement
- java.lang.Object
-
- com.microstrategy.web.app.gui.AbstractGuiElement
-
- All Implemented Interfaces:
GuiElement
- Direct Known Subclasses:
AbstractShortcut,AbstractShortcutList,CartImpl,EditorImpl,GGCalendarImpl,IncrementalFetchImpl,MenuImpl,QuickLinksImpl,ScrollerImpl,SubscriptionFileWidgetImpl,SubscriptionFileWidgetImpl,TreeBoxImpl,TreeViewImpl
public abstract class AbstractGuiElement extends java.lang.Object implements GuiElement
Title: AbstractGuiElement.
Description: abstract implementation of GuiElement
Copyright: Copyright (c) 2002
Company: Microstrategy, Inc.
- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
Fields Modifier and Type Field Description protected AppContext_appContexttheAppContextobject associated with this gui elementprotected java.lang.String_namename of the gui elementprotected WebComponent_webComponenttheWebComponentobject associated with this gui element
-
Constructor Summary
Constructors Constructor Description AbstractGuiElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AppContextgetAppContext()return theAppContextobject associated with this gui elementjava.lang.StringgetDescriptor(int key)get descriptor by a keyjava.lang.StringgetDescriptor(int key, java.lang.String defaultValue)java.lang.StringgetDescriptor(java.lang.String key)get descriptor by a keyEventManagergetEventManager()get event manager for this gui elementjava.lang.StringgetExtraInput()get extra input information for this gui elementjava.lang.StringgetExtraUrl()get extra url information for this gui elementWebFeaturesgetFeatures()Get theWebFeaturesobject associated with this gui elementMessagesgetMessages()get theMessagesobject associated with this gui elementjava.lang.StringgetName()get the name of the gui elementprotected TagsFactorygetTagsFactory()booleangetUseIFrame()Indicates whether the instance uses IFrames in its outputWebComponentgetWebComponent()get theWebComponentobject associated with this gui elementbooleanisDhtml()Returns true if the output mode has been set to dhtmlbooleanisIFrameEnabled()return whether the gui element is iframe enabledprotected ParameterBuildernewHiddenInputBuilder()Convenience method to retrieve a new Hidden Input Builder object from the stored AppContext.protected NamespaceEncodernewNamespaceEncoder()Convenience method to retrieve a new Namespace Encoder object from the stored AppContext.protected ParameterBuildernewURIBuilder()Convenience method to retrieve a new URI Builder object from the stored AppContext.abstract MarkupOutputrenderElement()render the gui element in a MarkupOutput objectbooleanrenderElement(MarkupOutput mo)Render the current GUI Element with the information providedvoidsetAppContext(AppContext value)set theAppContextobject associated with this gui elementvoidsetExtraInput(java.lang.String newValue)set extra url information for this gui elementvoidsetExtraUrl(java.lang.String newValue)set extra url information for this gui elementvoidsetName(java.lang.String value)set the name of the gui elementvoidsetUseIFrame(boolean value)Sets whether a ReportFrameElement should use IFrames in its outputvoidsetWebComponent(WebComponent value)set theWebComponentobject associated with this gui element
-
-
-
Field Detail
-
_name
protected java.lang.String _name
name of the gui element
-
_appContext
protected AppContext _appContext
theAppContextobject associated with this gui element
-
_webComponent
protected WebComponent _webComponent
theWebComponentobject associated with this gui element
-
-
Method Detail
-
renderElement
public abstract MarkupOutput renderElement()
render the gui element in a MarkupOutput object- Specified by:
renderElementin interfaceGuiElement- Returns:
- the
MarkupOutputobject
-
renderElement
public boolean renderElement(MarkupOutput mo)
Render the current GUI Element with the information provided- Specified by:
renderElementin interfaceGuiElement- Parameters:
mo-MarkupOutputinstance where the HTML information to display to the user is to be saved.- Returns:
booleanvalue indicating if the render operation was successful or not
-
getFeatures
public WebFeatures getFeatures()
Get theWebFeaturesobject associated with this gui element- Specified by:
getFeaturesin interfaceGuiElement- Returns:
- the
WebFeaturesobject
-
getMessages
public Messages getMessages()
get theMessagesobject associated with this gui element- Specified by:
getMessagesin interfaceGuiElement- Returns:
- the
Messagesobject
-
getDescriptor
public java.lang.String getDescriptor(int key)
get descriptor by a key- Specified by:
getDescriptorin interfaceGuiElement- Parameters:
key- the key for the descriptor- Returns:
- the descriptor
-
getDescriptor
public java.lang.String getDescriptor(int key, java.lang.String defaultValue)
-
getDescriptor
public java.lang.String getDescriptor(java.lang.String key)
get descriptor by a key- Specified by:
getDescriptorin interfaceGuiElement- Parameters:
key- the key for the descriptor- Returns:
- the descriptor
-
setName
public void setName(java.lang.String value)
set the name of the gui element- Specified by:
setNamein interfaceGuiElement- Parameters:
value- the name
-
getName
public java.lang.String getName()
get the name of the gui element- Specified by:
getNamein interfaceGuiElement- Returns:
- the name
-
setAppContext
public void setAppContext(AppContext value)
set theAppContextobject associated with this gui element- Specified by:
setAppContextin interfaceGuiElement- Parameters:
value- theAppContextobject
-
getAppContext
public AppContext getAppContext()
return theAppContextobject associated with this gui element- Specified by:
getAppContextin interfaceGuiElement- Returns:
- the
AppContextobject
-
setWebComponent
public void setWebComponent(WebComponent value)
set theWebComponentobject associated with this gui element- Specified by:
setWebComponentin interfaceGuiElement- Parameters:
value- theWebComponentobject
-
getWebComponent
public WebComponent getWebComponent()
get theWebComponentobject associated with this gui element- Specified by:
getWebComponentin interfaceGuiElement- Returns:
- the
WebComponentobject
-
isIFrameEnabled
public boolean isIFrameEnabled()
return whether the gui element is iframe enabled- Returns:
- whether the gui element is iframe enabled
-
setUseIFrame
public void setUseIFrame(boolean value)
Sets whether a ReportFrameElement should use IFrames in its output- Specified by:
setUseIFramein interfaceGuiElement- Parameters:
value- true if IFrrames are enabled
-
getUseIFrame
public boolean getUseIFrame()
Indicates whether the instance uses IFrames in its output- Specified by:
getUseIFramein interfaceGuiElement- Returns:
- true if it uses IFrames
-
getEventManager
public EventManager getEventManager()
get event manager for this gui element- Specified by:
getEventManagerin interfaceGuiElement- Returns:
- the
EventManagerobject
-
setExtraUrl
public void setExtraUrl(java.lang.String newValue)
set extra url information for this gui element- Specified by:
setExtraUrlin interfaceGuiElement- Parameters:
newValue- the extra url info
-
getExtraUrl
public java.lang.String getExtraUrl()
get extra url information for this gui element- Specified by:
getExtraUrlin interfaceGuiElement- Returns:
- the extra url
-
setExtraInput
public void setExtraInput(java.lang.String newValue)
set extra url information for this gui element- Specified by:
setExtraInputin interfaceGuiElement- Parameters:
newValue- the extra input
-
getExtraInput
public java.lang.String getExtraInput()
get extra input information for this gui element- Specified by:
getExtraInputin interfaceGuiElement- Returns:
- the extra input
-
isDhtml
public boolean isDhtml()
Returns true if the output mode has been set to dhtml- Returns:
booleanvalue ofTrueif the output of this element is DHTML; returnsFalseotherwise.- Since:
- MicroStrategy Web 8.0.0
-
newURIBuilder
protected ParameterBuilder newURIBuilder()
Convenience method to retrieve a new URI Builder object from the stored AppContext.- Returns:
- A new instance of a
ParameterBuilderobject that constructs URIs. - Since:
- MicroStrategy Web 8.0.0
-
newHiddenInputBuilder
protected ParameterBuilder newHiddenInputBuilder()
Convenience method to retrieve a new Hidden Input Builder object from the stored AppContext.- Returns:
- A new instance of a
ParameterBuilderobject that constructs hidden inputs. - Since:
- MicroStrategy Web 8.0.0
-
newNamespaceEncoder
protected NamespaceEncoder newNamespaceEncoder()
Convenience method to retrieve a new Namespace Encoder object from the stored AppContext.- Returns:
- A new instance of a
NamespaceEncoderobject that encode names. - Since:
- MicroStrategy Web 8.0.0
-
getTagsFactory
protected TagsFactory getTagsFactory()
- Returns:
TagsFactoryinitialized instance- Since:
- MicroStrategy Web 8.0.0
-
-