nesstar.util
Class EMWindow

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by nesstar.util.EMWindow
All Implemented Interfaces:
ActionListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, org.mozilla.webclient.DocumentLoadListener, org.mozilla.webclient.PrefChangedCallback, org.mozilla.webclient.Prompt, org.mozilla.webclient.test.DialogClient, org.mozilla.webclient.WebclientEventListener

public class EMWindow
extends Frame
implements org.mozilla.webclient.test.DialogClient, ActionListener, org.mozilla.webclient.DocumentLoadListener, MouseListener, org.mozilla.webclient.Prompt, org.mozilla.webclient.PrefChangedCallback

This is a test application for using the org.mozilla.webclient.BrowserControl.

Version:
$Id: EMWindow.java,v 1.6 2002/12/04 15:44:29 mg Exp $
See Also:
org.mozilla.webclient.org.mozilla.webclient.BrowserControlFactory, Serialized Form

Field Summary
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface org.mozilla.webclient.Prompt
BUTTON_PRESSED_KEY, CHECKBOX_STATE_KEY, EDIT_FIELD_1_KEY, EDIT_FIELD_2_KEY, PASSWORD_KEY, USER_NAME_KEY
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
EMWindow(String title, String binDir, String url, int winnum, org.mozilla.webclient.test.EmbeddedMozilla Creator)
          Constructor for the EMWindow object
 
Method Summary
 void actionPerformed(ActionEvent evt)
          Description of the Method
 void delete()
          Description of the Method
 void dialogCancelled(Dialog d)
          Description of the Method
 void dialogDismissed(Dialog d)
          Description of the Method
 void eventDispatched(org.mozilla.webclient.WebclientEvent event)
          Important: do not call any webclient methods during this callback.
 org.mozilla.webclient.BrowserControl getBrowserControl()
          Gets the browserControl attribute of the EMWindow object
 String getPageSource()
          Gets the pageSource attribute of the EMWindow object
static void main(String[] arg)
          The main program for the EMWindow class
 void mouseClicked(MouseEvent e)
          Description of the Method
 void mouseEntered(MouseEvent e)
          Description of the Method
 void mouseExited(MouseEvent e)
          Description of the Method
 void mousePressed(MouseEvent e)
          Description of the Method
 void mouseReleased(MouseEvent e)
          Description of the Method
 int prefChanged(String prefName, Object closure)
          Description of the Method
 boolean promptUsernameAndPassword(String dialogTitle, String text, String passwordRealm, int savePassword, Properties fillThis)
          Description of the Method
 boolean universalDialog(String titleMessage, String dialogTitle, String text, String checkboxMsg, String button0Text, String button1Text, String button2Text, String button3Text, String editfield1Msg, String editfield2Msg, int numButtons, int numEditfields, boolean editfield1Password, Properties fillThis)
          Description of the Method
 
Methods inherited from class java.awt.Frame
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Constructor Detail

EMWindow

public EMWindow(String title,
                String binDir,
                String url,
                int winnum,
                org.mozilla.webclient.test.EmbeddedMozilla Creator)
Constructor for the EMWindow object

Parameters:
title -
binDir -
url -
winnum -
Creator -
Method Detail

getPageSource

public String getPageSource()
Gets the pageSource attribute of the EMWindow object

Returns:
The pageSource value

getBrowserControl

public org.mozilla.webclient.BrowserControl getBrowserControl()
Gets the browserControl attribute of the EMWindow object

Returns:
The browserControl value

main

public static void main(String[] arg)
The main program for the EMWindow class

Parameters:
arg - The command line arguments

delete

public void delete()
Description of the Method


actionPerformed

public void actionPerformed(ActionEvent evt)
Description of the Method

Specified by:
actionPerformed in interface ActionListener
Parameters:
evt -

dialogDismissed

public void dialogDismissed(Dialog d)
Description of the Method

Specified by:
dialogDismissed in interface org.mozilla.webclient.test.DialogClient
Parameters:
d -

dialogCancelled

public void dialogCancelled(Dialog d)
Description of the Method

Specified by:
dialogCancelled in interface org.mozilla.webclient.test.DialogClient
Parameters:
d -

eventDispatched

public void eventDispatched(org.mozilla.webclient.WebclientEvent event)
Important: do not call any webclient methods during this callback. It may caus your app to deadlock.

Specified by:
eventDispatched in interface org.mozilla.webclient.WebclientEventListener
Parameters:
event -

mouseClicked

public void mouseClicked(MouseEvent e)
Description of the Method

Specified by:
mouseClicked in interface MouseListener
Parameters:
e -

mouseEntered

public void mouseEntered(MouseEvent e)
Description of the Method

Specified by:
mouseEntered in interface MouseListener
Parameters:
e -

mouseExited

public void mouseExited(MouseEvent e)
Description of the Method

Specified by:
mouseExited in interface MouseListener
Parameters:
e -

mousePressed

public void mousePressed(MouseEvent e)
Description of the Method

Specified by:
mousePressed in interface MouseListener
Parameters:
e -

mouseReleased

public void mouseReleased(MouseEvent e)
Description of the Method

Specified by:
mouseReleased in interface MouseListener
Parameters:
e -

promptUsernameAndPassword

public boolean promptUsernameAndPassword(String dialogTitle,
                                         String text,
                                         String passwordRealm,
                                         int savePassword,
                                         Properties fillThis)
Description of the Method

Specified by:
promptUsernameAndPassword in interface org.mozilla.webclient.Prompt
Parameters:
dialogTitle -
text -
passwordRealm -
savePassword -
fillThis -
Returns:

universalDialog

public boolean universalDialog(String titleMessage,
                               String dialogTitle,
                               String text,
                               String checkboxMsg,
                               String button0Text,
                               String button1Text,
                               String button2Text,
                               String button3Text,
                               String editfield1Msg,
                               String editfield2Msg,
                               int numButtons,
                               int numEditfields,
                               boolean editfield1Password,
                               Properties fillThis)
Description of the Method

Specified by:
universalDialog in interface org.mozilla.webclient.Prompt
Parameters:
titleMessage -
dialogTitle -
text -
checkboxMsg -
button0Text -
button1Text -
button2Text -
button3Text -
editfield1Msg -
editfield2Msg -
numButtons -
numEditfields -
editfield1Password -
fillThis -
Returns:

prefChanged

public int prefChanged(String prefName,
                       Object closure)
Description of the Method

Specified by:
prefChanged in interface org.mozilla.webclient.PrefChangedCallback
Parameters:
prefName -
closure -
Returns:

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved