|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.plugin.GuiContext
public class GuiContext
Nested Class Summary | |
---|---|
static class |
GuiContext.Type
|
Field Summary | |
---|---|
private Item |
item
|
private String |
subContext
|
private GuiContext.Type |
type
|
Constructor Summary | |
---|---|
GuiContext(Item item,
GuiContext.Type type)
|
|
GuiContext(Item item,
GuiContext.Type type,
String subContext)
|
Method Summary | |
---|---|
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 the Item in this context. |
boolean |
isCorrectBasicItem(Object o)
Checks if the specified object is an instance of the BasicItem subclass used by the Item 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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Item item
private final GuiContext.Type type
private final String subContext
Constructor Detail |
---|
public GuiContext(Item item, GuiContext.Type type)
item
- Item the context holds.type
- Type of context,
shows if it is a list or single view.public GuiContext(Item item, GuiContext.Type type, String subContext)
Method Detail |
---|
public static GuiContext item(Item item)
public static GuiContext item(Item item, String subContext)
public static GuiContext list(Item item)
public static GuiContext list(Item item, String subContext)
public Item getItem()
public GuiContext.Type getType()
public String getSubContext()
public boolean isCorrectBasicItem(Object o)
Item
in this context.
o
- The object to checkpublic boolean isCorrectBasicData(Object o)
Item
in this context.
o
- The object to checkpublic boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |