Package com.coswald.jtalker.gui
Class TextEntryPanel.TextUpdater
- java.lang.Object
-
- com.coswald.jtalker.gui.TextEntryPanel.TextUpdater
-
- All Implemented Interfaces:
ActionListener
,EventListener
- Enclosing class:
- TextEntryPanel
protected class TextEntryPanel.TextUpdater extends Object implements ActionListener
Updates any text pipe using the underlying textfield's
current text. If you wish to use this class within aTextEntryPanel
, usethis
method.- Since:
- JTalker 0.1.5
- Version:
- 0.0.1
- Author:
- C. William Oswald
-
-
Constructor Summary
Constructors Constructor Description TextUpdater(TextPipe pipe)
Constructs an updater that updates a given text pipe.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
Sends a string to the given text pipe.
-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
Sends a string to the given text pipe. This method is called whenever the sendbutton
is pressed. However, it will not send text along the pipe if the text is just an empty string.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
e
- Unused.- See Also:
TextEntryPanel.sendButton
,TextPipe
-
-