|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.prompts.definitions.ColorDefinition
@SASScope(value="ALL") 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 |
| Methods inherited from interface com.sas.PublicClonable |
|---|
clone |
| 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 PromptDefinitionInterfaceisRequired in class PromptDefinitionPromptDefinitionInterface.isRequired()public void setRequired(boolean required)
setRequired in interface MutableRequiredDefinitionInterfacerequired - whether the user will be required to enter a value for this prompt before continuing
in the application
public boolean isPromptValueValid(java.lang.Object value,
java.util.Locale locale)
isPromptValueValid in interface com.sas.prompts.definitions.PromptDefinitionV2InterfaceisPromptValueValid in class PromptDefinitionPromptDefinitionV2Interface.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 PromptDefinitionInterfacegetPromptValueValidationErrors in class PromptDefinitionvalue - 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 PromptDefinitionInterfacevalidateDefinition in class PromptDefinitionlocale - Locale
ValidationEntry objects or an empty
collection if no errors were found.PromptDefinitionInterface.validateDefinition(Locale)public com.sas.datatypes.DataTypeInterface getPromptDataType()
getPromptDataType in interface PromptDefinitionInterfacegetPromptDataType in class PromptDefinitionPromptDefinitionInterface.getPromptDataType()
public void consumeRelatedObjects(com.sas.util.xmlpersist.RelatedObjectListsHolder roHolder)
throws org.xml.sax.SAXException
PromptDefinition
consumeRelatedObjects in interface com.sas.util.xmlpersist.PersistenceInterfaceconsumeRelatedObjects in class PromptDefinitionorg.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.AttributeConfigurationInterfaceconfigureAttributes in class PromptDefinitionpublic com.sas.storage.valueprovider.ValueProviderInterface getColorProvider()
getColorProvider in interface com.sas.prompts.definitions.ColorDefinitionV2Interfacepublic com.sas.storage.valueprovider.ValueProviderInterface getDefaultColorProvider()
getDefaultColorProvider in interface com.sas.prompts.definitions.ColorDefinitionV2Interfacepublic void setColorProvider(com.sas.storage.valueprovider.ValueProviderInterface colorProvider)
setColorProvider in interface com.sas.prompts.definitions.MutableColorDefinitionV2InterfacecolorProvider - public java.lang.String getVersion()
getVersion in interface com.sas.models.VersionInterfacegetVersion in class PromptDefinition
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||