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.
-
JobApplet()
-
-
actionPerformed(ActionEvent)
- Process action events.
-
addNotify()
- addNotify() perform the component set up which cannot be done
in buildComponent() (like setting the colors).
-
destroy()
- Destroy the applet.
-
doConnect()
- Perform the connect command.
-
doDiscover()
- Perform the discover command.
-
doMethod()
- Perform the method command.
-
doOpen()
- Perform the open command.
-
doUserCreate(String, ObjectName, ObjectName)
- This method performs the object creation, updates the cache and
updates the view.
-
doUserDelete()
- This method perform the object deletion, update the cache and
update the view.
-
enableInputComponents()
- Enable/disable the input components according the connection
state and the selection size.
-
getAdaptor()
- Return the adaptor object.
-
getCache()
- Return the cache vector.
-
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.
-
getHostText()
- Return the text contained in the host text field.
-
handleFrameworkEvent(FrameworkEventMO)
- Process framework event
-
init()
- Initialize the applet.
-
itemStateChanged(ItemEvent)
- Process a item event.
-
main(String[])
- MAIN
-
popupMessage(String, String)
- Popup a modal dialog box with the specified message and button.
-
popupMessage(String, String, String)
-
-
setAuthInfo(AuthInfo)
- Set the login/password
-
setHostText(String)
- Set the text in the host text field.
-
start()
- Start the applet.
-
statusDoing(String)
- Call showStatus() and set the busy cursor.
-
statusDone()
- Append "Done" to the status string and restore the default cursor.
-
statusFailed()
- Append "Failed" to the status string and restore the default cursor.
-
stop()
- Stop the applet.
-
textValueChanged(TextEvent)
- Process text events.
JobApplet
public JobApplet()
init
public void init()
- Initialize the applet.
Most of the AWT components are built here.
- Overrides:
- init in class Applet
destroy
public void destroy()
- Destroy the applet.
Components are destroyed. The eventual connection
is closed gracefully.
- Overrides:
- destroy in class Applet
start
public void start()
- Start the applet.
- Overrides:
- start in class Applet
stop
public void stop()
- Stop the applet.
- Overrides:
- stop in class Applet
getCache
public Vector getCache()
- Return the cache vector.
getAdaptor
public AdaptorMO getAdaptor()
- Return the adaptor object.
getHostText
public String getHostText()
- Return the text contained in the host text field.
setHostText
public void setHostText(String h)
- Set the text in the host text field.
This method enables the connect button.
setAuthInfo
public void setAuthInfo(AuthInfo ai)
- Set the login/password
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.
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Process a item event.
Item events are emitted by the list and icon checkboxes.
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.
actionPerformed
public void actionPerformed(ActionEvent e)
- Process action events.
handleFrameworkEvent
public void handleFrameworkEvent(FrameworkEventMO e)
- Process framework event
enableInputComponents
public void enableInputComponents()
- Enable/disable the input components according the connection
state and the selection size.
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...
popupMessage
public int popupMessage(String msg,
String button1,
String button2)
statusDoing
public void statusDoing(String msg)
- Call showStatus() and set the busy cursor.
statusDone
public void statusDone()
- Append "Done" to the status string and restore the default cursor.
statusFailed
public void statusFailed()
- Append "Failed" to the status string and restore the default cursor.
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
doConnect
public void doConnect()
- Perform the connect command.
This method set up the adaptor variable.
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.
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.
doOpen
public void doOpen()
- Perform the open command.
doMethod
public void doMethod()
- Perform the method command.
doDiscover
public void doDiscover()
- Perform the discover command.
main
public static void main(String arg[])
- MAIN
All Packages Class Hierarchy This Package Previous Next Index