Class LookupItem

java.lang.Object
generalDatabase.lookupTables.LookupItem
All Implemented Interfaces:
Serializable, Cloneable, ManagedParameters

public class LookupItem extends Object implements Cloneable, Serializable, ManagedParameters
hold data for a single item from the lookup list.
Author:
Doug Gillespie
See Also:
  • Field Details

  • Constructor Details

    • LookupItem

      public LookupItem(int databaseId, int row, String topic, int order, String code, String text, boolean selectable, Color fillCol, Color borderCol, String symbolType)
      Parameters:
      databaseId -
      topic -
      order -
      code -
      text -
      selectable -
      fillCol -
      borderCol -
      symbolType -
  • Method Details

    • getOrder

      public int getOrder()
      Returns:
      the order
    • setOrder

      public void setOrder(int order)
      Parameters:
      order - the order to set
    • getTopic

      public String getTopic()
      Returns:
      the topic
    • setTopic

      public void setTopic(String topic)
      Parameters:
      topic - the topic to set
    • getCode

      public String getCode()
      Returns:
      the code
    • setCode

      public void setCode(String code)
      Parameters:
      code - the code to set
    • getText

      public String getText()
      Returns:
      the text
    • setText

      public void setText(String text)
      Parameters:
      text - the text to set
    • isSelectable

      public boolean isSelectable()
      Returns:
      the selectable
    • setSelectable

      public void setSelectable(boolean selectable)
      Parameters:
      selectable - the selectable to set
    • getBorderColour

      public Color getBorderColour()
      Returns:
      the colour
    • setBorderColour

      public void setBorderColour(Color colour)
      Parameters:
      colour - the colour to set
    • getFillColour

      public Color getFillColour()
      Returns:
      the colour
    • setFillColour

      public void setFillColour(Color colour)
      Parameters:
      colour - the colour to set
    • setDatabaseId

      public void setDatabaseId(int databaseId)
      Parameters:
      databaseId - the databaseId to set
    • getDatabaseId

      public int getDatabaseId()
      Returns:
      the databaseId
    • getSymbolType

      public String getSymbolType()
      Returns:
      the symbolType
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setSymbolType

      public void setSymbolType(String symbolType)
      Parameters:
      symbolType - the symbolType to set
    • getSymbol

      public PamSymbol getSymbol()
    • getResultSetRow

      public int getResultSetRow()
      Returns:
      the resultSetRow
    • checkItem

      public boolean checkItem()
      Check the item has at least something in code and something in text.
      Returns:
      true if OK.
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.