Back to index

wims  3.65+svn20090927
Public Member Functions | Public Attributes | Package Attributes
rene.gui.HistoryTextFieldChoice Class Reference
Inheritance diagram for rene.gui.HistoryTextFieldChoice:
Inheritance graph
[legend]
Collaboration diagram for rene.gui.HistoryTextFieldChoice:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HistoryTextFieldChoice (HistoryTextField t)
void setDoActionListener (DoActionListener al)
void itemStateChanged (ItemEvent e)
void update ()
String getRecent ()

Public Attributes

int MaxLength = 32

Package Attributes

HistoryTextField T
DoActionListener AL
MyVector V = new MyVector()

Detailed Description

Definition at line 11 of file HistoryTextFieldChoice.java.


Constructor & Destructor Documentation

Definition at line 18 of file HistoryTextFieldChoice.java.

       {      T=t;
              addItemListener(this);
       }

Member Function Documentation

Definition at line 54 of file HistoryTextFieldChoice.java.

       {      if (V.size()>1) return (String)V.elementAt(1);
              else return "";
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.gui.HistoryTextFieldChoice.itemStateChanged ( ItemEvent  e) [inline]

Definition at line 27 of file HistoryTextFieldChoice.java.

       {      int n=getSelectedIndex();
              String s=(String)V.elementAt(n);
              if (s.equals("   ")) return;
              if (AL!=null) AL.doAction(s); 
              else T.doAction(s);
       }

Here is the call graph for this function:

Definition at line 23 of file HistoryTextFieldChoice.java.

       {      AL=al;
       }

Here is the caller graph for this function:

Definition at line 35 of file HistoryTextFieldChoice.java.

       {      removeAll();
              V.removeAllElements();
              ListClass l=T.getHistory();
              ListElement e=l.last();
              if (e==null || ((String)e.content()).equals(""))
              {      V.addElement("   ");
                     add("   ");
              }
              while (e!=null)
              {      String s=(String)e.content();
                     if (!s.equals(""))
                     {      V.addElement(s);
                            add(FileName.chop(s,MaxLength));
                     }
                     e=e.previous();
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 14 of file HistoryTextFieldChoice.java.

Definition at line 16 of file HistoryTextFieldChoice.java.

Definition at line 13 of file HistoryTextFieldChoice.java.

Definition at line 15 of file HistoryTextFieldChoice.java.


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