org.mockcentral.editor.nodes.expectation.part.wizard
Class CollectionFieldEditor

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.mockcentral.editor.nodes.expectation.part.wizard.AbstractFieldEditor
                      extended by org.mockcentral.editor.nodes.expectation.part.wizard.CollectionFieldEditor
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class CollectionFieldEditor
extends AbstractFieldEditor

Editor used to set values for SignaturepartBean instances modeling Collection value type objects.

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.mockcentral.editor.nodes.expectation.part.wizard.AbstractFieldEditor
bean, page, valueClassNameEditor, valueClassNameOptions, valueClassNamePromptLabel, valueEditor, valueOptions, valuePromptLabel
 
Fields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandle
 
Fields inherited from class org.eclipse.swt.widgets.Widget
handle
 
Constructor Summary
CollectionFieldEditor(SelectSignaturePartTypePage page, org.mockcentral.editor.nodes.fixture.FixtureNode fixtureNode, org.mockcentral.server.SignaturePartBean bean, org.eclipse.swt.widgets.Composite parent)
          Creates a new instance.
 
Method Summary
protected  void createCollectionEntriesEditor()
          Creates t editor for the collection entries.
protected  void createEditorContent(org.eclipse.swt.widgets.Composite parent)
          Creates the editor contents.
protected  void createValueClassNameEditor(java.lang.Integer... args)
          Creates the Composite used to edit the value class name of the SignaturePartBean.
protected  void createValueEditor(java.lang.Integer... args)
          Creates the Composite used to edit the value of the SignaturePartBean.
protected  void updateControls()
          Notification that the various controls within the editor(s) should be updated with new bean data.
protected  void updateValueClassname()
          Updates the value class name to reflect the user's new choice from the Combo items.
 
Methods inherited from class org.mockcentral.editor.nodes.expectation.part.wizard.AbstractFieldEditor
getDialog, setBean, setDefaultValue, setFocusOn, setModelFieldValue, setModelFieldValue, setNoMatchingElementErrorMessage
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionFieldEditor

public CollectionFieldEditor(SelectSignaturePartTypePage page,
                             org.mockcentral.editor.nodes.fixture.FixtureNode fixtureNode,
                             org.mockcentral.server.SignaturePartBean bean,
                             org.eclipse.swt.widgets.Composite parent)
Creates a new instance.

Parameters:
page - the enclosing SelectSignaturePartTypePage.
bean - the SignaturePartBean being edited.
parent - the parent Composite.
Method Detail

createEditorContent

protected void createEditorContent(org.eclipse.swt.widgets.Composite parent)
Description copied from class: AbstractFieldEditor
Creates the editor contents.

Overrides:
createEditorContent in class AbstractFieldEditor
Parameters:
parent - the parent Composite belonging to the wizard page.

createValueClassNameEditor

protected void createValueClassNameEditor(java.lang.Integer... args)
Description copied from class: AbstractFieldEditor
Creates the Composite used to edit the value class name of the SignaturePartBean. Not all subclasses will require this method.

Overrides:
createValueClassNameEditor in class AbstractFieldEditor
Parameters:
args - the number of columns for the layout for the Composite. If not supplied the value will be 1.

createValueEditor

protected void createValueEditor(java.lang.Integer... args)
Description copied from class: AbstractFieldEditor
Creates the Composite used to edit the value of the SignaturePartBean. Not all subclasses will require this method.

Overrides:
createValueEditor in class AbstractFieldEditor
Parameters:
args - the number of columns for the layout for the Composite. If not supplied the value will be 1.

createCollectionEntriesEditor

protected void createCollectionEntriesEditor()
Creates t editor for the collection entries.


updateControls

protected void updateControls()
Description copied from class: AbstractFieldEditor
Notification that the various controls within the editor(s) should be updated with new bean data. This method updates the label(s) prompting for user input for the bean's value class name and/or value(as appropriate), accessing the SignaturePartUtil class to get the prompts. Subclasses will implement additional any necessary initialization of their editor controls.

Overrides:
updateControls in class AbstractFieldEditor

updateValueClassname

protected void updateValueClassname()
Updates the value class name to reflect the user's new choice from the Combo items.