|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.BaseActionCompositeTransformation
public abstract class BaseActionCompositeTransformation
Field Summary | |
---|---|
protected HttpViewerSupport |
viewerSupport
|
Constructor Summary | |
---|---|
BaseActionCompositeTransformation()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
applyTemplate(BaseTransformation tbean)
Applies the template by getting the dictionary from the following areas: ComponentMap - if the tbean implements com.sas.servlet.tbeans.CompositeComponentInterface ComponentStyleMap - if the tbean implements com.sas.servlet.tbeans.ComplexStyleInterface TemplateDictionary - if the tbean implements com.sas.servlet.tbeans.TemplateInterface. |
java.lang.String |
applyTemplate(BaseTransformation tbean,
java.lang.String _template)
Applies the template by getting the dictionary from the following areas: ComponentMap - if the tbean implements com.sas.servlet.tbeans.CompositeComponentInterface ComponentStyleMap - if the tbean implements com.sas.servlet.tbeans.ComplexStyleInterface TemplateDictionary - if the tbean implements com.sas.servlet.tbeans.TemplateInterface. |
void |
dispose()
This method exists for consumers to call when they are done with a component to ensure that the HttpActionProvider is cleared of all references to and for the component. |
protected ActionSupportFilter |
getActionFilter(java.lang.String actionType)
Returns the ActionSupportFilter that is needed to query an HttpActionProvider for the specified actionType. |
java.lang.String |
getActionSupportType()
Return the key that associated with a particular support class in the ActionProvider framework. |
protected HttpAction |
getComponentAction(java.lang.Object componentKey)
Returns an action that is associated with the specified componentKey. |
java.lang.Object |
getComponentActionType(java.lang.Object componentKey)
Returns the actionType key associated with the specified componentKey. |
java.lang.Object |
getUniqueId()
Returns the Viewer's uniqueId |
protected HttpViewerSupport |
getViewerSupport()
|
boolean |
isActionVisible(java.lang.String actionType,
java.lang.String areaType)
Returns a boolean indicating if the action type is visible everywhere in the specified areaType. |
java.util.Collection |
listActionTypes(java.lang.String areaType)
Returns a Collection of String keys that define the valid actionTypes for the specified area of the action support class designated the actionSupportType attribute. |
java.util.Collection |
listAreaTypes()
Returns a Collection of String keys that define the valid areaTypes for the action support class designated by the actionSupportType attribute. |
protected void |
moveActionAttributesToComponent(HttpAction action,
java.lang.Object component)
|
void |
setActionProvider(HttpActionProvider provider)
Sets the ActionProvider object for all components in the composite requiring an ActionProvider. |
void |
setActionSupportType(java.lang.String actionSupportType)
Set the key that associated with a particular support class in the ActionProvider framework. |
void |
setActionVisible(java.lang.String actionType,
java.lang.String areaType,
boolean visible)
Sets the visible status of the specified actionType for the specified area. |
void |
setComponent(java.lang.String componentKey,
TransformationInterface tbean,
java.lang.String actionType)
Adds or sets a component to the list of components contained in the composite component. |
void |
setComponentActionType(java.lang.Object componentKey,
java.lang.Object actionTypeKey)
Sets the mapping from component key to actionType key. |
void |
setUniqueId(java.lang.Object uniqueId)
Sets the Viewer's uniqueId |
void |
writeTemplate(BaseTransformation tbean,
java.lang.String _template,
java.io.PrintWriter out)
Writes the template by getting the dictionary from the following areas: ComponentMap - if the tbean implements com.sas.servlet.tbeans.CompositeComponentInterface ComponentStyleMap - if the tbean implements com.sas.servlet.tbeans.ComplexStyleInterface TemplateDictionary - if the tbean implements com.sas.servlet.tbeans.TemplateInterface. |
Methods inherited from class com.sas.servlet.tbeans.BaseCompositeTransformation |
---|
getActionProvider, getComponent, getComponents, getDefaultTemplate, getStyleInfo, getStyleMap, getTemplate, getTemplateDictionary, getTemplateFileName, getTemplateLocation, getVisibleComponents, isFlushEnabled, propertyChange, removeComponent, setCleanUpResourcesOn, setComponent, setFlushEnabled, setId, setLocale, setRequest, setResponse, setStyleInfo, setTemplate, setTemplate, setTemplateDictionary, setTemplateFileName, setTemplateLocation, write |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderViewInterface |
---|
getRequest, setRequest |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface |
---|
getActionProvider |
Field Detail |
---|
protected HttpViewerSupport viewerSupport
Constructor Detail |
---|
public BaseActionCompositeTransformation()
Method Detail |
---|
public java.lang.Object getUniqueId()
getUniqueId
in interface ActionProviderViewInterface
ActionProviderViewInterface.setUniqueId(java.lang.Object)
public void setUniqueId(java.lang.Object uniqueId)
setUniqueId
in interface ActionProviderViewInterface
uniqueId
- the Viewer's uniqueIdActionProviderViewInterface.getUniqueId()
public void setActionVisible(java.lang.String actionType, java.lang.String areaType, boolean visible)
setActionVisible
in interface ActionProviderViewInterface
actionType
- The key that identifies the type of action.area
- The area affected by the change in visibility fort the actionType. If null,
then the method call applies to all the known areaTypes.visible
- The boolean indicating whether the actionType should be hidden
or unhidden.
java.lang.IllegalArgumentException
- if non-null Area specified with a null areaType attribute.
java.lang.IllegalStateException
- if actionSupportType not set.ActionProviderViewInterface.isActionVisible(java.lang.String, java.lang.String)
,
ActionProviderSupportTypes
public boolean isActionVisible(java.lang.String actionType, java.lang.String areaType)
isActionVisible
in interface ActionProviderViewInterface
actionType
- The key that identifies the type of action as defined by the
support class.areaType
- The key that identifies the type of area as defined by the support
class.
ActionProviderViewInterface.setActionVisible(java.lang.String, java.lang.String, boolean)
,
ActionProviderSupportTypes
public java.util.Collection listAreaTypes()
listAreaTypes
in interface ActionProviderViewInterface
ActionProviderViewInterface.listActionTypes(java.lang.String)
,
ActionProviderViewInterface.setActionSupportType(java.lang.String)
public java.util.Collection listActionTypes(java.lang.String areaType)
listActionTypes
in interface ActionProviderViewInterface
areaType
- The key associated with a defined areaType.
ActionProviderViewInterface.listAreaTypes()
,
ActionProviderViewInterface.setActionSupportType(java.lang.String)
public void setActionSupportType(java.lang.String actionSupportType)
setActionSupportType
in interface ActionProviderViewInterface
actionSupportType
- The key that is associated with a particular support class.ActionProviderViewInterface.getActionSupportType()
,
ActionProviderSupportTypes
public java.lang.String getActionSupportType()
getActionSupportType
in interface ActionProviderViewInterface
ActionProviderViewInterface.setActionSupportType(java.lang.String)
,
ActionProviderSupportTypes
public java.lang.Object getComponentActionType(java.lang.Object componentKey)
componentKey
-
public void setComponentActionType(java.lang.Object componentKey, java.lang.Object actionTypeKey)
componentKey
- actionTypeKey
- public void setComponent(java.lang.String componentKey, TransformationInterface tbean, java.lang.String actionType)
componentKey
- unique component keys.tbean
- Transformation Bean.protected HttpAction getComponentAction(java.lang.Object componentKey)
componentKey
-
protected ActionSupportFilter getActionFilter(java.lang.String actionType)
actionType.
-
public java.lang.String applyTemplate(BaseTransformation tbean)
applyTemplate
in class BaseCompositeTransformation
tbean
- The TransformationBean which implements a com.sas.servlet.tbeans.TemplateInterface
public java.lang.String applyTemplate(BaseTransformation tbean, java.lang.String _template)
applyTemplate
in class BaseCompositeTransformation
tbean
- The TransformationBean which implements a com.sas.servlet.tbeans.TemplateInterface_template
- Custom Template. If null and tbean implements TemplateInterface, getTemplate() or getTemplateFileName() will be used
public void writeTemplate(BaseTransformation tbean, java.lang.String _template, java.io.PrintWriter out)
writeTemplate
in class BaseCompositeTransformation
tbean
- The TransformationBean which implements a com.sas.servlet.tbeans.TemplateInterface_template
- Custom Template. If null and tbean implements TemplateInterface, getTemplate() or getTemplateFileName() will be usedout
- The PrintWriter to which the template will be written.protected void moveActionAttributesToComponent(HttpAction action, java.lang.Object component)
public void dispose()
This method exists for consumers to call when they are done with a component to ensure that the HttpActionProvider is cleared of all references to and for the component.
Calling any methods on a component after it has been disposed is not recommended and can have undesirable results.
HttpActionProvider
protected HttpViewerSupport getViewerSupport()
public void setActionProvider(HttpActionProvider provider)
setActionProvider
in interface HttpActionProviderInterface
setActionProvider
in class BaseCompositeTransformation
provider
- HttpActionProvider ObjectHttpActionProviderInterface.getActionProvider()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |