|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityAttributeValueModelInterface
This class defines the interface between the EntityAttributeValueSelectorAdapter and its underlying Entity model. These methods provide all of the functionality for the EntityAttributeValueSelectorAdapter.
Field Summary | |
---|---|
static int |
BOOLEAN_SELECTION
Identifies a Boolean Editor |
static int |
BOOLEAN_TYPE
Constant for a boolean SQL type |
static int |
COLOR_STRING_TYPE
Constant for a Color Type defined with a name of "Color" and a String SQL type |
static int |
DATE_SELECTION
Identifies a Date Editor |
static int |
DATE_TYPE
Constant for a Date SQL type |
static int |
DOUBLE_TYPE
Constant for a double SQL type |
static int |
FLOAT_TYPE
Constant for a float SQL type |
static int |
INT_TYPE
Constant for an int SQL type |
static java.lang.String |
JSP_MULTI_VALUE_LIST_DEFAULT_EDITOR
Default JSP Multiple-Value-Selection List Editor |
static java.lang.String |
JSP_SINGLE_VALUE_LIST_DEFAULT_EDITOR
Default JSP Single-Value-Selection List Editor |
static java.lang.String |
JSP_TEXT_ENTRY_DEFAULT_EDITOR
Default JSP Text Entry Editor |
static int |
MULTIPLE_LIST_SELECTION
Identifies a Multiple-Value-Selection List Editor |
static int |
SINGLE_LIST_SELECTION
Identifies a Single-Value-Selection List Editor |
static int |
STRING_TYPE
Constant for a String SQL type |
static java.lang.String |
SUPPLEMENTAL_PROPERTY_DATA_ITEM
Constants for the data item of a BusinessQuery |
static java.lang.String |
SUPPLEMENTAL_PROPERTY_FILTER_NAME
Constant for the filter name of a BusinessQuery |
static java.lang.String |
SWING_BOOLEAN_DEFAULT_EDITOR
Default Swing Boolean Editor |
static java.lang.String |
SWING_DATE_DEFAULT_EDITOR
Default Swing Date Editor |
static java.lang.String |
SWING_MULTI_VALUE_LIST_DEFAULT_EDITOR
Default Swing Multiple-Value-Selection List Editor |
static java.lang.String |
SWING_SINGLE_VALUE_LIST_DEFAULT_EDITOR
Default Swing Single-Value-Selection List Editor |
static java.lang.String |
SWING_TEXT_ENTRY_DEFAULT_EDITOR
Default Swing Text Entry Editor |
static int |
TEXT_ENTRY
Identifies a Text Entry Editor |
static int |
TIME_TYPE
Constant for a Time SQL type |
static int |
TIMESTAMP_TYPE
Constant for a Timestamp SQL type |
static int |
UNKNOWN_TYPE
Constant for an unknown SQL type |
Method Summary | |
---|---|
void |
cancel()
Cancels all property value changes. |
void |
commitChanges()
Commits the property value changes to the Entity model. |
java.lang.Object |
getApplicationData()
Used to retrieve application specific data. |
AttributeDescriptorInterface |
getAttributeDescriptor(java.lang.String propertyName)
Returns an instance of the AttributeDescriptor referenced by the parameter, propertyName |
java.util.List |
getAvailableValues(java.lang.String propertyName)
Returns a list of one or more values that function as values that can be assigned to the property. |
java.lang.String |
getEditor(java.lang.String propertyName,
java.lang.String context)
Returns the editor associated with the property, propertyName, and context, context. |
java.lang.String |
getEditorInstructionText(java.lang.String propertyName)
Returns text that is displayed in a property sheet to assist the user in entering a valid value for the property. |
java.util.Map |
getProperties(java.util.Locale locale)
Returns a map of property names and labels using the locale speficied in locale. |
java.util.List |
getSelectedValues(java.lang.String propertyName)
Returns a list of one or more values that are the last valid values assigned to the property. |
java.util.Map |
getSupplementalProperties(java.lang.String propertyName)
Returns the supplemental properties associated with the property. |
int |
getType(java.lang.String propertyName)
Returns a value that corresponds to the SQL data type of the property. |
boolean |
isRequired(java.lang.String propertyName)
Returns true if a non-null or non-emptyString value is required for the property. |
void |
setApplicationData(java.lang.Object data)
Used to store application specific data. |
void |
setEditorInstructionText(java.util.Map editorInformationText)
Set the text that is displayed in a property sheet to assist the user in entering valid values for properties. |
void |
setValue(java.lang.String propertyName,
java.lang.Object value)
Sets the value of a property. |
boolean |
validateValue(java.lang.Object value,
java.lang.String propertyName,
boolean throwException)
Returns a boolean indicating whether the value is valid for the property. |
Field Detail |
---|
static final int TEXT_ENTRY
static final int SINGLE_LIST_SELECTION
static final int MULTIPLE_LIST_SELECTION
static final int BOOLEAN_SELECTION
static final int DATE_SELECTION
static final java.lang.String SUPPLEMENTAL_PROPERTY_FILTER_NAME
static final java.lang.String SUPPLEMENTAL_PROPERTY_DATA_ITEM
static final int STRING_TYPE
static final int INT_TYPE
static final int DOUBLE_TYPE
static final int FLOAT_TYPE
static final int BOOLEAN_TYPE
static final int DATE_TYPE
static final int COLOR_STRING_TYPE
static final int TIME_TYPE
static final int TIMESTAMP_TYPE
static final int UNKNOWN_TYPE
static final java.lang.String JSP_TEXT_ENTRY_DEFAULT_EDITOR
static final java.lang.String JSP_SINGLE_VALUE_LIST_DEFAULT_EDITOR
static final java.lang.String JSP_MULTI_VALUE_LIST_DEFAULT_EDITOR
static final java.lang.String SWING_TEXT_ENTRY_DEFAULT_EDITOR
static final java.lang.String SWING_SINGLE_VALUE_LIST_DEFAULT_EDITOR
static final java.lang.String SWING_MULTI_VALUE_LIST_DEFAULT_EDITOR
static final java.lang.String SWING_BOOLEAN_DEFAULT_EDITOR
static final java.lang.String SWING_DATE_DEFAULT_EDITOR
Method Detail |
---|
java.util.Map getProperties(java.util.Locale locale)
locale
- the locale with which the label is associated.
This parameter may be null.
void setValue(java.lang.String propertyName, java.lang.Object value)
propertyName
- name of the propertyvalue
- value of the propertyjava.util.List getAvailableValues(java.lang.String propertyName)
propertyName
- name of the property
void commitChanges()
void cancel()
java.util.List getSelectedValues(java.lang.String propertyName)
propertyName
- name of the property
java.lang.String getEditor(java.lang.String propertyName, java.lang.String context)
propertyName
- name of the propertycontext
- the context in which the editor is instantiated/used;
it is a platform specification from EntityContextInterface
java.util.Map getSupplementalProperties(java.lang.String propertyName)
propertyName
- name of the property
java.lang.String getEditorInstructionText(java.lang.String propertyName)
propertyName
- name of the property
void setEditorInstructionText(java.util.Map editorInformationText)
editorInformationText
- map of sql data type and corresponding
textvoid setApplicationData(java.lang.Object data)
data
- to be stored with this object for application usejava.lang.Object getApplicationData()
int getType(java.lang.String propertyName)
propertyName
- name of the property
AttributeDescriptorInterface getAttributeDescriptor(java.lang.String propertyName)
propertyName
- name of the AttributeDescriptor
boolean validateValue(java.lang.Object value, java.lang.String propertyName, boolean throwException)
value
- value to be validated (may be a single Object or a list of Objects)propertyName
- name of the propertythrowException
- indicates whether to throw an exception if the value is not valid
java.lang.IllegalArgumentException
- if throwException is true and an error occursboolean isRequired(java.lang.String propertyName)
propertyName
- name of the property
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |