Package ffx.ui

Class KeywordPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public final class KeywordPanel extends JPanel implements ActionListener
The KeywordPanel class provides a View and Control of TINKER Keyword (*.KEY) files.
Author:
Michael J. Schnieders
See Also:
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Handles input from KeywordPanel ToolBar buttons.

      Specified by:
      actionPerformed in interface ActionListener
    • getKeyword

      public String getKeyword(String key)
      getKeyword
      Parameters:
      key - a String object.
      Returns:
      a String object.
    • getKeywordDescription

      public String getKeywordDescription(String key)
      getKeywordDescription
      Parameters:
      key - a String object.
      Returns:
      a String object.
    • getKeywordValue

      public String getKeywordValue(String key)
      getKeywordValue
      Parameters:
      key - a String object.
      Returns:
      a String object.
    • getParamPath

      public String getParamPath(String key)
      getParamPath
      Parameters:
      key - a String object.
      Returns:
      a String object.
    • isKeyword

      public boolean isKeyword(String key)
      isKeyword
      Parameters:
      key - a String object.
      Returns:
      a boolean.
    • selected

      public void selected()
      selected
    • setKeywordGroup

      public void setKeywordGroup(String keygroup)
      Make the passed Keyword Group active in the editor.
      Parameters:
      keygroup - String
    • setKeywordValue

      public void setKeywordValue(String key, String value)
      Load a value into a KeywordComponent. Value is equivalent to one line in a TINKER key file, except without the keyword at the beginning. Value should be null to just indicate the Keyword is present (active). If this Keyword can apprear many times, value will be appended to the list.
      Parameters:
      key - String
      value - String
    • store

      public void store(FFXSystem sys)
      Store the KeywordPanel's current keyword content into sys.
      Parameters:
      sys - FFXSystem
    • toString

      public String toString()
      Overrides:
      toString in class Component