generalDatabase.lookupTables
Class LookupItem
java.lang.Object
generalDatabase.lookupTables.LookupItem
public class LookupItem
- extends java.lang.Object
hold data for a single item from the lookup list.
- Author:
- Doug Gillespie
|
Constructor Summary |
LookupItem(int databaseId,
int row,
java.lang.String topic,
int order,
java.lang.String code,
java.lang.String text,
boolean selectable,
java.awt.Color fillCol,
java.awt.Color borderCol,
java.lang.String symbolType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
databaseId
private int databaseId
order
private int order
topic
private java.lang.String topic
code
private java.lang.String code
text
private java.lang.String text
selectable
private boolean selectable
borderColour
private java.awt.Color borderColour
fillColour
private java.awt.Color fillColour
symbolType
private java.lang.String symbolType
resultSetRow
private int resultSetRow
LookupItem
public LookupItem(int databaseId,
int row,
java.lang.String topic,
int order,
java.lang.String code,
java.lang.String text,
boolean selectable,
java.awt.Color fillCol,
java.awt.Color borderCol,
java.lang.String symbolType)
- Parameters:
databaseId - topic - order - code - text - selectable - fillCol - borderCol - symbolType -
getOrder
public int getOrder()
- Returns:
- the order
setOrder
public void setOrder(int order)
- Parameters:
order - the order to set
getTopic
public java.lang.String getTopic()
- Returns:
- the topic
setTopic
public void setTopic(java.lang.String topic)
- Parameters:
topic - the topic to set
getCode
public java.lang.String getCode()
- Returns:
- the code
setCode
public void setCode(java.lang.String code)
- Parameters:
code - the code to set
getText
public java.lang.String getText()
- Returns:
- the text
setText
public void setText(java.lang.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 java.awt.Color getBorderColour()
- Returns:
- the colour
setBorderColour
public void setBorderColour(java.awt.Color colour)
- Parameters:
colour - the colour to set
getFillColour
public java.awt.Color getFillColour()
- Returns:
- the colour
setFillColour
public void setFillColour(java.awt.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 java.lang.String getSymbolType()
- Returns:
- the symbolType
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
setSymbolType
public void setSymbolType(java.lang.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.