|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValueModifier
Interface class for value modifiers. The value modifiers are used to search and replace in the Address Book.
Nested Class Summary | |
---|---|
static class |
ValueModifier.Modifier
Enumeration which contains every available ValueModifier. |
Method Summary | |
---|---|
boolean |
appliesToProperty(ContactProperty prop,
java.lang.Class<?> cl)
Specifies whether or not this ValueModifier can be applied on a given ContactProperty. |
java.lang.String |
getDescriptionForParameter(int index,
java.lang.Class<?> cl,
ContactProperty replaceProperty)
Returns the description text for the parameter at a specified index |
javax.swing.JComponent |
getEditorForParameter(int index,
java.lang.Class<?> cl,
ContactProperty replaceProperty,
java.awt.event.KeyListener l)
Returns the editing component for the given parameter index. |
boolean |
getEditorIncludesDescription(int index,
java.lang.Class<?> cl)
Specifies whether the editing component includes its description text or not. |
java.lang.Object |
getModifiedValue(java.lang.Object initialValue,
java.lang.Class<?> cl)
Modifies a value and returns the modified value. |
java.lang.String |
getModifierName(java.lang.Class<?> cl)
Returns a human readable text representation for this ValueModifier |
java.lang.Object |
getObjectForComponent(int parameterIndex,
javax.swing.JComponent comp,
java.lang.Class<?> cl)
Returns the Object matching the class returned by getParameterClass(int, Class) , containing the values entered in
the editor returned by the
getEditorForParameter(int, Class, ContactProperty, KeyListener) . |
java.lang.Class<?> |
getParameterClass(int index,
java.lang.Class<?> cl)
Returns the Class of the parameter at a specified index |
int |
getParameterCount(java.lang.Class<?> cl)
Returns the count of the parameters this ValueModifier needs. |
void |
setParameter(int index,
java.lang.Object value,
java.lang.Class<?> cl)
Sets the parameter at a given index |
Method Detail |
---|
java.lang.String getModifierName(java.lang.Class<?> cl)
cl
- Class of the value to modify
java.lang.Object getModifiedValue(java.lang.Object initialValue, java.lang.Class<?> cl)
initialValue
- Value to modifycl
- Class of the value to modify
int getParameterCount(java.lang.Class<?> cl)
cl
- Class of the value to modify
java.lang.String getDescriptionForParameter(int index, java.lang.Class<?> cl, ContactProperty replaceProperty)
index
- Parameter indexcl
- Class of the value to modifyreplaceProperty
- Contact property to modify
java.lang.Class<?> getParameterClass(int index, java.lang.Class<?> cl)
index
- Parameter indexcl
- Class of the value to modify
void setParameter(int index, java.lang.Object value, java.lang.Class<?> cl)
index
- Parameter indexcl
- Class of the value to modifyvalue
- New valueboolean appliesToProperty(ContactProperty prop, java.lang.Class<?> cl)
prop
- ContactProperty to modifycl
- Class of the value to modify
javax.swing.JComponent getEditorForParameter(int index, java.lang.Class<?> cl, ContactProperty replaceProperty, java.awt.event.KeyListener l)
getObjectForComponent(int, JComponent, Class)
method is called.
index
- Parameter indexcl
- Class of the value to modifyreplaceProperty
- Contact property to modifyl
- KeyListener to be added to the editor
boolean getEditorIncludesDescription(int index, java.lang.Class<?> cl)
index
- Parameter indexcl
- Class of the value to modify
java.lang.Object getObjectForComponent(int parameterIndex, javax.swing.JComponent comp, java.lang.Class<?> cl)
getParameterClass(int, Class)
, containing the values entered in
the editor returned by the
getEditorForParameter(int, Class, ContactProperty, KeyListener)
.
parameterIndex
- Parameter indexcomp
- Editing componentcl
- Class of the value to modify
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |