Package net.sf.basedb.core.plugin
Class GuiContext
java.lang.Object
net.sf.basedb.core.plugin.GuiContext
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2012-03-30 10:22:05 +0200 (fr, 30 mar 2012) $
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Item
private final String
private final GuiContext.Type
-
Constructor Summary
ConstructorDescriptionGuiContext
(Item item, GuiContext.Type type) GuiContext
(Item item, GuiContext.Type type, String subContext) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getItem()
getType()
int
hashCode()
boolean
Checks if the specified object is an instance of the BasicData subclass used by theItem
in this context.boolean
Checks if the specified object is an instance of the BasicItem subclass used by theItem
in this context.static GuiContext
Shortcut to create a single-item context.static GuiContext
Shortcut to create a single-item context with a subcontext.static GuiContext
Shortcut to create a list context.static GuiContext
Shortcut to create a list context with a subcontext.toString()
-
Field Details
-
item
-
type
-
subContext
-
-
Constructor Details
-
GuiContext
- Parameters:
item
- Item the context holds.type
- Type of context, shows if it is a list or single view.
-
GuiContext
-
-
Method Details
-
item
Shortcut to create a single-item context.- Since:
- 2.9
-
item
Shortcut to create a single-item context with a subcontext.- Since:
- 3.2
-
list
Shortcut to create a list context.- Since:
- 2.9
-
list
Shortcut to create a list context with a subcontext.- Since:
- 3.2
-
getItem
-
getType
-
getSubContext
-
isCorrectBasicItem
Checks if the specified object is an instance of the BasicItem subclass used by theItem
in this context.- Parameters:
o
- The object to check- Since:
- 2.9
-
isCorrectBasicData
Checks if the specified object is an instance of the BasicData subclass used by theItem
in this context.- Parameters:
o
- The object to check- Since:
- 2.9
-
equals
-
hashCode
public int hashCode() -
toString
-