Class AbstractValueHoldingSwingGadget<T,F extends GomFormElement> 
java.lang.Object
de.espirit.firstspirit.ui.gadgets.swing.AbstractValueHoldingSwingGadget<T,F> 
- All Implemented Interfaces:
- Gadget,- Aspectable,- Editable,- Labelable,- ValueHolder<T>,- SwingComponentProvider,- SwingGadget
@Experimental
public abstract class AbstractValueHoldingSwingGadget<T,F extends GomFormElement> 
extends Object
implements SwingGadget, ValueHolder<T>, Editable
Abstract implementation providing basic functionalities supporting 
value holding SwingGadgets.
 Subclass-API:
-  addAspect(AspectType, Object)- register an aspect for a the specified type that will be returned bygetAspect(AspectType). The type for the value holding aspect will be added on instance creation.
-  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.
- Since:
- 4.2.405
- 
Field SummaryFields inherited from interface de.espirit.firstspirit.ui.gadgets.aspects.ValueHolderTYPE
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor adding the core aspects.
- 
Method SummaryModifier and TypeMethodDescriptionfinal <A> voidaddAspect(@NotNull AspectType<A> type, A aspect) Add an aspect supported by thisAspectable.final <A> AgetAspect(@NotNull AspectType<A> type) Request an aspect from the aspectable.final SpecialistsBrokerAccess the broker providing access to specialists on application knowledge.The context container for this gadget.final StringConvenience method returning the description of the form.final @NotNull LanguageConvenience method to get the language to be used for displaying values.final FgetForm()Convenience method to access the form definition for this gadget.final GadgetIdentifierProvides the basic gadget identifier related to the form element of this gadget.final StringgetLabel()Convenience implementation returning the display label for this gadget.final de.espirit.firstspirit.agency.LocalizationAgentConvenience method to get the agent providing localization functionalities.final @NotNull NotificationHostAccess the notification host responsibly for this value holder.final OperationAgentConvenience method to get the agent providing operations.final LanguageConvenience method to get the language to be used for accessing values.final UIAgentConvenience method to get the agent providing access to UI settings related operations.The requested view mode for this gadget.final booleanConvenience method indicating the gadget to operate in store element release mode.final voidnotifyStateChange(GadgetIdentifier identifier) Notify about the value state having changed.final voidnotifyValueChange(GadgetIdentifier identifier) Notify about the value having changed.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.espirit.firstspirit.ui.gadgets.aspects.EditablesetEditableMethods inherited from interface de.espirit.firstspirit.ui.gadgets.swing.SwingComponentProvidergetComponentMethods inherited from interface de.espirit.firstspirit.ui.gadgets.aspects.ValueHoldergetValue, isEmpty, setValue
- 
Constructor Details- 
AbstractValueHoldingSwingGadgetConstructor adding the core aspects.- Parameters:
- context- The context for this swing gadget.
- Since:
- 4.2.405
 
 
- 
- 
Method Details- 
getContextThe context container for this gadget.- Returns:
- The context container for this gadget.
- Since:
- 5.2.900
 
- 
getViewModeThe requested view mode for this gadget. Shortcut forgetContext().getViewMode().- Returns:
- The requested view mode for this gadget.
- Since:
- 5.2.900
 
- 
getLabelConvenience implementation returning the display label for this gadget.
- 
getDescriptionConvenience method returning the description of the form.- Returns:
- The form's description.
- Since:
- 4.2.405
 
- 
getAspectRequest an aspect from the aspectable.- Specified by:
- getAspectin interface- Aspectable
- Type Parameters:
- A- The type of the returned instance.
- Parameters:
- type- The aspect requested.
- Returns:
- The aspect instance or null, if the aspect is not supported.
- Since:
- 4.2.405
 
- 
addAspectAdd an aspect supported by thisAspectable.- Type Parameters:
- A- The type of the aspect.
- Parameters:
- type- The aspect type.
- aspect- The aspect implementation.
- Since:
- 4.2.405
 
- 
getFormConvenience method to access the form definition for this gadget.- Returns:
- This gadget's form definition.
- Since:
- 4.2.405
 
- 
getGadgetIdProvides the basic gadget identifier related to the form element of this gadget.- Returns:
- The basic gadget identifier.
- Since:
- 4.2.405
 
- 
getNotificationHostAccess the notification host responsibly for this value holder. The host will be set during the initialization phase following the instantiation of this value holder.- Returns:
- The notification host.
- Since:
- 4.2.405
 
- 
notifyValueChangeNotify about the value having changed.- Parameters:
- identifier- The identifier of this gadget and the specific Swing component.
- Since:
- 4.2.405
 
- 
notifyStateChangeNotify about the value state having changed.- Parameters:
- identifier- The identifier of this gadget and the specific Swing component.
- Since:
- 5.2.25
 
- 
getDisplayLanguageConvenience method to get the language to be used for displaying values.- Returns:
- The display language.
- Since:
- 4.2.405
 
- 
getPersistencyLanguageConvenience method to get the language to be used for accessing values.- Returns:
- The persistency language.
- Since:
- 4.2.405
 
- 
isReleasepublic final boolean isRelease()Convenience method indicating the gadget to operate in store element release mode.- Returns:
- true, if release mode should be used.
- Since:
- 4.2.405
 
- 
getBrokerAccess the broker providing access to specialists on application knowledge.- Returns:
- The specialists broker.
- Since:
- 4.2.405
 
- 
getLocalizationAgentpublic final de.espirit.firstspirit.agency.LocalizationAgent getLocalizationAgent()Convenience method to get the agent providing localization functionalities.- Returns:
- The localization agent.
- Since:
- 4.2.405
 
- 
getOperationAgentConvenience method to get the agent providing operations.- Returns:
- The operation agent.
- Since:
- 4.2.405
 
- 
getUiAgentConvenience method to get the agent providing access to UI settings related operations.- Returns:
- The UI agent.
- Since:
- 4.2.405
 
 
-