|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.espirit.firstspirit.ui.gadgets.swing.AbstractValueHoldingSwingGadget<T,F>
public abstract class AbstractValueHoldingSwingGadget<T,F extends GomFormElement>
Abstract implementation providing basic functionalities supporting value holding SwingGadgets.
Subclass-API:
AbstractValueHoldingSwingGadget.addAspect(AspectType, Object) - register an aspect for a the specified type that will be returned by AbstractValueHoldingSwingGadget.getAspect(AspectType).
The type for the value holding aspect will be added on instance creation.AbstractValueHoldingSwingGadget.notifyValueChange(GadgetIdentifier) - propagate a value change event to given host.ValueHolder.getValue() & ValueHolder.setValue(Object) - remain to be implemented.Labelable.getLabel() & Editable.setEditable(boolean) - remain to be implemented.
| Field Summary |
|---|
| Fields inherited from interface de.espirit.firstspirit.ui.gadgets.aspects.ValueHolder |
|---|
TYPE |
| Fields inherited from interface de.espirit.firstspirit.ui.gadgets.aspects.Editable |
|---|
TYPE |
| Constructor Summary | |
|---|---|
protected |
AbstractValueHoldingSwingGadget(SwingGadgetContext<F> context)
Constructor adding the core aspects. |
| Method Summary | ||
|---|---|---|
protected
|
addAspect(AspectType<A> type,
A aspect)
Add an aspect supported by this Aspectable. |
|
|
getAspect(AspectType<A> type)
Request an aspect from the aspectable. |
|
protected SpecialistsBroker |
getBroker()
Access the broker providing access to specialists on application knowledge. |
|
protected String |
getDescription()
Convenience method returning the description of the form. |
|
protected Language |
getDisplayLanguage()
Convenience method to get the language to be used for displaying values. |
|
protected F |
getForm()
Convenience method to access the form definition for this gadget. |
|
protected GadgetIdentifier |
getGadgetId()
Provides the basic gadget identifier related to the form element of this gadget. |
|
String |
getLabel()
Convenience implementation returning the display label for this gadget. |
|
protected de.espirit.firstspirit.agency.LocalizationAgent |
getLocalizationAgent()
Convenience method to get the agent providing localization functionalities. |
|
protected NotificationHost |
getNotificationHost()
Access the notification host responsibly for this value holder. |
|
protected OperationAgent |
getOperationAgent()
Convenience method to get the agent providing operations. |
|
protected Language |
getPersistencyLanguage()
Convenience method to get the language to be used for accessing values. |
|
protected UIAgent |
getUiAgent()
Convenience method to get the agent providing access to UI settings related operations. |
|
protected boolean |
isRelease()
Convenience method indicating the gadget to operate in store element release mode. |
|
protected void |
notifyValueChange(GadgetIdentifier identifier)
Notify about the value having changed. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.espirit.firstspirit.ui.gadgets.swing.SwingComponentProvider |
|---|
getComponent |
| Methods inherited from interface de.espirit.firstspirit.ui.gadgets.aspects.ValueHolder |
|---|
getValue, isEmpty, setValue |
| Methods inherited from interface de.espirit.firstspirit.ui.gadgets.aspects.Editable |
|---|
setEditable |
| Constructor Detail |
|---|
protected AbstractValueHoldingSwingGadget(SwingGadgetContext<F> context)
context - The context for this swing gadget.| Method Detail |
|---|
public final String getLabel()
getLabel in interface Labelableprotected final String getDescription()
public final <A> A getAspect(@NotNull
AspectType<A> type)
getAspect in interface AspectableA - The type of the returned instance.type - The aspect requested.
null, if the aspect is not supported.
protected final <A> void addAspect(@NotNull
AspectType<A> type,
@NotNull
A aspect)
Aspectable.
A - The type of the aspect.type - The aspect type.aspect - The aspect implementation.protected final F getForm()
protected final GadgetIdentifier getGadgetId()
@NotNull protected final NotificationHost getNotificationHost()
protected final void notifyValueChange(GadgetIdentifier identifier)
identifier - The identifier of this gadget and the specific Swing component.@NotNull protected final Language getDisplayLanguage()
protected final Language getPersistencyLanguage()
protected final boolean isRelease()
true, if release mode should be used.protected final SpecialistsBroker getBroker()
protected final de.espirit.firstspirit.agency.LocalizationAgent getLocalizationAgent()
protected final OperationAgent getOperationAgent()
protected final UIAgent getUiAgent()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||