Back to index

wims  3.65+svn20090927
Public Member Functions | Protected Attributes | Package Attributes
rene.gui.TextFieldAction Class Reference

A TextField with a modifyable background and font. More...

Inheritance diagram for rene.gui.TextFieldAction:
Inheritance graph
[legend]
Collaboration diagram for rene.gui.TextFieldAction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TextFieldAction (DoActionListener t, String name, String s)
 TextFieldAction (DoActionListener t, String name)
 TextFieldAction (DoActionListener t, String name, int n)
 TextFieldAction (DoActionListener t, String name, String s, int n)
void triggerAction ()
void focusGained (FocusEvent e)
void focusLost (FocusEvent e)
void setText (String s)
String getOldText ()
boolean isChanged ()

Protected Attributes

ActionTranslator T

Package Attributes

String S

Detailed Description

A TextField with a modifyable background and font.

This is used in DoActionListener interfaces.

Definition at line 12 of file TextFieldAction.java.


Constructor & Destructor Documentation

rene.gui.TextFieldAction.TextFieldAction ( DoActionListener  t,
String  name,
String  s 
) [inline]

Definition at line 16 of file TextFieldAction.java.

       {      super(s);
              S=s;
              if (Global.NormalFont!=null) setFont(Global.NormalFont);
              if (Global.Background!=null) setBackground(Global.Background);
              T=new ActionTranslator(t,name);
              addActionListener(T);
              addFocusListener(this);
       }

Definition at line 25 of file TextFieldAction.java.

       {      if (Global.NormalFont!=null) setFont(Global.NormalFont);
              if (Global.Background!=null) setBackground(Global.Background);
              T=new ActionTranslator(t,name);
              addActionListener(T);
              addFocusListener(this);
       }
rene.gui.TextFieldAction.TextFieldAction ( DoActionListener  t,
String  name,
int  n 
) [inline]

Definition at line 32 of file TextFieldAction.java.

       {      super(n);
              if (Global.NormalFont!=null) setFont(Global.NormalFont);
              if (Global.Background!=null) setBackground(Global.Background);
              T=new ActionTranslator(t,name);
              addActionListener(T);
              addFocusListener(this);
       }
rene.gui.TextFieldAction.TextFieldAction ( DoActionListener  t,
String  name,
String  s,
int  n 
) [inline]

Definition at line 40 of file TextFieldAction.java.

       {      super(s,n);
              S=s;
              if (Global.NormalFont!=null) setFont(Global.NormalFont);
              if (Global.Background!=null) setBackground(Global.Background);
              T=new ActionTranslator(t,name);
              addActionListener(T);
              addFocusListener(this);
       }

Member Function Documentation

void rene.gui.TextFieldAction.focusGained ( FocusEvent  e) [inline]

Definition at line 52 of file TextFieldAction.java.

       {      setSelectionStart(0);
       }

Here is the caller graph for this function:

void rene.gui.TextFieldAction.focusLost ( FocusEvent  e) [inline]

Definition at line 55 of file TextFieldAction.java.

       {      setSelectionStart(0);
              setSelectionEnd(0);
       }

Definition at line 63 of file TextFieldAction.java.

       {      return S;
       }

Definition at line 66 of file TextFieldAction.java.

       {      return !S.equals(getText());
       }

Here is the caller graph for this function:

void rene.gui.TextFieldAction.setText ( String  s) [inline]

Definition at line 59 of file TextFieldAction.java.

       {      super.setText(s);
              S=s;
       }

Here is the caller graph for this function:

Definition at line 49 of file TextFieldAction.java.

       {      T.trigger();
       }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

String rene.gui.TextFieldAction.S [package]

Definition at line 15 of file TextFieldAction.java.

Definition at line 14 of file TextFieldAction.java.


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