org.hudsonci.maven.plugin.ui.gwt.buildinfo.internal
Class ModuleInfoPickerPresenterImpl

java.lang.Object
  extended by org.hudsonci.maven.plugin.ui.gwt.buildinfo.internal.ModuleInfoPickerPresenterImpl
All Implemented Interfaces:
ModuleInfoPickerPresenter

@Singleton
public class ModuleInfoPickerPresenterImpl
extends Object
implements ModuleInfoPickerPresenter

Default implementation of ModuleInfoPickerPresenter.

Since:
2.1.0
Author:
Jamie Whitehouse

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hudsonci.maven.plugin.ui.gwt.buildinfo.ModuleInfoPickerPresenter
ModuleInfoPickerPresenter.ModuleInfoPickerView
 
Constructor Summary
ModuleInfoPickerPresenterImpl(ModuleInfoPickerPresenter.ModuleInfoPickerView view, com.google.gwt.event.shared.EventBus eventBus, ModuleDataProvider mdp)
           
 
Method Summary
 ModuleInfoPickerPresenter.ModuleInfoPickerView bind()
          Configures the view.
 void moduleSelected(MavenProjectDTO pickedModule)
          Indicates that the given module was selected.
 void refreshSelection()
          Make up for the fact that changing the underlying data does not change the selection state when the keys are the same.
 void selectModule(MavenProjectDTO module)
          Select the specified module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleInfoPickerPresenterImpl

@Inject
public ModuleInfoPickerPresenterImpl(ModuleInfoPickerPresenter.ModuleInfoPickerView view,
                                            com.google.gwt.event.shared.EventBus eventBus,
                                            ModuleDataProvider mdp)
Method Detail

bind

public ModuleInfoPickerPresenter.ModuleInfoPickerView bind()
Description copied from interface: ModuleInfoPickerPresenter
Configures the view. AKA Binds the presenter to the view.

Specified by:
bind in interface ModuleInfoPickerPresenter
Returns:
the configured widget

selectModule

public void selectModule(MavenProjectDTO module)
Description copied from interface: ModuleInfoPickerPresenter
Select the specified module. Used to communicate selection change from other components. Callers should not invoke selectModule and moduleSelected, the latter will be called as needed when this method is invoked.

Specified by:
selectModule in interface ModuleInfoPickerPresenter

moduleSelected

public void moduleSelected(MavenProjectDTO pickedModule)
Description copied from interface: ModuleInfoPickerPresenter
Indicates that the given module was selected. Used to wire up the view selection events to the presenters logic.

Specified by:
moduleSelected in interface ModuleInfoPickerPresenter
Parameters:
pickedModule - the module that was selected or null if one was deselected.

refreshSelection

public void refreshSelection()
Make up for the fact that changing the underlying data does not change the selection state when the keys are the same. If the selected module is still selected let listeners know.

Specified by:
refreshSelection in interface ModuleInfoPickerPresenter


Copyright © 2004-2011 Hudson. All Rights Reserved.