Class PreferenceValidationForMargins
- java.lang.Object
-
- com.microstrategy.web.preferences.PreferenceDefinitionBase
-
- com.microstrategy.web.preferences.PreferenceDefinitionImpl
-
- com.microstrategy.web.preferences.PreferenceDefinitionMinMax
-
- com.microstrategy.web.preferences.PreferenceValidationForMargins
-
- All Implemented Interfaces:
PreferenceDefinition
public class PreferenceValidationForMargins extends PreferenceDefinitionMinMax
This class validates Margin preferences for Print and PDF. It makes sure that there is a printable area of at least 0.5 inches. It also checks that the value is within the min and max settings specified.- Type: real
- Extra attributes: mn, mx
- Since:
- MicroStrategy Web 8.0.0
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.preferences.PreferenceDefinitionMinMax
_max, _min, Att_Max, Att_Min
-
Fields inherited from class com.microstrategy.web.preferences.PreferenceDefinitionImpl
Att_Class, Att_ClusterPropagate, Att_DescriptionID, Att_Scope, Tag_AllowableValue, Tag_AllowableValues
-
Fields inherited from class com.microstrategy.web.preferences.PreferenceDefinitionBase
_allowableValues, _clusterPropagate, _description, _levels, _name, _scope, _type, _value
-
Fields inherited from interface com.microstrategy.web.preferences.PreferenceDefinition
TYPE_BOOLEAN, TYPE_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description PreferenceValidationForMargins()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringvalidateTransmute(java.lang.String value, Preferences pref, java.lang.Object validationObject)This method is triggered by callback when setting preference values.-
Methods inherited from class com.microstrategy.web.preferences.PreferenceDefinitionMinMax
buildXmlAttributes, getMax, getMin, isValidMinMax, setAttributes
-
Methods inherited from class com.microstrategy.web.preferences.PreferenceDefinitionImpl
setAttributes, toString, validate, validateAllowableValues
-
Methods inherited from class com.microstrategy.web.preferences.PreferenceDefinitionBase
clusterPropagate, getAllowableValues, getDescription, getEnumPreferenceLevels, getName, getScope, getType, getValue, setClusterPropagate, setDescription, setEnumPreferenceLevels, setName, setScope, setType, setValue, validateDataType
-
-
-
-
Method Detail
-
validateTransmute
protected java.lang.String validateTransmute(java.lang.String value, Preferences pref, java.lang.Object validationObject) throws PreferencesExceptionDescription copied from class:PreferenceDefinitionImplThis method is triggered by callback when setting preference values. By default, this method doesn't do anything. The returned value will be used to set the preference value - this facilitates preprocessing such as trimming strings, or date time reformating.- Overrides:
validateTransmutein classPreferenceDefinitionMinMax- Returns:
- transmuted preference value
- Throws:
PreferencesException
-
-