|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.prompts.definitions.ColorDefinition
public class ColorDefinition
ColorDefinition is a prompt type which allows the specification of one color value.
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
ColorDefinition()
Constructor |
|
ColorDefinition(java.lang.String promptName)
Constructor |
Method Summary | |
---|---|
void |
configureAttributes(java.util.Map<java.lang.String,?> options,
java.util.Map<java.lang.String,?> context)
|
void |
consumeRelatedObjects(com.sas.util.xmlpersist.RelatedObjectListsHolder roHolder)
Persistence method for reading in subtags. |
com.sas.storage.valueprovider.ValueProviderInterface |
getColorProvider()
Returns back ValueProvider to the users of ColorDefinition in case custom colors are set else returns null |
com.sas.storage.valueprovider.ValueProviderInterface |
getDefaultColorProvider()
Returns back a default ColorProvider created from the Swing Color Picker model |
com.sas.datatypes.DataTypeInterface |
getPromptDataType()
Returns an instance of com.sas.datatypes.ColorType that can be used to process values for this prompt. |
java.util.Collection<ValidationEntry> |
getPromptValueValidationErrors(java.lang.Object value,
java.util.Locale locale)
Returns a Collection containing the set of ValidationEntry objects or an empty
collection if no errors were found. |
java.lang.String |
getVersion()
|
boolean |
isPromptValueValid(java.lang.Object value,
java.util.Locale locale)
Returns whether the specified value is valid for the current settings of the color prompt. |
boolean |
isRequired()
Returns whether the user will be required to enter a value for this prompt before continuing in the application |
void |
setColorProvider(com.sas.storage.valueprovider.ValueProviderInterface colorProvider)
Sets the ValueProvider containing custom palette colors. |
void |
setRequired(boolean required)
Sets whether the user will be required to enter a value for this prompt before continuing in the application |
java.util.Collection<ValidationEntry> |
validateDefinition(java.util.Locale locale)
This method is used to validate that the various attributes of the definition all contain valid values. |
Methods inherited from interface com.sas.prompts.definitions.PromptDefinitionInterface |
---|
clearDefaultValue, getDefaultValue, getPromptDescription, getPromptDescriptions, getPromptLabel, getPromptLabels, getPromptName, getUserInfo, isDefaultValueSet, isFixed, isHidden, isPromptValueValid |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public ColorDefinition()
public ColorDefinition(java.lang.String promptName)
Method Detail |
---|
public boolean isRequired()
isRequired
in interface PromptDefinitionInterface
isRequired
in class PromptDefinition
PromptDefinitionInterface.isRequired()
public void setRequired(boolean required)
setRequired
in interface MutableRequiredDefinitionInterface
required
- whether the user will be required to enter a value for this prompt before continuing
in the applicationpublic boolean isPromptValueValid(java.lang.Object value, java.util.Locale locale)
isPromptValueValid
in interface com.sas.prompts.definitions.PromptDefinitionV2Interface
isPromptValueValid
in class PromptDefinition
PromptDefinitionV2Interface.isPromptValueValid(java.lang.Object, java.util.Locale)
public java.util.Collection<ValidationEntry> getPromptValueValidationErrors(java.lang.Object value, java.util.Locale locale)
ValidationEntry
objects or an empty
collection if no errors were found.
getPromptValueValidationErrors
in interface PromptDefinitionInterface
getPromptValueValidationErrors
in class PromptDefinition
value
- The value to check for errorslocale
- The locale to return the error messages in
ValidationEntry
objects or an empty
collection if no errors were found.PromptDefinitionInterface.getPromptValueValidationErrors(Object, Locale)
public java.util.Collection<ValidationEntry> validateDefinition(java.util.Locale locale)
ValidationEntry
objects
for each error. This method should be called before the definition is to be used.
Subclasses should override this method to return the appropriate validation errors.
validateDefinition
in interface PromptDefinitionInterface
validateDefinition
in class PromptDefinition
locale
- Locale
ValidationEntry
objects or an empty
collection if no errors were found.PromptDefinitionInterface.validateDefinition(Locale)
public com.sas.datatypes.DataTypeInterface getPromptDataType()
getPromptDataType
in interface PromptDefinitionInterface
getPromptDataType
in class PromptDefinition
PromptDefinitionInterface.getPromptDataType()
public void consumeRelatedObjects(com.sas.util.xmlpersist.RelatedObjectListsHolder roHolder) throws org.xml.sax.SAXException
PromptDefinition
consumeRelatedObjects
in interface com.sas.util.xmlpersist.PersistenceInterface
consumeRelatedObjects
in class PromptDefinition
org.xml.sax.SAXException
public void configureAttributes(java.util.Map<java.lang.String,?> options, java.util.Map<java.lang.String,?> context)
configureAttributes
in interface com.sas.util.AttributeConfigurationInterface
configureAttributes
in class PromptDefinition
public com.sas.storage.valueprovider.ValueProviderInterface getColorProvider()
getColorProvider
in interface com.sas.prompts.definitions.ColorDefinitionV2Interface
public com.sas.storage.valueprovider.ValueProviderInterface getDefaultColorProvider()
getDefaultColorProvider
in interface com.sas.prompts.definitions.ColorDefinitionV2Interface
public void setColorProvider(com.sas.storage.valueprovider.ValueProviderInterface colorProvider)
setColorProvider
in interface com.sas.prompts.definitions.MutableColorDefinitionV2Interface
colorProvider
- public java.lang.String getVersion()
getVersion
in interface com.sas.models.VersionInterface
getVersion
in class PromptDefinition
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |