Interface ComponentController
-
- All Known Implementing Classes:
AbstractTableController,AdvancedSearchPage.DefaultListViewSelectorController,AdvancedSearchPage.DefaultSelectorAdvancedSearchController,CollectionSelectorController,CollectionUIEditorController,ContextAreaTableController,DefaultBrowserAdvancedSearchController,DefaultBrowserSectionTableController,DefaultBrowserTableController,DefaultListViewSelectorController,DefaultListViewSimpleSelectorController,DefaultMediaReferenceSelectorController,DefaultReferenceSelectorController,DefaultSelectorAdvancedSearchController,DefaultSimpleMediaReferenceSelectorController,DefaultSimpleReferenceSelectorController,DefaultSimpleSelectorAdvancedSearchController,DefaultTableController,EditorTableController,ReferenceCollectionEditorController
public interface ComponentControllerA component controller acts as a controller between view models and view components. Note: It is important that a controller which holds any references to view components directly or indirectly provides a properunregisterListeners()implementation. The method should be called each time the desktop is removed and needs to remove all references to view components, since these will no longer be valid. Example:
public class MySuperViewComponent implements DesktopRemovalAwareComponent
{
ComponentController myController = new MyComponentController(someView, someModel);
...
public void desktopRemoved(final Desktop desktop)
{
this.myController.unregisterListeners();
}
}
- See Also:
DesktopRemovalAwareComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize()Initialized this controller i.e.voidunregisterListeners()Removes all references to view components which are held by this controller.
-
-
-
Method Detail
-
unregisterListeners
void unregisterListeners()
Removes all references to view components which are held by this controller. Note: This method must be called each time the desktop has been removed to assure that no invalid view components are referenced.
-
initialize
void initialize()
Initialized this controller i.e. registers all required listeners etc.
-
-