public class EventSetModel extends java.lang.Object implements BaliWizardState
| Constructor and Description | 
|---|
EventSetModel(Context context)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property-change listener. 
 | 
void | 
commitWizardState()
Called by the BaliWizard to finalize and commit its current
 state. 
 | 
oracle.bali.ewt.dialog.JEWTDialog | 
getBuilderDialog()
Gets the wizard dialog used for editing this model. 
 | 
java.lang.String | 
getEventListenerClassName()
Gets the qualified name of the EventListener class represented by
 this model. 
 | 
java.lang.String | 
getEventObjectClassName()
Gets the qualified name of the EventObject class represented by this model. 
 | 
java.lang.String | 
getEventObjectName(java.lang.String eventName)
Gets a event object class name using the event name as the prefix. 
 | 
java.lang.String | 
getEventSetName()
Gets the name of the event set. 
 | 
java.lang.String | 
getListenerName(java.lang.String eventName)
Gets a listener class name using the event name as the prefix. 
 | 
java.lang.String | 
getPackage()
Gets the package where the EventListener and EventObject classes
 will be generated. 
 | 
Project | 
getProject()
Gets the active project. 
 | 
void | 
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property-change listener. 
 | 
void | 
reportError(java.lang.String title,
           java.lang.String msg,
           java.lang.String helpID)
Delegates to the builder model to show an error message. 
 | 
void | 
setBuilderDialog(oracle.bali.ewt.dialog.JEWTDialog dlg)
Sets the wizard dialog used for editing this model. 
 | 
void | 
setEvents(java.lang.String[] events)
Sets the list of notification events to add to the event set. 
 | 
void | 
setEventSetName(java.lang.String eventName)
Sets the event set name and sets the EventListener and EventObject class
 names. 
 | 
void | 
setPackage(java.lang.String pkg)
Sets the package where the EventListener and EventObject classes
 will be generated. 
 | 
java.lang.String | 
toEventName(java.lang.String text)
Formats the supplied text as an event name by simply converting the 
 first character of the text to uppercase. 
 | 
public EventSetModel(Context context)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
public java.lang.String getEventListenerClassName()
public java.lang.String getEventObjectClassName()
public oracle.bali.ewt.dialog.JEWTDialog getBuilderDialog()
public void setBuilderDialog(oracle.bali.ewt.dialog.JEWTDialog dlg)
dlg - a dialog; must not be nullpublic java.lang.String getListenerName(java.lang.String eventName)
eventName - the event namepublic java.lang.String getEventObjectName(java.lang.String eventName)
eventName - the event namepublic void reportError(java.lang.String title,
                        java.lang.String msg,
                        java.lang.String helpID)
public void commitWizardState()
BaliWizardStatecommitWizardState in interface BaliWizardStatepublic Project getProject()
public void setPackage(java.lang.String pkg)
                throws java.lang.IllegalArgumentException
pkg - the package namejava.lang.IllegalArgumentExceptionpublic java.lang.String getPackage()
public void setEvents(java.lang.String[] events)
events - a non-null array of event notificationspublic java.lang.String getEventSetName()
public void setEventSetName(java.lang.String eventName)
                     throws java.lang.IllegalArgumentException
eventName - a non-null stringjava.lang.IllegalArgumentExceptionpublic java.lang.String toEventName(java.lang.String text)
text - a non-null string