|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.PersistentDataDialog
public class PersistentDataDialog
Provides common L&F for managing persistent data. Calling routine must implement PersistentDataManager interface that provides the services required.
PersistentDataManager| Constructor Summary | |
|---|---|
PersistentDataDialog(RootPaneContainer parent,
boolean modal,
String name,
JComponent view,
JComponent list,
PersistentDataManager manager)
Constructor. |
|
PersistentDataDialog(RootPaneContainer parent,
boolean modal,
String name,
JComponent view,
JComponent list,
PersistentDataManager manager,
String helpId)
Constructor. |
|
PersistentDataDialog(String name,
JComponent view,
JComponent list,
PersistentDataManager manager)
Create a new PersistentDataDialog |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Handle action events |
boolean |
checkSaveOK(String startingId,
String id)
Utility to provide validation of objects the user wants to save |
void |
close()
Close this widget |
void |
destroy()
Called to cleanup. |
Component |
getContents()
Get the GUI contents |
JDialog |
getDialog()
Get the JDialog for this |
protected void |
init(String name,
JComponent view,
JComponent list,
PersistentDataManager manager,
boolean doWindow)
Initialize the class |
protected void |
init(String name,
JComponent view,
JComponent list,
PersistentDataManager manager,
boolean doWindow,
String helpId)
Initialize the class |
void |
setCurrent(String name)
Set the name |
void |
setEnabled(boolean enabled)
Set this widget enabled |
void |
setHelpId(String newId)
Set the help id for this window. |
void |
show()
Show the dialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentDataDialog(String name,
JComponent view,
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 required
public PersistentDataDialog(RootPaneContainer parent,
boolean modal,
String name,
JComponent view,
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 required
public PersistentDataDialog(RootPaneContainer parent,
boolean modal,
String name,
JComponent view,
JComponent list,
PersistentDataManager manager,
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 clicked| Method Detail |
|---|
public Component getContents()
protected void init(String name,
JComponent view,
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 window
protected void init(String name,
JComponent view,
JComponent list,
PersistentDataManager manager,
boolean doWindow,
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 JDialog getDialog()
public void close()
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - event to handlepublic void setHelpId(String newId)
newId - new help IDpublic void setEnabled(boolean enabled)
enabled - true to enablepublic void setCurrent(String name)
name - new name
public boolean checkSaveOK(String startingId,
String id)
startingId - the starting name of the edited objectid - the current name of the edited object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||