com.inet.html.views.form
Class FormRegistry

java.lang.Object
  extended by com.inet.html.views.form.FormRegistry

public class FormRegistry
extends java.lang.Object

Central register for any form and any Object, which might require a form to work correctly. Every ControlView has to register itself here.
This class will create form containers on demand when a new control is registered.


Constructor Summary
FormRegistry()
           
 
Method Summary
 void addControl(ControlView view)
          Registers a control view.
 void clear()
          Clears all registered forms
 void removeControl(ControlView view)
          Deregisters a control.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormRegistry

public FormRegistry()
Method Detail

addControl

public void addControl(ControlView view)
Registers a control view. The parent form of the control will be searched automatically.

Parameters:
view - the view to register

removeControl

public void removeControl(ControlView view)
Deregisters a control. This method has to be called whenever a control view becomes depreciated.

Parameters:
view - the control to remove

clear

public void clear()
Clears all registered forms