com.pvx.ooadide.javx
Class PluginJavXApplet

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by javax.swing.JApplet
                      extended by com.pvx.ooadide.javx.PluginJavXApplet
All Implemented Interfaces:
java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javxbaseui.PvxBaseWindow, javxbaseui.PvxWindow, javxswing.SwingWindow
Direct Known Subclasses:
RcpPluginJavXApplet

public class PluginJavXApplet
extends javax.swing.JApplet
implements javxswing.SwingWindow, java.awt.event.WindowListener

See Also:
Serialized Form

Field Summary
 java.lang.String args
           
 java.net.URL base
           
 javxbaseui.PvxCanvas canvas
           
static java.lang.String host
           
 PluginConnectionControl nwClient
           
 java.lang.String scriptMessage
           
 boolean start
           
 javxswing.StatusBar statusBar
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PluginJavXApplet(IEmbeddedJavXView view)
           
 
Method Summary
 javxswing.JavXInternalFrame addChildWindow(javxswing.WindowFactory windowFactory, int argX, int argY, int argWidth, int argHeight, java.lang.String title, int[] curAttrb, int winNumb, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable, boolean withTitle, int barHeight, boolean statBar, boolean textWin, boolean border, javxclientcontrol.PvxHost applet)
          If OnApplet equal True this Method will add windows (created with the 'window' mnemonic) directly onto the Applet
 void addToHeight(int hite)
           
 void addToWidth(int wid)
           
 void dispose()
           
 PluginConnectionControl establishConnection(javxbaseui.PvxBaseWindow prnt, java.util.Hashtable params, javxclientcontrol.PvxSSLSocketFactory sslSocketFactory)
           
 java.util.Hashtable getActiveCtrls()
          If On Applet is true returns the Applets ProvideX GUI objects
 java.lang.String getAppletInfo()
           
 javxbaseui.PvxCanvas getCanvas()
           
 javxclientcontrol.ConnectionControl getConnectionControl()
           
 java.awt.Container getDeskTopContainer()
           
 java.net.URL getDocumentBase()
           
 java.awt.Component getImplComponent()
           
 java.lang.String getParameter(java.lang.String name)
           
 java.awt.Container getPvxCompContainer()
           
 boolean getScrllHeight()
           
 boolean getScrllWidth()
           
 java.lang.String getTitle()
           
 int getWIN_Y()
           
 void init()
           
 void initializeArgsParameters(java.lang.String[] args)
           
 boolean isDialogue()
           
 boolean isDialWMnu()
           
 void jsForceFocus()
           
 void removeAllCtrl(boolean disposed)
           
 void requestFocus()
           
 boolean requestFocusInWindow()
           
 void scrlRemoveCtls(int scrlX_1, int scrlY_1, int scrlX_2, int scrlY_2)
           
 void setLocation(int x, int y)
           
 void setScrllHeight(boolean wid)
           
 void setScrllWidth(boolean hite)
           
 void setSelectedFrame(javxbaseui.PvxBaseWindow internalFrame)
           
 void start()
           
 void toFront()
           
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class javax.swing.JApplet
getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getImage, getImage, getLocale, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javxbaseui.PvxWindow
getGlassPane, getLocation
 
Methods inherited from interface javxbaseui.PvxBaseWindow
destroy, invalidate, repaint, setSize, setVisible, validate
 

Field Detail

host

public static java.lang.String host

scriptMessage

public java.lang.String scriptMessage

args

public java.lang.String args

base

public java.net.URL base

nwClient

public PluginConnectionControl nwClient

statusBar

public javxswing.StatusBar statusBar

canvas

public javxbaseui.PvxCanvas canvas

start

public boolean start
Constructor Detail

PluginJavXApplet

public PluginJavXApplet(IEmbeddedJavXView view)
Parameters:
view -
Method Detail

requestFocus

public void requestFocus()
Overrides:
requestFocus in class java.awt.Component

requestFocusInWindow

public boolean requestFocusInWindow()
Overrides:
requestFocusInWindow in class java.awt.Component

getParameter

public java.lang.String getParameter(java.lang.String name)
Overrides:
getParameter in class java.applet.Applet

getDocumentBase

public java.net.URL getDocumentBase()
Overrides:
getDocumentBase in class java.applet.Applet

init

public void init()
Overrides:
init in class java.applet.Applet

initializeArgsParameters

public void initializeArgsParameters(java.lang.String[] args)

start

public void start()
Overrides:
start in class java.applet.Applet

establishConnection

public PluginConnectionControl establishConnection(javxbaseui.PvxBaseWindow prnt,
                                                   java.util.Hashtable params,
                                                   javxclientcontrol.PvxSSLSocketFactory sslSocketFactory)

addChildWindow

