All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.tools.JobApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----com.sun.jaw.tools.JobApplet

public class JobApplet
extends Applet
implements ItemListener, TextListener, ActionListener, FrameworkListenerMO
The JobApplet class explanation.


Constructor Index

 o JobApplet()

Method Index

 o actionPerformed(ActionEvent)
Process action events.
 o addNotify()
addNotify() perform the component set up which cannot be done in buildComponent() (like setting the colors).
 o destroy()
Destroy the applet.
 o doConnect()
Perform the connect command.
 o doDiscover()
Perform the discover command.
 o doMethod()
Perform the method command.
 o doOpen()
Perform the open command.
 o doUserCreate(String, ObjectName, ObjectName)
This method performs the object creation, updates the cache and updates the view.
 o doUserDelete()
This method perform the object deletion, update the cache and update the view.
 o enableInputComponents()
Enable/disable the input components according the connection state and the selection size.
 o getAdaptor()
Return the adaptor object.
 o getCache()
Return the cache vector.
 o getCurrentDomain()
Return the current domain : - when the domain list is visible, the current domain is the selected domain - when not, the current domain is the default domain returned by the adaptor.
 o getHostText()
Return the text contained in the host text field.
 o handleFrameworkEvent(FrameworkEventMO)
Process framework event
 o init()
Initialize the applet.
 o itemStateChanged(ItemEvent)
Process a item event.
 o main(String[])
MAIN
 o popupMessage(String, String)
Popup a modal dialog box with the specified message and button.
 o popupMessage(String, String, String)
 o setAuthInfo(AuthInfo)
Set the login/password
 o setHostText(String)
Set the text in the host text field.
 o start()
Start the applet.
 o statusDoing(String)
Call showStatus() and set the busy cursor.
 o statusDone()
Append "Done" to the status string and restore the default cursor.
 o statusFailed()
Append "Failed" to the status string and restore the default cursor.
 o stop()
Stop the applet.
 o textValueChanged(TextEvent)
Process text events.

Constructors

 o JobApplet
 public JobApplet()

Methods

 o init
 public void init()
Initialize the applet. Most of the AWT components are built here.

Overrides:
init in class Applet
 o destroy
 public void destroy()
Destroy the applet. Components are destroyed. The eventual connection is closed gracefully.

Overrides:
destroy in class Applet
 o start
 public void start()
Start the applet.

Overrides:
start in class Applet
 o stop
 public void stop()
Stop the applet.

Overrides:
stop in class Applet
 o getCache
 public Vector getCache()
Return the cache vector.

 o getAdaptor
 public AdaptorMO getAdaptor()
Return the adaptor object.

 o getHostText
 public String getHostText()
Return the text contained in the host text field.

 o setHostText
 public void setHostText(String h)
Set the text in the host text field. This method enables the connect button.

 o setAuthInfo
 public void setAuthInfo(AuthInfo ai)
Set the login/password

 o getCurrentDomain
 public String getCurrentDomain()
Return the current domain : - when the domain list is visible, the current domain is the selected domain - when not, the current domain is the default domain returned by the adaptor.

 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
Process a item event. Item events are emitted by the list and icon checkboxes.

 o textValueChanged
 public void textValueChanged(TextEvent e)
Process text events. When the hostTextField is modified, a flag is switched on and input components are enabled/disabled.

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Process action events.

 o handleFrameworkEvent
 public void handleFrameworkEvent(FrameworkEventMO e)
Process framework event

 o enableInputComponents
 public void enableInputComponents()
Enable/disable the input components according the connection state and the selection size.

 o popupMessage
 public int popupMessage(String msg,
                         String button)
Popup a modal dialog box with the specified message and button. Returns the button chosen by the user...

 o popupMessage
 public int popupMessage(String msg,
                         String button1,
                         String button2)
 o statusDoing
 public void statusDoing(String msg)
Call showStatus() and set the busy cursor.

 o statusDone
 public void statusDone()
Append "Done" to the status string and restore the default cursor.

 o statusFailed
 public void statusFailed()
Append "Failed" to the status string and restore the default cursor.

 o addNotify
 public void addNotify()
addNotify() perform the component set up which cannot be done in buildComponent() (like setting the colors).

Overrides:
addNotify in class Panel
 o doConnect
 public void doConnect()
Perform the connect command. This method set up the adaptor variable.

 o doUserCreate
 public synchronized void doUserCreate(String moc,
                                       ObjectName on,
                                       ObjectName cl_on) throws InstantiationException, ClassNotFoundException, InstanceAlreadyExistException, ServiceNotFoundException, IllegalAccessException, CommunicationException
This method performs the object creation, updates the cache and updates the view. It is called by the object creation dialog once the user input has been retreived and validated. This method does not catch any exception and does not update the status message : it's the responsibility of the caller.

Throws: InstantiationException
A new instance of the specified class could not be created.
Throws: ClassNotFoundException
The specified class could not be found.
Throws: InstanceAlreadyExistException
The m-bean is already registered in the repository.
Throws: ServiceNotFoundException
The requested service is not supported.
Throws: IllegalAccessException
The method has tried to access a class that is not public and in another package.
Throws: CommunicationException
A communications problem occurred.
 o doUserDelete
 public synchronized void doUserDelete()
This method perform the object deletion, update the cache and update the view. It is called by the object deletion dialog once the user has confirmed the operation.

 o doOpen
 public void doOpen()
Perform the open command.

 o doMethod
 public void doMethod()
Perform the method command.

 o doDiscover
 public void doDiscover()
Perform the discover command.

 o main
 public static void main(String arg[])
MAIN


All Packages  Class Hierarchy  This Package  Previous  Next  Index