com.tecnick.jddm
Class Jddm.MenuLoader

java.lang.Object
  extended by java.lang.Thread
      extended by com.tecnick.jddm.Jddm.MenuLoader
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Jddm

public class Jddm.MenuLoader
extends java.lang.Thread

MenuLoader Class. Load menu data for each root submenu.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  java.awt.event.ActionListener doneListener
          will be called when the loading is done
(package private)  java.awt.event.ActionListener l
          will be called when a menu is clicked
(package private)  java.awt.Menu m
          root menu to be loaded
(package private)  int realid
          real ID of menu item (unique identifier)
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Jddm.MenuLoader(java.awt.Menu m, int realid, java.awt.event.ActionListener l)
          Load submenu.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          Add action listener.
(package private)  void notifyListener(java.lang.String command)
          Notify listener.
 void run()
          Build the entire menu tree.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m

java.awt.Menu m
root menu to be loaded


realid

int realid
real ID of menu item (unique identifier)


l

java.awt.event.ActionListener l
will be called when a menu is clicked


doneListener

java.awt.event.ActionListener doneListener
will be called when the loading is done

Constructor Detail

Jddm.MenuLoader

public Jddm.MenuLoader(java.awt.Menu m,
                       int realid,
                       java.awt.event.ActionListener l)
Load submenu.

Parameters:
m - current menu
realid - real ID
l - action listener
Method Detail

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Add action listener.

Parameters:
l - action listener

run

public void run()
Build the entire menu tree.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

notifyListener

void notifyListener(java.lang.String command)
Notify listener.

Parameters:
command - command to notify