Class FormControllerFormEvent
- java.lang.Object
-
- java.util.EventObject
-
- net.sf.jguiraffe.gui.builder.event.BuilderEvent
-
- net.sf.jguiraffe.gui.builder.window.ctrl.FormControllerEvent
-
- net.sf.jguiraffe.gui.builder.window.ctrl.FormControllerFormEvent
-
- All Implemented Interfaces:
Serializable
public class FormControllerFormEvent extends FormControllerEvent
A specialized
FormControllerEvent
class for events related to the form associated with aFormController
.When the form associated with a
FormController
is closed the controller fires an event of this type. From the properties of this event listeners can find out whether the form was committed (e.g. the OK button was clicked) or canceled. A listener could then do something with the data entered by the user. For instance, if the form was committed, a listener could save the data somewhere.- Version:
- $Id: FormControllerFormEvent.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FormControllerFormEvent.Type
An enumeration class defining the possible types ofFormControllerFormEvent
events.
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description FormControllerFormEvent(FormController ctrl, FormControllerFormEvent.Type t)
Creates a new instance ofFormControllerFormEvent
and initializes it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormControllerFormEvent.Type
getType()
Returns the type of this event.-
Methods inherited from class net.sf.jguiraffe.gui.builder.window.ctrl.FormControllerEvent
getFormController
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
FormControllerFormEvent
public FormControllerFormEvent(FormController ctrl, FormControllerFormEvent.Type t)
Creates a new instance ofFormControllerFormEvent
and initializes it.- Parameters:
ctrl
- theFormController
which fired this eventt
- the type the event
-
-
Method Detail
-
getType
public FormControllerFormEvent.Type getType()
Returns the type of this event.- Returns:
- the type of this event
-
-