com.didkovsky.portview
Interface ViewFactory

All Known Implementing Classes:
ViewFactoryAWT, ViewFactorySwing

public interface ViewFactory

PortView Factory. Defines an interface for creating UI components independent of implementation. AWT and Swing implementations of ViewFactory are included in com.didkovsky.portview.swing and com.didkovsky.portview.awt

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

Field Summary
static int AWT
           
static int SWING
           
 
Method Summary
 PVButton createButton(java.lang.String string)
           
 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)
           
 PVMenu createMenu(java.lang.String text)
           
 PVMenuBar createMenuBar()
           
 PVMenuItem createMenuItem(java.lang.String text)
           
 PVMenuItem createMenuItem(java.lang.String string, 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 string, int cols)
           
 int getFactoryType()
           
 

Field Detail

AWT

static final int AWT
See Also:
Constant Field Values

SWING

static final int SWING
See Also:
Constant Field Values
Method Detail

createFrame

PVFrame createFrame()

createFrame

PVFrame createFrame(java.lang.String title)

createDialog

PVDialog createDialog(java.awt.Frame owner,
                      boolean modal)

createMenuBar

PVMenuBar createMenuBar()

createMenu

PVMenu createMenu(java.lang.String text)

createMenuItem

PVMenuItem createMenuItem(java.lang.String text)

createMenuItem

PVMenuItem createMenuItem(java.lang.String string,
                          int shortcutKey)

createCheckboxMenuItem

PVCheckboxMenuItem createCheckboxMenuItem(java.lang.String text,
                                          boolean b)

createCheckbox

PVCheckbox createCheckbox(java.lang.String text)

createCheckbox

PVCheckbox createCheckbox(java.lang.String text,
                          boolean b)

createCheckbox

PVCheckbox createCheckbox(java.lang.String text,
                          PVRadioGroup group,
                          boolean b)

createRadioGroup

PVRadioGroup createRadioGroup()
Used with PVCheckbox


createPanel

PVPanel createPanel()

createButton

PVButton createButton(java.lang.String string)

createLabel

PVLabel createLabel(java.lang.String string)

createCanvas

PVCanvas createCanvas()

createChoice

PVChoice createChoice()

createTextField

PVTextField createTextField(java.lang.String str)

createTextArea

PVTextArea createTextArea(int rows,
                          int cols)

getFactoryType

int getFactoryType()

createTextField

PVTextField createTextField(java.lang.String string,
                            int cols)

createScrollPane

PVScrollPane createScrollPane()