public class ComponentObjectImpl extends NamedObjectImpl implements ComponentObject, VariableManagerOwner, OperationContainer, ComponentOperationsManager, PropertyManager
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXDEFINITION_STATE_ACTIVE, DEFINITION_STATE_DEPRECATED, PROPERTY_DEFINITION_STATE, PROPERTY_ERROR_MSG, PROPERTY_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIP| Constructor and Description |
|---|
ComponentObjectImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ComponentObjectListener listener)
Add a listener for the Component Object
|
void |
applyPersonalization() |
void |
applyPersonalization(int mode) |
protected void |
create() |
static ComponentObjectImpl |
createRef(java.lang.String name,
DefObject bo) |
protected VariableValueManager |
createVariableValueManager(VariableManagerOwnerBase owner,
VariableManager[] varMgrParents) |
ExprCodeSource |
editCodeSource(ExprCodeSource codeSource)
Notify that ComponentOperationsManager that the client expects to
edit the CodeSource.
|
ExprCodeSource |
ensureCodeSource(ExprDef exprDef)
Ensure a named code source in the operations manager.
|
VariableValueManager |
ensureVariableManager()
Returns this object's Variable Value Manager.
|
protected PersDefBase |
findPersDefObject() |
protected java.lang.Object |
getAdfmConfigStartupProperty(java.lang.String propertyName) |
java.util.HashMap |
getAllProperties(java.util.HashMap map,
LocaleContext locale) |
ApplicationModule |
getApplicationModule()
Gets the parent Application Module that contains this component object.
|
protected boolean |
getBooleanAdfmConfigProperty(java.lang.String propertyName) |
protected java.util.Vector |
getCompListeners()
Gets the list of component Object listeners.
|
protected java.util.ArrayList |
getCompListenersList()
Gets the list of component Object listeners.
|
DefObject |
getDef() |
java.lang.String |
getDefFullName()
Gets the Full Name of the Def Object.
|
protected DefinitionManager |
getDefinitionManager() |
java.lang.String |
getDefinitionState(LocaleContext locale)
Retrives the definition state string that indicates if this object is deprecated.
|
DefinitionManager |
getDefManager() |
java.lang.String |
getDefName()
Gets the name of the Def Object.
|
int |
getDefScope() |
java.lang.String |
getFullNameForPersDef() |
java.lang.String |
getHintValue(LocaleContext locale,
java.lang.String sHintName)
Return hint value based on the hint name
|
java.lang.String |
getLabel(LocaleContext locale)
Retrieves the label to be used in any attribute prompts
|
java.lang.String |
getLabelPlural(LocaleContext locale)
Retrives the LabelPlural text to be used for this attribute
|
java.lang.Class |
getMessageBundleClass() |
OperationDefinitions |
getOperationDefinitions() |
java.lang.String |
getProxyClassName()
Gets the Proxy class name for the corresponding deployment
platform.
|
protected java.lang.String |
getProxyClassName(java.lang.String platform)
Gets the proxy class name for a deplyoment platform.
|
ResourceBundleDef |
getResourceBundleDef() |
ResourceBundleDef |
getResourceBundleDef(java.lang.String resBundleId) |
ApplicationModuleImpl |
getRootApplicationModule()
Gets the root application module implementation.
|
OperationDefinitions |
getRowOperationDefinitions() |
OperationDefinitions |
getScriptOperationDefinitions() |
OperationDefinitions |
getScriptRowOperationDefinitions() |
java.lang.String |
getStaticDefFullName() |
protected java.lang.String |
getStringFromMessageBundle(java.lang.String property,
LocaleContext locale,
boolean tryNamedProperty)
internal only for framework use.
|
StructureDef |
getStructureDef() |
java.lang.String |
getTooltip(LocaleContext locale)
Retrives the tooltip text to be used for this attribute
|
VariableValueManager |
getVariableManager()
Returns this object's current Variable Value Manager.
|
boolean |
hasVariables()
Returns a flag indicating whether this object has
Variables or not.
|
boolean |
isDead() |
boolean |
isDynamicCodeSourceEnabled() |
boolean |
isPersonalized() |
boolean |
isRegWithPiggyMan()
Is component registered with Piggy back Manager
|
ExprDef |
lookupExprDef(OwnerType type,
java.lang.String path)
Search for an ExprDef in the ComponentOperationsManager's namespace.
|
void |
remove()
Deletes this component.
|
protected java.lang.Object |
resolvePropertyRaw(java.lang.String property,
LocaleContext locale) |
void |
setName(java.lang.String name)
Name this object.
|
protected void |
setParent(NamedObjectImpl parent)
Sets this object's parent.
|
protected void |
setProxyClassName(java.lang.String platform,
java.lang.String proxyClassName)
Set the name value pair for internal map
|
isPropertyExpression, setParent, setPropertiesMapallocatePropertyMap, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyExprEval, getPropertyMap, getPropertyNamesSet, getRawPropertyValue, getResourcesFromBundle, hasProperty, mergePropertyMap, refreshProperty, removeProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setFullName, setPropertiesMap2, setProperty, setProperty, setPropertyExpression, setPropertyExpressionMap, setPropertyMap, setRawPropertyValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFullName, getNamegetProperties, getProperty, getProperty, refreshPropertygetNamegetFullNamegetProperty, removeProperty, setProperty@Concealed public DefObject getDef()
protected java.util.ArrayList getCompListenersList()
protected java.util.Vector getCompListeners()
public final ApplicationModuleImpl getRootApplicationModule()
public static ComponentObjectImpl createRef(java.lang.String name, DefObject bo)
name - the reference object name.bo - the object to be referenced.@Restricted public java.lang.String getFullNameForPersDef()
getFullNameForPersDef in interface ComponentObjectprotected DefinitionManager getDefinitionManager()
protected PersDefBase findPersDefObject()
public void applyPersonalization()
public void applyPersonalization(int mode)
public boolean isPersonalized()
protected void create()
public java.lang.String getDefName()
getDefName in interface ComponentObjectpublic java.lang.String getDefFullName()
getDefFullName in interface ComponentObjectpublic java.lang.String getStaticDefFullName()
getStaticDefFullName in interface ComponentObjectpublic void remove()
remove in interface ComponentObjectpublic boolean isDead()
protected java.lang.String getStringFromMessageBundle(java.lang.String property,
LocaleContext locale,
boolean tryNamedProperty)
NamedObjectImplgetStringFromMessageBundle in class NamedObjectImplpublic java.lang.String getProxyClassName()
public ApplicationModule getApplicationModule()
null. For example,
if you call this method on a root AM, it will return null.null if the component object
has no parent.protected java.lang.String getProxyClassName(java.lang.String platform)
platform - deployment platformprotected void setProxyClassName(java.lang.String platform,
java.lang.String proxyClassName)
platform - the name of the platform as a String.proxyClassName - the name of the proxy class as a String.public boolean isRegWithPiggyMan()
public java.lang.String getLabel(LocaleContext locale)
GenericHintsgetLabel in interface GenericHintspublic java.lang.String getLabelPlural(LocaleContext locale)
GenericHintsgetLabelPlural in interface GenericHintspublic java.lang.String getTooltip(LocaleContext locale)
GenericHintsgetTooltip in interface GenericHintspublic java.lang.String getDefinitionState(LocaleContext locale)
GenericHintsgetDefinitionState in interface GenericHintspublic java.lang.String getHintValue(LocaleContext locale, java.lang.String sHintName)
GenericHintsgetHintValue in interface GenericHintspublic void addListener(ComponentObjectListener listener)
listener - a listener for the component object@Restricted public void setName(java.lang.String name)
setName in class NamedObjectImplname - the name to be given to this object.protected void setParent(NamedObjectImpl parent)
parent - the named object that is to be the parent of this object.public VariableValueManager getVariableManager()
VariableManagerOwnerBasenull if Variable Value Manager has
been initialized.
When a framework object is first created, its Variable Value Manager may be null. This method does not initialize (create) the Variable Value Manager.
in contrast, ensures
that the Variable Value Manager is initialized (created).VariableManagerOwnerBase.ensureVariableManager()
getVariableManager in interface VariableManagerOwnerBasenull if one was not yet initialized.public boolean hasVariables()
VariableManagerOwnerBasehasVariables in interface VariableManagerOwnerBasepublic VariableValueManager ensureVariableManager()
VariableManagerOwnerBaseensureVariableManager in interface VariableManagerOwnerBaseprotected VariableValueManager createVariableValueManager(VariableManagerOwnerBase owner, VariableManager[] varMgrParents)
protected java.lang.Object resolvePropertyRaw(java.lang.String property,
LocaleContext locale)
resolvePropertyRaw in class NamedObjectImplpublic java.util.HashMap getAllProperties(java.util.HashMap map,
LocaleContext locale)
getAllProperties in class NamedObjectImplpublic java.lang.Class getMessageBundleClass()
getMessageBundleClass in interface VariableManagerOwnerBasepublic ResourceBundleDef getResourceBundleDef()
getResourceBundleDef in interface VariableManagerOwnerBasepublic ResourceBundleDef getResourceBundleDef(java.lang.String resBundleId)
public StructureDef getStructureDef()
protected boolean getBooleanAdfmConfigProperty(java.lang.String propertyName)
protected java.lang.Object getAdfmConfigStartupProperty(java.lang.String propertyName)
public OperationDefinitions getOperationDefinitions()
getOperationDefinitions in interface OperationContainerpublic OperationDefinitions getRowOperationDefinitions()
getRowOperationDefinitions in interface OperationContainerpublic OperationDefinitions getScriptOperationDefinitions()
getScriptOperationDefinitions in interface OperationContainerpublic OperationDefinitions getScriptRowOperationDefinitions()
getScriptRowOperationDefinitions in interface OperationContainerpublic ExprCodeSource ensureCodeSource(ExprDef exprDef)
ComponentOperationsManager#updateCodeSource to update the component
operations manager with any updates that are made to this CodeSource.ensureCodeSource in interface ComponentOperationsManagerexprDef - a null exprDef may be used to indicate the a
built-in code source.public ExprCodeSource editCodeSource(ExprCodeSource codeSource)
ComponentOperationsManagereditCodeSource in interface ComponentOperationsManagerpublic ExprDef lookupExprDef(OwnerType type, java.lang.String path)
ComponentOperationsManagerlookupExprDef in interface ComponentOperationsManagertype - the OwnerType of the expressionpath - the ExprDef.getPath() of the expressionpublic boolean isDynamicCodeSourceEnabled()
isDynamicCodeSourceEnabled in interface ComponentOperationsManagerpublic int getDefScope()
getDefScope in interface ComponentOperationsManagerpublic DefinitionManager getDefManager()
getDefManager in interface ComponentOperationsManager