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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check the item has at least something in code and something in text.getCode()
int
int
getOrder()
Get a set of data that describes all of the parameters in a classint
getText()
getTopic()
boolean
void
setBorderColour
(Color colour) void
void
setDatabaseId
(int databaseId) void
setFillColour
(Color colour) void
setOrder
(int order) void
setSelectable
(boolean selectable) void
setSymbolType
(String symbolType) void
void
toString()
-
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:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-