2.17.2: 2011-06-17

net.sf.basedb.core.data
Class GuiContextData

java.lang.Object
  extended by net.sf.basedb.core.data.GuiContextData
All Implemented Interfaces:
Serializable

public class GuiContextData
extends Object
implements 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:
Plugins ovreview, Serialized Form
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Field Summary
private  int contextType
           
private  int itemType
           
private static long serialVersionUID
           
 
Constructor Summary
GuiContextData()
           
GuiContextData(int itemType, int contextType)
           
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another GuiContext object.
 int getContextType()
           
 int getItemType()
           
 int hashCode()
          Calculate the hash code for the object.
(package private)  void setContextType(int contextType)
           
(package private)  void setItemType(int itemType)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

itemType

private int itemType

contextType

private int contextType
Constructor Detail

GuiContextData

GuiContextData()

GuiContextData

public GuiContextData(int itemType,
                      int contextType)
Method Detail

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

public boolean equals(Object o)
Check if this object is equal to another GuiContext object. They are equal if both have the same item type and context type

Overrides:
equals in class Object

hashCode

public int hashCode()
Calculate the hash code for the object.

Overrides:
hashCode in class Object

2.17.2: 2011-06-17