|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.tbeans.BaseCompositeTransformation
@SASScope(value="ALL") public abstract class BaseCompositeTransformation
The base object for all Composite Transformation Beans. Composite TransformationBean typically consists of more than one component that make up a Selector like the Dual Selector or a Data Viewer such as the TableView or the OLPATableView.
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Examples for this class may be found on the Examples Site.
CompositeSupport,
Serialized Form| Constructor Summary | |
|---|---|
BaseCompositeTransformation()
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. |
HttpActionProvider |
getActionProvider()
Returns the ActionProvider object for all components in the composite requiring an ActionProvider. |
TransformationInterface |
getComponent(java.lang.String componentKey)
Returns a reference to a component, based on the component key. |
java.util.Map |
getComponents()
Returns a map with all the components in the composite in it. |
java.lang.String |
getDefaultTemplate()
Returns the default template to be used for this composite. |
StyleInfo |
getStyleInfo(java.lang.String componentKey,
java.lang.String styleKey)
Returns the StyleInfo object for a component/style area. |
java.util.Map |
getStyleMap()
Returns a Map containing all the style information for this component. |
java.lang.String |
getTemplate()
Returns the template used for a component. |
java.util.HashMap |
getTemplateDictionary()
Returns a user defined template dictionary for the component |
java.lang.String |
getTemplateFileName()
Returns the template file name for the component |
java.lang.String |
getTemplateLocation()
Returns the location the template file should be retrieved from. |
java.util.Map |
getVisibleComponents()
Returns a map with all the visible components in the composite. |
boolean |
isFlushEnabled()
Returns the flushEnabled flag |
void |
propertyChange(java.beans.PropertyChangeEvent pce)
|
TransformationInterface |
removeComponent(java.lang.String componentKey)
Removes a component from the CompositeComponentManager. |
void |
setActionProvider(HttpActionProvider provider)
Sets the ActionProvider object for all components in the composite requiring an ActionProvider. |
void |
setCleanUpResourcesOn(boolean b)
Set the flag that indicates whether the request and response objects should be set to null once the TransformationBean
is rendered. |
TransformationInterface |
setComponent(java.lang.String componentKey,
TransformationInterface tbean)
Adds or sets a component to the list of components contained in the composite component. |
void |
setFlushEnabled(boolean flushEnabled)
Sets the flushEnabled flag |
void |
setId(java.lang.String value)
Sets the id of the component. |
void |
setLocale(java.util.Locale loc)
Sets the Locale object for components in the composite. |
void |
setRequest(javax.servlet.http.HttpServletRequest req)
Sets the request object for components in the composite. |
void |
setResponse(javax.servlet.http.HttpServletResponse resp)
Sets the response object for components in the composite. |
void |
setStyleInfo(java.lang.String componentKey,
java.lang.String styleKey,
StyleInfo styleInfo)
Assigns a StyleInfo object to the appropriate style area. |
void |
setTemplate(java.io.File file)
Sets a template file object |
void |
setTemplate(java.lang.String template)
Sets the template for this component. |
void |
setTemplateDictionary(java.util.HashMap dictionary)
Sets a user defined dictionary for the component containing variables along with their associated values. |
void |
setTemplateFileName(java.lang.String file)
The name of the template file. |
void |
setTemplateLocation(java.lang.String location)
Sets the location the template file for this composite. |
void |
write(java.io.PrintWriter out)
Writes the custom attributes of the object. |
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 interface com.sas.actionprovider.HttpActionProviderInterface |
|---|
getRequest |
| Constructor Detail |
|---|
public BaseCompositeTransformation()
| Method Detail |
|---|
public TransformationInterface getComponent(java.lang.String componentKey)
getComponent in interface CompositeComponentInterfacecomponentKey - key for component
public TransformationInterface setComponent(java.lang.String componentKey,
TransformationInterface tbean)
setComponent in interface CompositeComponentInterfacecomponentKey - unique component keys.tbean - Transformation Bean.
public TransformationInterface removeComponent(java.lang.String componentKey)
removeComponent in interface CompositeComponentInterfaceTransformationInerface - object
public StyleInfo getStyleInfo(java.lang.String componentKey,
java.lang.String styleKey)
throws java.lang.NullPointerException
getStyleInfo in interface CompositeComponentInterfacecomponentKey - key to access the appropriate componentstyleAreKey - key to identify the style area. styleArea keys are defined for each component.
java.lang.NullPointerException - Thrown if some type of null pointer error occurs
public void setStyleInfo(java.lang.String componentKey,
java.lang.String styleKey,
StyleInfo styleInfo)
throws java.lang.NullPointerException
setStyleInfo in interface CompositeComponentInterfacecomponentKey - key to access the appropriate component,styleAreaKey - key to identify the style areastyleInfo - the StyleInfo object
java.lang.NullPointerException - Thrown if some type of null pointer error occurspublic java.util.Map getComponents()
getComponents in interface CompositeComponentInterfacepublic java.util.Map getVisibleComponents()
getVisibleComponents in interface CompositeComponentInterfacepublic void setRequest(javax.servlet.http.HttpServletRequest req)
setRequest in interface HttpActionProviderInterfacesetRequest in interface TransformationInterfacesetRequest in class BaseTransformationreq - HttpServletRequest ObjectHttpActionProviderInterface.getRequest()public void setResponse(javax.servlet.http.HttpServletResponse resp)
setResponse in interface TransformationInterfacesetResponse in class BaseTransformationresp - HttpServletResponse Objectpublic void setLocale(java.util.Locale loc)
setLocale in interface TransformationInterfacesetLocale in class BaseTransformationloc - Locale Objectpublic java.util.Map getStyleMap()
getStyleMap in interface ComplexStyleInterfacepublic java.lang.String getTemplate()
TemplateInterface
getTemplate in interface TemplateInterfacepublic void setTemplate(java.lang.String template)
TemplateInterface
setTemplate in interface TemplateInterfacepublic void setTemplateFileName(java.lang.String file)
TemplateInterface
setTemplateFileName in interface TemplateInterfacefile - the file name containing the templatepublic java.lang.String getTemplateFileName()
TemplateInterface
getTemplateFileName in interface TemplateInterfacepublic void setTemplate(java.io.File file)
TemplateInterface
setTemplate in interface TemplateInterfacefile - The file object that contains the template filepublic java.util.HashMap getTemplateDictionary()
TemplateInterface
getTemplateDictionary in interface TemplateInterfacepublic void setTemplateDictionary(java.util.HashMap dictionary)
TemplateInterface
setTemplateDictionary in interface TemplateInterfacepublic java.lang.String getDefaultTemplate()
TemplateInterface
getDefaultTemplate in interface TemplateInterface
public java.lang.String applyTemplate(BaseTransformation tbean,
java.lang.String _template)
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)
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.public java.lang.String applyTemplate(BaseTransformation tbean)
tbean - The TransformationBean which implements a com.sas.servlet.tbeans.TemplateInterface
public void setTemplateLocation(java.lang.String location)
TemplateInterface
setTemplateLocation in interface TemplateInterfacepublic java.lang.String getTemplateLocation()
TemplateInterface
getTemplateLocation in interface TemplateInterfacepublic void setCleanUpResourcesOn(boolean b)
TransformationBean
is rendered. The flag is
true by
default. This flag allows an
application to control this
setting in cases where the cleanup
should be delayed.
setCleanUpResourcesOn in class BaseTransformationb - set to true
by defaultBaseTransformation.isCleanUpResourcesOn()public void setId(java.lang.String value)
setId in interface TransformationInterfacesetId in class BaseTransformationvalue - The new idpublic void setActionProvider(HttpActionProvider provider)
setActionProvider in interface HttpActionProviderInterfaceprovider - HttpActionProvider ObjectHttpActionProviderInterface.getActionProvider()public HttpActionProvider getActionProvider()
getActionProvider in interface HttpActionProviderInterfaceprovider - HttpActionProvider Object
HttpActionProviderInterface.setActionProvider(com.sas.actionprovider.HttpActionProvider)public void propertyChange(java.beans.PropertyChangeEvent pce)
public void write(java.io.PrintWriter out)
throws java.io.IOException
write in interface TransformationInterfacewrite in interface com.sas.util.WriteToPrintWriterInterfacewrite in class BaseTransformationout - The output stream
java.io.IOException - Thrown if some type of I/O error occurspublic boolean isFlushEnabled()
public void setFlushEnabled(boolean flushEnabled)
boolean - flushEnabled, true if the commands have to be flushed after writing, false otherwise
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||