Package com.microstrategy.web.app.gui
Class EditorImpl.Button
- java.lang.Object
-
- com.microstrategy.web.app.gui.EditorImpl.Button
-
- Enclosing class:
- EditorImpl
protected class EditorImpl.Button extends java.lang.Object
- Since:
- MicroStrategy Web 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BUTTON_STYLE
static java.lang.String
IMAGE_BUTTON
static java.lang.String
INPUT_BUTTON
static java.lang.String
SUBMIT_STYLE
-
Constructor Summary
Constructors Modifier Constructor Description protected
Button()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBaseBean()
Returns the name of the base bean where the event is obtained fromjava.lang.String
getButtonStyle()
Returns the style of the buttonjava.lang.String
getEnableFeatureId()
Returns the feature ID use to enable or disable the buttonjava.lang.String
getEventId()
Returns the event associated to the buttonjava.lang.String
getExtraAttributes()
Returns the extra attributes to add the the generated html nodejava.lang.String
getExtraLink()
Returns the extra link to add to the event urljava.lang.String
getFeatureID()
Returns the feature ID for the buttonjava.lang.String
getId()
Returns the if of the buttonjava.lang.String
getImage()
Returns the name of the image file associated with the buttonjava.lang.String
getJavaScript()
Return the javascript to execute when the button is clicked onjava.lang.String
getTitle()
Returns the alt title of the imagejava.lang.String
getType()
Returns the type of button, image link or inputvoid
initFromXML(org.w3c.dom.Node root)
void
setBaseBean(java.lang.String baseBean)
Sets the name of the base bean where the event is obtained fromvoid
setButtonStyle(java.lang.String buttonStyle)
Sets the type of button to used.void
setEnableFeatureId(java.lang.String featureID)
Sets the feature ID use to enable or disable the buttonvoid
setEventId(java.lang.String eventID)
Sets the event associated to the buttonvoid
setExtraAttributes(java.lang.String extraAttributes)
Sets the extra attributes to add the the generated html nodevoid
setExtraLink(java.lang.String extraLink)
Sets the extra link to add to the event urlvoid
setFeatureId(java.lang.String featureID)
Sets the feature ID use for the buttonvoid
setId(java.lang.String id)
Sets the id of the buttonvoid
setImage(java.lang.String image)
Sets the name of the image file associated with the buttonvoid
setJavaScript(java.lang.String javaScript)
Sets the javascript to execute when the button is clicked onvoid
setTitle(java.lang.String title)
Sets the alt title of the imagevoid
setType(java.lang.String type)
Sets the type of button, image link or input
-
-
-
Field Detail
-
IMAGE_BUTTON
public static final java.lang.String IMAGE_BUTTON
- See Also:
- Constant Field Values
-
INPUT_BUTTON
public static final java.lang.String INPUT_BUTTON
- See Also:
- Constant Field Values
-
SUBMIT_STYLE
public static final java.lang.String SUBMIT_STYLE
- See Also:
- Constant Field Values
-
BUTTON_STYLE
public static final java.lang.String BUTTON_STYLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
initFromXML
public void initFromXML(org.w3c.dom.Node root)
-
setButtonStyle
public void setButtonStyle(java.lang.String buttonStyle)
Sets the type of button to used.- Parameters:
buttonStyle
- could be either '0' (submit) or '1' ('button').
-
setId
public void setId(java.lang.String id)
Sets the id of the button- Parameters:
id
- the button's id
-
setImage
public void setImage(java.lang.String image)
Sets the name of the image file associated with the button- Parameters:
image
- the image file name
-
setJavaScript
public void setJavaScript(java.lang.String javaScript)
Sets the javascript to execute when the button is clicked on- Parameters:
javaScript
- the javascript call
-
setEventId
public void setEventId(java.lang.String eventID)
Sets the event associated to the button- Parameters:
eventID
- the event id
-
setType
public void setType(java.lang.String type)
Sets the type of button, image link or input- Parameters:
type
- the type of button
-
setBaseBean
public void setBaseBean(java.lang.String baseBean)
Sets the name of the base bean where the event is obtained from- Parameters:
baseBean
- String with the name of the base bean to use
-
setEnableFeatureId
public void setEnableFeatureId(java.lang.String featureID)
Sets the feature ID use to enable or disable the button
-
setFeatureId
public void setFeatureId(java.lang.String featureID)
Sets the feature ID use for the button
-
setTitle
public void setTitle(java.lang.String title)
Sets the alt title of the image
-
setExtraLink
public void setExtraLink(java.lang.String extraLink)
Sets the extra link to add to the event url
-
setExtraAttributes
public void setExtraAttributes(java.lang.String extraAttributes)
Sets the extra attributes to add the the generated html node
-
getButtonStyle
public java.lang.String getButtonStyle()
Returns the style of the button- Returns:
- the button's style
-
getId
public java.lang.String getId()
Returns the if of the button- Returns:
- the button's id
-
getImage
public java.lang.String getImage()
Returns the name of the image file associated with the button- Returns:
- the image file name
-
getJavaScript
public java.lang.String getJavaScript()
Return the javascript to execute when the button is clicked on- Returns:
- the javascript call
-
getEventId
public java.lang.String getEventId()
Returns the event associated to the button- Returns:
- the event id
-
getType
public java.lang.String getType()
Returns the type of button, image link or input- Returns:
- the type of button
-
getBaseBean
public java.lang.String getBaseBean()
Returns the name of the base bean where the event is obtained from- Returns:
- the name of the event's bean
-
getEnableFeatureId
public java.lang.String getEnableFeatureId()
Returns the feature ID use to enable or disable the button- Returns:
- the enable feature ID
-
getFeatureID
public java.lang.String getFeatureID()
Returns the feature ID for the button- Returns:
- the feature ID
-
getTitle
public java.lang.String getTitle()
Returns the alt title of the image- Returns:
- the alt title of the image
-
getExtraLink
public java.lang.String getExtraLink()
Returns the extra link to add to the event url- Returns:
- the extra link
-
getExtraAttributes
public java.lang.String getExtraAttributes()
Returns the extra attributes to add the the generated html node- Returns:
- the extra attributes
-
-