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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanGetter for the fieldkeyword.inthashCode()voidbooleanisActive()isActivevoidmouseClicked(MouseEvent evt) voidmouseEntered(MouseEvent evt) voidmouseExited(MouseEvent evt) voidmousePressed(MouseEvent evt) voidmouseReleased(MouseEvent evt) voidvoidstateChanged(ChangeEvent evt) toString()
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
changedUpdate
- Specified by:
changedUpdatein 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
Stringobject.
-
hashCode
public int hashCode() -
insertUpdate
- Specified by:
insertUpdatein interfaceDocumentListener
-
isActive
public boolean isActive()isActive- Returns:
- a boolean.
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
removeUpdate
- Specified by:
removeUpdatein interfaceDocumentListener
-
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
toString
Overridden toString methods facilitates Keyword output to a file.
-