Class PO_DBDialog
Class PO_DBDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----PO_DBDialog
- public class PO_DBDialog
- extends Frame
-
dirVec
-
-
fileVec
-
-
OPEN
-
-
SAVE
-
-
PO_DBDialog(String)
- Constructor for PO_DBDialog
-
PO_DBDialog(String, int, PersistentObject)
- Constructor for PO_DBDialog
-
PO_DBDialog(String, Vector)
- Constructor for PO_DBDialog
-
accessContent(String, Vector)
- Action taken when a user opens/accesses a particular object
(Can/should be overloaded by user/application developer)
-
action(Event, Object)
-
-
handleEvent(Event)
-
-
insets()
-
-
makeLabel(String, GridBagLayout, GridBagConstraints)
-
-
makeList(List, GridBagLayout, GridBagConstraints)
-
-
makePanel(Panel, GridBagLayout, GridBagConstraints)
-
-
makeTextField(TextField, GridBagLayout, GridBagConstraints)
-
-
saveEntry(String, DirObject)
- Action to be taken by a save
(can/should be overloaded by users)
(Right now, for illustration purposes, it connects a DataObject
with the user input parameter to the DataObject specified)
OPEN
public final static int OPEN
SAVE
public final static int SAVE
dirVec
protected Vector dirVec
fileVec
protected Vector fileVec
PO_DBDialog
public PO_DBDialog(String title,
Vector contentsVec)
- Constructor for PO_DBDialog
- Parameters:
- title - Title for the dialog box
- contentsVec - Initial Contents of the dialog box
PO_DBDialog
public PO_DBDialog(String user)
- Constructor for PO_DBDialog
- Parameters:
- user - User name
PO_DBDialog
public PO_DBDialog(String user,
int mode,
PersistentObject pObj)
- Constructor for PO_DBDialog
- Parameters:
- user - User name
- mode - SAVE or OPEN
- pObj - Persistent Object to be saved (if any)
accessContent
protected void accessContent(String name,
Vector vec)
- Action taken when a user opens/accesses a particular object
(Can/should be overloaded by user/application developer)
- Parameters:
- name - Name of the item selected by the user
- vec - Vector of contents in the selected column
handleEvent
public boolean handleEvent(Event evt)
- Overrides:
- handleEvent in class Component
action
public boolean action(Event e,
Object arg)
- Overrides:
- action in class Component
saveEntry
protected void saveEntry(String nameStr,
DirObject dObj)
- Action to be taken by a save
(can/should be overloaded by users)
(Right now, for illustration purposes, it connects a DataObject
with the user input parameter to the DataObject specified)
- Parameters:
- nameStr - Name of the item to be saved
- dObj - DataObject that the item is to be attached to
insets
public Insets insets()
- Overrides:
- insets in class Container
makeLabel
protected void makeLabel(String name,
GridBagLayout gridbag,
GridBagConstraints c)
makeTextField
protected void makeTextField(TextField tf,
GridBagLayout gridbag,
GridBagConstraints c)
makeList
protected void makeList(List l,
GridBagLayout gridbag,
GridBagConstraints c)
makePanel
protected void makePanel(Panel p,
GridBagLayout gridbag,
GridBagConstraints c)