|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.nodes.expectation.part.wizard.ElementListSelector
public class ElementListSelector
A class used to select matching elements from a supplied array of Objects,
for use by AbstractFieldEditor instances.
| Constructor Summary | |
|---|---|
ElementListSelector(AbstractFieldEditor editor,
java.lang.String prompt,
java.lang.String fieldName,
boolean matchRequired,
org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.viewers.ILabelProvider labelProvider)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
setElements(java.lang.Object[] elements)
Sets the Array of elements for the FilteredList. |
void |
setFilter(java.lang.String filter)
Sets the value for the filter used to look for matches. |
protected void |
updateSelection(java.lang.Object[] selection,
java.lang.String textValue)
Checks for a valid selection in the FilteredList, updates the
bean if there is a valid selection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementListSelector(AbstractFieldEditor editor,
java.lang.String prompt,
java.lang.String fieldName,
boolean matchRequired,
org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.viewers.ILabelProvider labelProvider)
editor - the AbstractFieldEditor enclosing this
instance.fieldName - the name of the Field belonging to the
SignaturePartBean being edited.matchRequired - whether a matching value from the list must be
selected, or any value entered into the text control is acceptable.parent - the Composite within the
AbstractFieldEditor that encloses this instance.labelProvider - the ILabelProvider used for rendering
the elements in the list.| Method Detail |
|---|
public void setElements(java.lang.Object[] elements)
FilteredList.
elements - the Array of elements for the FilteredList.public void setFilter(java.lang.String filter)
Text control used for
entering matchable values and updates the status.
filter - the value for the filter used to look for matches.
protected void updateSelection(java.lang.Object[] selection,
java.lang.String textValue)
FilteredList, updates the
bean if there is a valid selection.
selection - the current selection in the FilteredList.textValue - the current text in the Text control.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||