public class PersistentDataDialog
extends java.lang.Object
implements java.awt.event.ActionListener
PersistentDataManager
Constructor and Description |
---|
PersistentDataDialog(javax.swing.RootPaneContainer parent,
boolean modal,
java.lang.String name,
javax.swing.JComponent view,
javax.swing.JComponent list,
PersistentDataManager manager)
Constructor.
|
PersistentDataDialog(javax.swing.RootPaneContainer parent,
boolean modal,
java.lang.String name,
javax.swing.JComponent view,
javax.swing.JComponent list,
PersistentDataManager manager,
java.lang.String helpId)
Constructor.
|
PersistentDataDialog(java.lang.String name,
javax.swing.JComponent view,
javax.swing.JComponent list,
PersistentDataManager manager)
Create a new PersistentDataDialog
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Handle action events
|
boolean |
checkSaveOK(java.lang.String startingId,
java.lang.String id)
Utility to provide validation of objects the user wants to save
|
void |
close()
Close this widget
|
void |
destroy()
Called to cleanup.
|
java.awt.Component |
getContents()
Get the GUI contents
|
javax.swing.JDialog |
getDialog()
Get the JDialog for this
|
protected void |
init(java.lang.String name,
javax.swing.JComponent view,
javax.swing.JComponent list,
PersistentDataManager manager,
boolean doWindow)
Initialize the class
|
protected void |
init(java.lang.String name,
javax.swing.JComponent view,
javax.swing.JComponent list,
PersistentDataManager manager,
boolean doWindow,
java.lang.String helpId)
Initialize the class
|
void |
setCurrent(java.lang.String name)
Set the name
|
void |
setEnabled(boolean enabled)
Set this widget enabled
|
void |
setHelpId(java.lang.String newId)
Set the help id for this window.
|
void |
show()
Show the dialog
|
public PersistentDataDialog(java.lang.String name, javax.swing.JComponent view, javax.swing.JComponent list, PersistentDataManager manager)
name
- name of managed components (eg "Projections").view
- shows a view of the selected objectlist
- manages the list of objectsmanager
- abstraction of the services requiredpublic PersistentDataDialog(javax.swing.RootPaneContainer parent, boolean modal, java.lang.String name, javax.swing.JComponent view, javax.swing.JComponent list, PersistentDataManager manager)
parent
- JFrame (application) or JApplet (applet)modal
- true for a modal dialogname
- name of managed components (eg "Projections").view
- shows a view of the selected objectlist
- manages the list of objectsmanager
- abstraction of the services requiredpublic PersistentDataDialog(javax.swing.RootPaneContainer parent, boolean modal, java.lang.String name, javax.swing.JComponent view, javax.swing.JComponent list, PersistentDataManager manager, java.lang.String helpId)
parent
- JFrame (application) or JApplet (applet)modal
- true for a modal dialogname
- name of managed components (eg "Projections").view
- shows a view of the selected objectlist
- manages the list of objectsmanager
- abstraction of the services requiredhelpId
- id for help page when help button is clickedpublic java.awt.Component getContents()
protected void init(java.lang.String name, javax.swing.JComponent view, javax.swing.JComponent list, PersistentDataManager manager, boolean doWindow)
name
- name of managed components (eg "Projections").view
- shows a view of the selected objectlist
- manages the list of objectsmanager
- abstraction of the services requireddoWindow
- true to show in a separate windowprotected void init(java.lang.String name, javax.swing.JComponent view, javax.swing.JComponent list, PersistentDataManager manager, boolean doWindow, java.lang.String helpId)
name
- name of managed components (eg "Projections").view
- shows a view of the selected objectlist
- manages the list of objectsmanager
- abstraction of the services requireddoWindow
- true to show in a separate windowhelpId
- id for help pagepublic void destroy()
public void show()
public javax.swing.JDialog getDialog()
public void close()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- event to handlepublic void setHelpId(java.lang.String newId)
newId
- new help IDpublic void setEnabled(boolean enabled)
enabled
- true to enablepublic void setCurrent(java.lang.String name)
name
- new namepublic boolean checkSaveOK(java.lang.String startingId, java.lang.String id)
startingId
- the starting name of the edited objectid
- the current name of the edited object