Package net.sf.basedb.core.data
Class GuiContextData
java.lang.Object
net.sf.basedb.core.data.GuiContextData
- All Implemented Interfaces:
Serializable
This is a helper component for the
PluginDefinitionData
item to
store the contexts where a plugin can be used in a client application.
A context is an item type and context type code. The context type code can currently
take two values: 0 = list; 1 = item- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this object is equal to anotherGuiContext
object.int
int
int
hashCode()
Calculate the hash code for the object.(package private) void
setContextType
(int contextType) (package private) void
setItemType
(int itemType)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
itemType
private int itemType -
contextType
private int contextType
-
-
Constructor Details
-
GuiContextData
GuiContextData() -
GuiContextData
public GuiContextData(int itemType, int contextType)
-
-
Method Details
-
getItemType
public int getItemType()- Hibernate: property
- column="`item_type`" type="int"
-
setItemType
void setItemType(int itemType) -
getContextType
public int getContextType()- Hibernate: property
- column="`context_type`" type="int"
-
setContextType
void setContextType(int contextType) -
equals
Check if this object is equal to anotherGuiContext
object. They are equal if both have the same item type and context type -
hashCode
public int hashCode()Calculate the hash code for the object.
-