Package generalDatabase.lookupTables
Class LookupItem
java.lang.Object
generalDatabase.lookupTables.LookupItem
- All Implemented Interfaces:
Serializable,Cloneable,ManagedParameters
hold data for a single item from the lookup list.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck the item has at least something in code and something in text.getCode()intintgetOrder()Get a set of data that describes all of the parameters in a classintgetText()getTopic()booleanvoidsetBorderColour(Color colour) voidvoidsetDatabaseId(int databaseId) voidsetFillColour(Color colour) voidsetOrder(int order) voidsetSelectable(boolean selectable) voidsetSymbolType(String symbolType) voidvoidtoString()
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Method Details
-
getOrder
public int getOrder()- Returns:
- the order
-
setOrder
public void setOrder(int order) - Parameters:
order- the order to set
-
getTopic
- Returns:
- the topic
-
setTopic
- Parameters:
topic- the topic to set
-
getCode
- Returns:
- the code
-
setCode
- Parameters:
code- the code to set
-
getText
- Returns:
- the text
-
setText
- 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
- Returns:
- the colour
-
setBorderColour
- Parameters:
colour- the colour to set
-
getFillColour
- Returns:
- the colour
-
setFillColour
- 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
- Returns:
- the symbolType
-
toString
-
setSymbolType
- Parameters:
symbolType- the symbolType to set
-
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
Description copied from interface:ManagedParametersGet a set of data that describes all of the parameters in a class- Specified by:
getParameterSetin interfaceManagedParameters- Returns:
- description of the parameters in a class.
-