Back to index

wims  3.65+svn20090927
Public Member Functions | Package Attributes
rene.zirkel.macro.MacroBar Class Reference
Collaboration diagram for rene.zirkel.macro.MacroBar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MacroBar (Frame f)
void update (Vector macros)
void deselectAll ()
Macro find (String o)
void select (Macro m)
String getHelp (String name)

Package Attributes

Vector V = new Vector()

Detailed Description

Definition at line 20 of file MacroBar.java.


Constructor & Destructor Documentation

rene.zirkel.macro.MacroBar.MacroBar ( Frame  f) [inline]

Definition at line 23 of file MacroBar.java.

       {      super(f,false);
              Resource="/icons/";
       }

Member Function Documentation

Definition at line 45 of file MacroBar.java.

       {      Enumeration e=V.elements();
              while (e.hasMoreElements())
              {      MacroBarElement me=(MacroBarElement)e.nextElement();
                     setState(me.Name,false);
              }
       }
Macro rene.zirkel.macro.MacroBar.find ( String  o) [inline]

Definition at line 53 of file MacroBar.java.

       {      Enumeration e=V.elements();
              while (e.hasMoreElements())
              {      MacroBarElement me=(MacroBarElement)e.nextElement();
                     if (me.Name.equals(o))
                     {      return me.M.M;
                     }
              }
              return null;
       }
String rene.zirkel.macro.MacroBar.getHelp ( String  name) [inline]

Definition at line 74 of file MacroBar.java.

       {      return name;
       }

Definition at line 64 of file MacroBar.java.

       {      Enumeration e=V.elements();
              while (e.hasMoreElements())
              {      MacroBarElement me=(MacroBarElement)e.nextElement();
                     if (me.M.M==m)
                     {      setState(me.Name,true);
                     }
              }
       }
void rene.zirkel.macro.MacroBar.update ( Vector  macros) [inline]

Definition at line 28 of file MacroBar.java.

       {      removeAll();
              V.removeAllElements();
              Enumeration e=macros.elements();
              while (e.hasMoreElements())
              {      MacroItem m=(MacroItem)e.nextElement();
                     String name=m.Name;
                     if (name!=null && name.endsWith(")") &&
                            (!m.M.isProtected() || Global.getParameter("defaultmacrosinbar",true)))
                     {      addToggleLeft(name);
                            V.addElement(new MacroBarElement(m,name));
                     }
              }
              doLayout();
              forceRepaint();
       }

Here is the call graph for this function:


Member Data Documentation

Vector rene.zirkel.macro.MacroBar.V = new Vector() [package]

Definition at line 21 of file MacroBar.java.


The documentation for this class was generated from the following file: