com.didkovsky.portview.awt
Class ViewFactoryAWT

java.lang.Object
  extended by com.didkovsky.portview.awt.ViewFactoryAWT
All Implemented Interfaces:
ViewFactory

public class ViewFactoryAWT
extends java.lang.Object
implements ViewFactory

Author:
Nick Didkovsky, (c) 2004 All rights reserved, Email: didkovn@mail.rockefeller.edu

Field Summary
 
Fields inherited from interface com.didkovsky.portview.ViewFactory
AWT, SWING
 
Constructor Summary
ViewFactoryAWT()
           
 
Method Summary
 PVButton createButton(java.lang.String text)
           
 PVCanvas createCanvas()
           
 PVCheckbox createCheckbox(java.lang.String text)
           
 PVCheckbox createCheckbox(java.lang.String text, boolean b)
           
 PVCheckbox createCheckbox(java.lang.String text, PVRadioGroup group, boolean b)
           
 PVCheckboxMenuItem createCheckboxMenuItem(java.lang.String text, boolean b)
           
 PVChoice createChoice()
           
 PVDialog createDialog(java.awt.Frame owner, boolean modal)
           
 PVFrame createFrame()
           
 PVFrame createFrame(java.lang.String title)
           
 PVLabel createLabel(java.lang.String string)
           
 PVLabel createLabel(java.lang.String text, int alignment)
           
 PVMenu createMenu(java.lang.String text)
           
 PVMenuBar createMenuBar()
           
 PVMenuItem createMenuItem(java.lang.String text)
           
 PVMenuItem createMenuItem(java.lang.String text, int shortcutKey)
           
 PVPanel createPanel()
           
 PVRadioGroup createRadioGroup()
          Used with PVCheckbox
 PVScrollPane createScrollPane()
           
 PVTextArea createTextArea(int rows, int cols)
           
 PVTextField createTextField(java.lang.String str)
           
 PVTextField createTextField(java.lang.String str, int cols)
           
 int getFactoryType()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewFactoryAWT

public ViewFactoryAWT()
Method Detail

createFrame

public PVFrame createFrame()
Specified by:
createFrame in interface ViewFactory

createFrame

public PVFrame createFrame(java.lang.String title)
Specified by:
createFrame in interface ViewFactory

createMenuBar

public PVMenuBar createMenuBar()
Specified by:
createMenuBar in interface ViewFactory

createMenu

public PVMenu createMenu(java.lang.String text)
Specified by:
createMenu in interface ViewFactory

createMenuItem

public PVMenuItem createMenuItem(java.lang.String text)
Specified by:
createMenuItem in interface ViewFactory

createMenuItem

public PVMenuItem createMenuItem(java.lang.String text,
                                 int shortcutKey)
Specified by:
createMenuItem in interface ViewFactory

createCheckboxMenuItem

public PVCheckboxMenuItem createCheckboxMenuItem(java.lang.String text,
                                                 boolean b)
Specified by:
createCheckboxMenuItem in interface ViewFactory

createPanel

public PVPanel createPanel()
Specified by:
createPanel in interface ViewFactory

createButton

public PVButton createButton(java.lang.String text)
Specified by:
createButton in interface ViewFactory

createLabel

public PVLabel createLabel(java.lang.String string)
Specified by:
createLabel in interface ViewFactory

createLabel

public PVLabel createLabel(java.lang.String text,
                           int alignment)

createCanvas

public PVCanvas createCanvas()
Specified by:
createCanvas in interface ViewFactory

getFactoryType

public int getFactoryType()
Specified by:
getFactoryType in interface ViewFactory

createCheckbox

public PVCheckbox createCheckbox(java.lang.String text)
Specified by:
createCheckbox in interface ViewFactory

createCheckbox

public PVCheckbox createCheckbox(java.lang.String text,
                                 boolean b)
Specified by:
createCheckbox in interface ViewFactory

createChoice

public PVChoice createChoice()
Specified by:
createChoice in interface ViewFactory

createDialog

public PVDialog createDialog(java.awt.Frame owner,
                             boolean modal)
Specified by:
createDialog in interface ViewFactory

createTextField

public PVTextField createTextField(java.lang.String str)
Specified by:
createTextField in interface ViewFactory

createTextField

public PVTextField createTextField(java.lang.String str,
                                   int cols)
Specified by:
createTextField in interface ViewFactory

createTextArea

public PVTextArea createTextArea(int rows,
                                 int cols)
Specified by:
createTextArea in interface ViewFactory

createScrollPane

public PVScrollPane createScrollPane()
Specified by:
createScrollPane in interface ViewFactory

createCheckbox

public PVCheckbox createCheckbox(java.lang.String text,
                                 PVRadioGroup group,
                                 boolean b)
Specified by:
createCheckbox in interface ViewFactory

createRadioGroup

public PVRadioGroup createRadioGroup()
Description copied from interface: ViewFactory
Used with PVCheckbox

Specified by:
createRadioGroup in interface ViewFactory