com.sas.servlet.tbeans.dataselectors
Class BaseSelectorPanel

com.sas.servlet.tbeans.dataselectors.BaseSelectorPanel
All Implemented Interfaces:
HttpActionProviderInterface, com.sas.beans.PropertyChangeSource, com.sas.collection.ContentsChangedListener, com.sas.lang.ObjectDataInterface, com.sas.servlet.tbeans.AJAXControllerURLInterface, ComplexStyleInterface, CompositeComponentInterface, RenderableInterface, TemplateInterface, com.sas.servlet.tbeans.TemplateKeyInterface, TransformationInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable, java.util.EventListener
Direct Known Subclasses:
SelectorPanel

public abstract class BaseSelectorPanel
implements com.sas.collection.ContentsChangedListener

The BaseDataSelectorPanel is an abstract TransformationBean™ for creating data selector panels. Data selectors typically contain a panel and OK and Cancel buttons. The panel is a composite class that contains more granular components used to build the selector user interface.

Note that subclasses of this bean actually provide the markup rendering used in/with Servlet and JavaServer Pages technologies. If you need to add support for a markup language that is not explicitly provided with AppDev Studio, then you must extend this class.

For More Information:

Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .

Since:
3.1
See Also:
Serialized Form

Field Summary
protected  java.lang.String imageLocation
           
static int SELECTOR_EXPAND
          A key to identify the expand selector type.
static int SELECTOR_EXTERNAL
          A key to identify the external selector type.
 
Constructor Summary
BaseSelectorPanel()
           
 
Method Summary
 void contentsChanged(com.sas.collection.ContentsChangedEvent event)
          Satisfies the ContentsChangedInterface All selector panels that use remote scripting should override this method
 HttpActionProvider getActionProvider()
          Returns the HttpActionProvider object
 java.lang.String getCommandId()
          Returns the current command id used for url links.
 java.lang.String getImageLocation()
          Returns the imageLocation of the selector component The default is "assets/".
 AbstractSelectorContainer getSelector()
          Returns the selector which contains this SelectorPanel
 java.lang.Object getSelectorModel()
          Returns the selector's data model
 void setActionProvider(HttpActionProvider provider)
          Sets the HttpActionProvider object
 void setCommandId(java.lang.String commandid)
          Sets the command id property that is necessary for each link.
 void setImageLocation(java.lang.String imageLocation)
          Sets the imageLocation of the selector component The default is "assets/".
 void setSelector(AbstractSelectorContainer selector)
          Sets the selector which contains this SelectorPanel
 void setSelectorModel(java.lang.Object selectormodel)
          Sets the selector's data model
 
Methods inherited from class com.sas.servlet.tbeans.BaseCompositeTransformation
applyTemplate, applyTemplate, 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, writeTemplate
 
Methods inherited from class com.sas.servlet.tbeans.BaseTransformation
addPropertyChangeListener, addPropertyChangeListener, cleanUpResources, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCustomAttributes, getDescription, getId, getInputTransform, getLocale, getName, getObjectData, getObjectDataProperty, getOutputTransform, getRequest, getResponse, getTagEpilog, getTagProlog, hasListeners, isCleanUpResourcesOn, isVisible, removePropertyChangeListener, removePropertyChangeListener, setCustomAttributes, setInputTransform, setLocaleDependentProperties, setName, setObjectData, setObjectDataProperty, setOutputTransform, setTagEpilog, setTagProlog, setVisible, toString, write, write, write
 
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface
getRequest
 

Field Detail

SELECTOR_EXPAND

public static final int SELECTOR_EXPAND
A key to identify the expand selector type. Expand selectors are not supported in this release.

See Also:
Constant Field Values

SELECTOR_EXTERNAL

public static final int SELECTOR_EXTERNAL
A key to identify the external selector type. External selectors are displayed in a new window.

See Also:
Constant Field Values

imageLocation

protected java.lang.String imageLocation
Constructor Detail

BaseSelectorPanel

public BaseSelectorPanel()
Method Detail

setCommandId

public void setCommandId(java.lang.String commandid)
Sets the command id property that is necessary for each link.

Parameters:
commandid - The commandid to add to url links

getCommandId

public java.lang.String getCommandId()
Returns the current command id used for url links.

Returns:
the command id

getActionProvider

public HttpActionProvider getActionProvider()
Returns the HttpActionProvider object

Specified by:
getActionProvider in interface HttpActionProviderInterface
Overrides:
getActionProvider in class BaseCompositeTransformation
Returns:
HttpActionProvider object
See Also:
HttpActionProviderInterface.setActionProvider(com.sas.actionprovider.HttpActionProvider)

setActionProvider

public void setActionProvider(HttpActionProvider provider)
Sets the HttpActionProvider object

Specified by:
setActionProvider in interface HttpActionProviderInterface
Overrides:
setActionProvider in class BaseCompositeTransformation
Parameters:
HttpActionProvider - object
See Also:
HttpActionProviderInterface.getActionProvider()

setSelectorModel

public void setSelectorModel(java.lang.Object selectormodel)
Sets the selector's data model

Parameters:
selectormodel - The selector's data model

getSelectorModel

public java.lang.Object getSelectorModel()
Returns the selector's data model

Returns:
The selector's data model

getImageLocation

public java.lang.String getImageLocation()
Returns the imageLocation of the selector component The default is "assets/".

Returns:
imageLocation of the selector component

setImageLocation

public void setImageLocation(java.lang.String imageLocation)
Sets the imageLocation of the selector component The default is "assets/". Custom locations should also end with '/'

Parameters:
imageLocation - imageLocation of the selector component

contentsChanged

public void contentsChanged(com.sas.collection.ContentsChangedEvent event)
Satisfies the ContentsChangedInterface All selector panels that use remote scripting should override this method

Specified by:
contentsChanged in interface com.sas.collection.ContentsChangedListener
Parameters:
event - The contentschanged event

getSelector

public AbstractSelectorContainer getSelector()
Returns the selector which contains this SelectorPanel

Returns:
The selector which contains this SelectorPanel

setSelector

public void setSelector(AbstractSelectorContainer selector)
Sets the selector which contains this SelectorPanel

Parameters:
selector - The selector which contains this SelectorPanel



Copyright © 2009 SAS Institute Inc. All Rights Reserved.