Package ffx.ui
Class KeywordComponent
java.lang.Object
ffx.ui.KeywordComponent
- All Implemented Interfaces:
ActionListener
,MouseListener
,EventListener
,ChangeListener
,DocumentListener
public final class KeywordComponent
extends Object
implements MouseListener, ActionListener, ChangeListener, DocumentListener
The KeywordComponent class is used to represent one TINKER keyword.
- Author:
- Michael J. Schnieders
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
boolean
Getter for the fieldkeyword
.int
hashCode()
void
boolean
isActive()
isActivevoid
mouseClicked
(MouseEvent evt) void
mouseEntered
(MouseEvent evt) void
mouseExited
(MouseEvent evt) void
mousePressed
(MouseEvent evt) void
mouseReleased
(MouseEvent evt) void
void
stateChanged
(ChangeEvent evt) toString()
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
changedUpdate
- Specified by:
changedUpdate
in interfaceDocumentListener
-
equals
Overidden equals method return true if object equals this, or if it of the same class and has the same Tinker Keyword.
-
getKeyword
Getter for the fieldkeyword
.- Returns:
- a
String
object.
-
hashCode
public int hashCode() -
insertUpdate
- Specified by:
insertUpdate
in interfaceDocumentListener
-
isActive
public boolean isActive()isActive- Returns:
- a boolean.
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
removeUpdate
- Specified by:
removeUpdate
in interfaceDocumentListener
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-
toString
Overridden toString methods facilitates Keyword output to a file.
-