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

Variable Index

 o dirVec
 o fileVec
 o OPEN
 o SAVE

Constructor Index

 o PO_DBDialog(String)
Constructor for PO_DBDialog
 o PO_DBDialog(String, int, PersistentObject)
Constructor for PO_DBDialog
 o PO_DBDialog(String, Vector)
Constructor for PO_DBDialog

Method Index

 o accessContent(String, Vector)
Action taken when a user opens/accesses a particular object (Can/should be overloaded by user/application developer)
 o action(Event, Object)
 o handleEvent(Event)
 o insets()
 o makeLabel(String, GridBagLayout, GridBagConstraints)
 o makeList(List, GridBagLayout, GridBagConstraints)
 o makePanel(Panel, GridBagLayout, GridBagConstraints)
 o makeTextField(TextField, GridBagLayout, GridBagConstraints)
 o 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)

Variables

 o OPEN
  public final static int OPEN
 o SAVE
  public final static int SAVE
 o dirVec
  protected Vector dirVec
 o fileVec
  protected Vector fileVec

Constructors

 o 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
 o PO_DBDialog
  public PO_DBDialog(String user)
Constructor for PO_DBDialog
Parameters:
user - User name
 o 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)

Methods

 o 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
 o handleEvent
  public boolean handleEvent(Event evt)
Overrides:
handleEvent in class Component
 o action
  public boolean action(Event e,
                        Object arg)
Overrides:
action in class Component
 o 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
 o insets
  public Insets insets()
Overrides:
insets in class Container
 o makeLabel
  protected void makeLabel(String name,
                           GridBagLayout gridbag,
                           GridBagConstraints c)
 o makeTextField
  protected void makeTextField(TextField tf,
                               GridBagLayout gridbag,
                               GridBagConstraints c)
 o makeList
  protected void makeList(List l,
                          GridBagLayout gridbag,
                          GridBagConstraints c)
 o makePanel
  protected void makePanel(Panel p,
                           GridBagLayout gridbag,
                           GridBagConstraints c)