public class

ConstantPromptEditorTransform

extends AbstractPromptEditorTransform
java.lang.Object
   ↳ com.microstrategy.web.transform.AbstractTransform
     ↳ com.microstrategy.web.transform.AbstractLayoutTransform
       ↳ com.microstrategy.web.app.transforms.AbstractAppTransform
         ↳ com.microstrategy.web.app.transforms.AbstractPromptEditorTransform
           ↳ com.microstrategy.web.app.transforms.ConstantPromptEditorTransform

Summary

[Expand]
Inherited Constants
From class com.microstrategy.web.app.transforms.AbstractAppTransform
[Expand]
Inherited Fields
From class com.microstrategy.web.app.transforms.AbstractPromptEditorTransform
From class com.microstrategy.web.app.transforms.AbstractAppTransform
Public Constructors
ConstantPromptEditorTransform()
Public Methods
Map addDefaultValueAttr(int dataType)
Returns the attribute map for default value attribute.
Map addMaxValueAttr(int dataType)
Returns the attribute map for mininum value attribute.
Map addMinValueAttr(int dataType)
Returns the attribute map for mininum value attribute.
Map<String, String> getPropertyAsValue(String property)
boolean hasDefault(int dataType)
Returns whether the default answer is available for this data type.
boolean hasMax(int dataType)
Returns whether prompt has a maximum value for this data type.
boolean hasMin(int dataType)
Returns whether prompt has a minimum value for this data type.
void initializeTransform(Transformable data)

This method initialize the private and protected fields of the transform, such as width and height.

boolean isBigDecPrompt()
boolean isDatePrompt()
boolean isLatitude()
boolean isLongitude()
boolean isNumericPrompt()
boolean isShowTimePicker()
boolean isTextPrompt()
Protected Methods
List getDisplayStyleList(ArrayList list, String currentStyle)
[Expand]
Inherited Methods
From class com.microstrategy.web.app.transforms.AbstractPromptEditorTransform
From class com.microstrategy.web.app.transforms.AbstractAppTransform
From class com.microstrategy.web.transform.AbstractLayoutTransform
From class com.microstrategy.web.transform.AbstractTransform
From class java.lang.Object
From interface com.microstrategy.web.app.transforms.AppTransform
From interface com.microstrategy.web.transform.LayoutTransform
From interface com.microstrategy.web.transform.Transform

Public Constructors

public ConstantPromptEditorTransform ()

Public Methods

public Map addDefaultValueAttr (int dataType)

Returns the attribute map for default value attribute. If the input data type is the same as the current defined prompt and it has a default value, then this method will return the default value in attribute map. For other cases, except date data type, no attribute will be added. When the input data type is date, and the current prompt is not a date prompt, then the current date will be added as the default value attribute. This means GUI will show current date as default for default value for date type, when the current prompt data type is not Date. This will let calendar picker correctly show the date.

public Map addMaxValueAttr (int dataType)

Returns the attribute map for mininum value attribute. If the input data type is the same as the current defined prompt, then this method will return maximum value in attribute map. For other cases, except date data type, no attribute will be added. When the input data type is date, and the current prompt is not a date prompt, then the current date will be added as the maximum value attribute. This means GUI will show current date as default for maximum value for date type, when the current prompt data type is not Date. This will let calendar picker correctly show the date.

public Map addMinValueAttr (int dataType)

Returns the attribute map for mininum value attribute. If the input data type is the same as the current defined prompt, then this method will return minimum value in attribute map. For other cases, except date data type, no attribute will be added. When the input data type is date, and the current prompt is not a date prompt, then the current date will be added as the minimum value attribute. This means GUI will show current date as default for minimum value for date type, when the current prompt data type is not Date. This will let calendar picker correctly show the date.

public Map<String, String> getPropertyAsValue (String property)

public boolean hasDefault (int dataType)

Returns whether the default answer is available for this data type. If the input data type is the same as the corrent defined prompt, then it will return true for having default answer, otherwise false. If the input data type is not the current data type, false will be returned. This means for editing, default value is false.

Parameters
dataType The data type to query

public boolean hasMax (int dataType)

Returns whether prompt has a maximum value for this data type. If the input data type is the same as the current defined prompt, then this method will return true if it has a maximum value, otherwise false. If the input data type is not the current data type of the prompt, false will be returned always.

public boolean hasMin (int dataType)

Returns whether prompt has a minimum value for this data type. If the input data type is the same as the current defined prompt, then this method will return true if it has a minimum value, otherwise false. If the input data type is not the current data type of the prompt, false will be returned always.

public void initializeTransform (Transformable data)

This method initialize the private and protected fields of the transform, such as width and height. It also invokes the initializeWebComponent, initializeImages and initializeCss methods.

This method is automatically called from the transform method. Transforms which would like to invoke other methods in this instance directly (for example, to invoke some render methods), need first to call this method to guarantee that the Transform is ready to generate output.

Parameters
data the bean to transform.

public boolean isBigDecPrompt ()

public boolean isDatePrompt ()

public boolean isLatitude ()

public boolean isLongitude ()

public boolean isNumericPrompt ()

public boolean isShowTimePicker ()

public boolean isTextPrompt ()

Protected Methods

protected List getDisplayStyleList (ArrayList list, String currentStyle)