|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.prompts.definitions.BaseFileDefinition
public abstract class BaseFileDefinition
Base class for prompts which allow the user to specify a file location.
| Field Summary |
|---|
| Fields inherited from interface com.sas.prompts.definitions.FileSelectionInterface |
|---|
DIRECTORIES_ONLY, FILES_AND_DIRECTORIES, FILES_ONLY |
| Constructor Summary | |
|---|---|
BaseFileDefinition()
Constructor |
|
BaseFileDefinition(java.lang.String promptName)
Constructor |
|
| Method Summary | |
|---|---|
void |
configureAttributes(java.util.Map<java.lang.String,?> options,
java.util.Map<java.lang.String,?> context)
|
java.util.List |
getAttributeDescriptors(java.util.Locale locale)
|
int |
getFileSelectionMode()
Returns the selection mode of the prompt. |
java.util.List<java.lang.String> |
getFileTypes()
Returns the list of file types to allow the user to select from. |
java.lang.String |
getLogicalServerName()
Returns the logical name of the server that files can be specified from. |
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. |
boolean |
isPromptValueValid(java.lang.Object value,
java.util.Locale locale)
Returns whether the specified value is valid for the configuration of the prompt. |
boolean |
isRequired()
Returns whether the user will be required to enter a value for this prompt before continuing in the application |
void |
setFileSelectionMode(int fileSelectionMode)
Sets the selection mode of the prompt. |
void |
setFileTypes(java.util.List<java.lang.String> fileTypes)
Sets the list of file types to allow the user to select from. |
void |
setLogicalServerName(java.lang.String logicalServerName)
Sets the logical name of the server that files can be specified from. |
void |
setRequired(boolean required)
Sets whether the user will be required to enter a value for this prompt before continuing in the application |
| Constructor Detail |
|---|
public BaseFileDefinition()
public BaseFileDefinition(java.lang.String promptName)
promptName - The name of the prompt| Method Detail |
|---|
public boolean isRequired()
isRequired in interface PromptDefinitionInterfaceisRequired in class PromptDefinitionPromptDefinitionInterface.isRequired()public void setRequired(boolean required)
required - 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 PromptDefinitionvalue - The value to check for validity
PromptDefinitionInterface.isPromptValueValid(Object)
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.lang.String getLogicalServerName()
getLogicalServerName in interface FileSelectionInterfaceFileSelectionInterface.getLogicalServerName()public void setLogicalServerName(java.lang.String logicalServerName)
setLogicalServerName in interface MutableFileSelectionInterfacelogicalServerName - the name of the logical serverMutableFileSelectionInterface.setLogicalServerName(String)public java.util.List<java.lang.String> getFileTypes()
getFileTypes in interface FileSelectionInterfaceFileSelectionInterface.getFileTypes()public void setFileTypes(java.util.List<java.lang.String> fileTypes)
setFileTypes in interface MutableFileSelectionInterfacefileTypes - the list of file types to allow the user to select from.MutableFileSelectionInterface.setFileTypes(List)public int getFileSelectionMode()
getFileSelectionMode in interface FileSelectionInterfaceFileSelectionInterface.getFileSelectionMode()public void setFileSelectionMode(int fileSelectionMode)
setFileSelectionMode in interface MutableFileSelectionInterfacefileSelectionMode - the new selection mode of the promptMutableFileSelectionInterface.setFileSelectionMode(int)
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 java.util.List getAttributeDescriptors(java.util.Locale locale)
getAttributeDescriptors in interface com.sas.util.AttributeDescriptiongetAttributeDescriptors in class PromptDefinition
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||