public javxswing.JavXInternalFrame addChildWindow(javxswing.WindowFactory windowFactory,
                                                  int argX,
                                                  int argY,
                                                  int argWidth,
                                                  int argHeight,
                                                  java.lang.String title,
                                                  int[] curAttrb,
                                                  int winNumb,
                                                  boolean resizable,
                                                  boolean closable,
                                                  boolean maximizable,
                                                  boolean iconifiable,
                                                  boolean withTitle,
                                                  int barHeight,
                                                  boolean statBar,
                                                  boolean textWin,
                                                  boolean border,
                                                  javxclientcontrol.PvxHost applet)
If OnApplet equal True this Method will add windows (created with the 'window' mnemonic) directly onto the Applet

Specified by:
addChildWindow in interface javxswing.SwingWindow
Parameters:
argX - The x-coordinate
argY - The y-coordinate
argWidth - The Window Width
argHeight - The Window Height
title - The Title to appear in the Title bar
curAttrb - The Attributes for the window
winNumb - The window number
resizable - If true, the window is resizable
closable - If true, the window is closable
maximizable - If true, window is maximizable
iconifiable - If true, window is iconifiable
withTitle - If true, window will have a title bar
barHeight - height of the title bar
statBar - If true, window will have a status bar
textWin - If true, window is a textWin (CUI style)
border - If true, window has a border
applet - a referrence to the ConnectionControl instance for this window
Returns:
a referrence to the JavXInternalFrame ('window') which has been added to the Applet

scrlRemoveCtls

public void scrlRemoveCtls(int scrlX_1,
                           int scrlY_1,
                           int scrlX_2,
                           int scrlY_2)
Specified by:
scrlRemoveCtls in interface javxbaseui.PvxBaseWindow

removeAllCtrl

public void removeAllCtrl(boolean disposed)
Specified by:
removeAllCtrl in interface javxbaseui.PvxBaseWindow

addToWidth

public void addToWidth(int wid)
Specified by:
addToWidth in interface javxbaseui.PvxBaseWindow

addToHeight

public void addToHeight(int hite)
Specified by:
addToHeight in interface javxbaseui.PvxBaseWindow

toFront

public void toFront()
Specified by:
toFront in interface javxbaseui.PvxBaseWindow

getActiveCtrls

public java.util.Hashtable getActiveCtrls()
If On Applet is true returns the Applets ProvideX GUI objects

Specified by:
getActiveCtrls in interface javxbaseui.PvxBaseWindow
Returns:
A Hashtable or Hashmap containing all of the current ProvideX GUI objects

getCanvas

public javxbaseui.PvxCanvas getCanvas()
Specified by:
getCanvas in interface javxbaseui.PvxWindow

dispose

public void dispose()
Specified by:
dispose in interface javxbaseui.PvxBaseWindow

setLocation

public void setLocation(int x,
                        int y)
Specified by:
setLocation in interface javxbaseui.PvxBaseWindow
Overrides:
setLocation in class java.awt.Component

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface javxbaseui.PvxBaseWindow

isDialogue

public boolean isDialogue()
Specified by:
isDialogue in interface javxbaseui.PvxBaseWindow

isDialWMnu

public boolean isDialWMnu()
Specified by:
isDialWMnu in interface javxbaseui.PvxBaseWindow

getScrllWidth

public boolean getScrllWidth()
Specified by:
getScrllWidth in interface javxbaseui.PvxBaseWindow

getScrllHeight

public boolean getScrllHeight()
Specified by:
getScrllHeight in interface javxbaseui.PvxBaseWindow

setScrllWidth

public void setScrllWidth(boolean hite)
Specified by:
setScrllWidth in interface javxbaseui.PvxBaseWindow

setScrllHeight

public void setScrllHeight(boolean wid)
Specified by:
setScrllHeight in interface javxbaseui.PvxBaseWindow

getConnectionControl

public javxclientcontrol.ConnectionControl getConnectionControl()

jsForceFocus

public void jsForceFocus()

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

getAppletInfo

public java.lang.String getAppletInfo()
Overrides:
getAppletInfo in class java.applet.Applet

getPvxCompContainer

public java.awt.Container getPvxCompContainer()
Specified by:
getPvxCompContainer in interface javxbaseui.PvxWindow

getDeskTopContainer

public java.awt.Container getDeskTopContainer()
Specified by:
getDeskTopContainer in interface javxbaseui.PvxWindow

setSelectedFrame

public void setSelectedFrame(javxbaseui.PvxBaseWindow internalFrame)
Specified by:
setSelectedFrame in interface javxbaseui.PvxBaseWindow

getImplComponent

public java.awt.Component getImplComponent()
Specified by:
getImplComponent in interface javxbaseui.PvxWindow

getWIN_Y

public int getWIN_Y()
Specified by:
getWIN_Y in interface javxbaseui.PvxWindow