Package net.sf.basedb.core.plugin
Class GuiContext
java.lang.Object
net.sf.basedb.core.plugin.GuiContext
public class GuiContext extends Object
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2012-03-30 10:22:05 +0200 (fr, 30 mar 2012) $
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GuiContext.Type
-
Field Summary
Fields Modifier and Type Field Description private Item
item
private String
subContext
private GuiContext.Type
type
-
Constructor Summary
Constructors Constructor Description GuiContext(Item item, GuiContext.Type type)
GuiContext(Item item, GuiContext.Type type, String subContext)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object other)
Item
getItem()
String
getSubContext()
GuiContext.Type
getType()
int
hashCode()
boolean
isCorrectBasicData(Object o)
Checks if the specified object is an instance of the BasicData subclass used by theItem
in this context.boolean
isCorrectBasicItem(Object o)
Checks if the specified object is an instance of the BasicItem subclass used by theItem
in this context.static GuiContext
item(Item item)
Shortcut to create a single-item context.static GuiContext
item(Item item, String subContext)
Shortcut to create a single-item context with a subcontext.static GuiContext
list(Item item)
Shortcut to create a list context.static GuiContext
list(Item item, String subContext)
Shortcut to create a list context with a subcontext.String
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
-