|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.espirit.firstspirit.ui.gadgets.GadgetIdentifier
public final class GadgetIdentifier
Identifier for gadgets providing information to find named form elements in a gadget model.
The original gadget's identifier will be identified having the GadgetIdentifier.FORM_TAG
as key.
A gadget may decide to identify inner components by handing over an identifier with a custom key.
Hierarchical gadgets should envelop
inner forms to enable hierarchic identification.
Field Summary | |
---|---|
static String |
FORM_TAG
The generic default form-based identifier's key. |
Method Summary | |
---|---|
GadgetIdentifier |
envelop(String name,
Serializable key)
Envelop this identifier as inner node of a new identifier. |
GadgetIdentifier |
forLanguage(Language language)
Get an identifier from this instance for a specific language. |
static GadgetIdentifier |
from(GomFormElement form)
Get a default identifier for a given form element. |
GadgetIdentifier |
getInnerNode()
Get the inner node of a hierarchical identifier. |
Serializable |
getKey()
Get the key of the specific gadget component. |
Language |
getLanguage()
Get the language this identifier was created for. |
String |
getName()
Get the name of the gadget. |
static GadgetIdentifier |
on(String name,
Serializable key)
Get an identifier based on the given name and key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FORM_TAG
Method Detail |
---|
public static GadgetIdentifier from(@NotNull GomFormElement form)
form
- The form element to base the identifier upon.
public static GadgetIdentifier on(@NotNull String name, @NotNull Serializable key)
name
- The name of the gadget.key
- The key of a specific component.
public GadgetIdentifier envelop(@NotNull String name, @NotNull Serializable key)
name
- The name of the outer gadget node.key
- A tag for gadget specific identification means.
public GadgetIdentifier forLanguage(@NotNull Language language)
language
- The language to get the identifier for.
@NotNull public String getName()
@NotNull public Serializable getKey()
@Nullable public Language getLanguage()
null
@Nullable public GadgetIdentifier getInnerNode()
null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |