Class PreferenceValidationForPrintRowsColsPerPage
- java.lang.Object
-
- com.microstrategy.web.preferences.PreferenceDefinitionBase
-
- com.microstrategy.web.preferences.PreferenceDefinitionImpl
-
- com.microstrategy.web.preferences.PreferenceDefinitionMinMax
-
- com.microstrategy.web.preferences.PreferenceValidationForPrintRowsColsPerPage
-
- All Implemented Interfaces:
PreferenceDefinition
public class PreferenceValidationForPrintRowsColsPerPage extends PreferenceDefinitionMinMax
This class validates the rows per page (EnumWebPreferences.WebPreferencePrintDefaultRowsPerPage
,EnumWebPreferences.WebPreferencePrintGridRowsPerPage
) and the columns per page (EnumWebPreferences.WebPreferencePrintDefaultColsPerPage
,EnumWebPreferences.WebPreferencePrintGridColsPerPage
) on HTML print.
It makes sure that they do not exceed the maximum rows per page (EnumWebPreferences.WebPreferencePrintMaxRowsPerPage
) and maximum columns per page (EnumWebPreferences.WebPreferencePrintMaxColsPerPage
) .
It also checks that the value is within the min and max settings specified.
- Type: real
- Extra attributes: mn, mx
- Since:
- MicroStrategy Web 7.5.4
-
-
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 PreferenceValidationForPrintRowsColsPerPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
validateTransmute(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 PreferencesException
Description copied from class:PreferenceDefinitionImpl
This 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:
validateTransmute
in classPreferenceDefinitionMinMax
- Returns:
- transmuted preference value
- Throws:
PreferencesException
- Since:
- MicroStrategy Web 8.0.1
-
-