|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.tbeans.remotefileselector2.html.InformationServicesSelector
@SASScope(value="ALL") public class InformationServicesSelector
The InformationServicesSelector is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript
to represent a file selector that uses the Information Services interfaces.
InformationServicesSelector provides the ability to navigate and choose a file in
a repository.
This class extends the function of the RemoteFileSelector by providing a
default InformationServicesNavigationModel, a default
InformationServicesSearch component and
a default navigation view.
The results are displayed in a
TableView.
By default the column model for the TableView includes
the following columns:
By default all file types are displayed in
the InformationServicesSearch.
These file types
can be filtered to only display reports,
stored processes or information maps. See the
setFilterValues method
for more details on filtering the file types.
The InformationServicesSelector Transformation Bean component elements are the same as those
specified for the RemoteFileSelector component.
It is an HTML table that contains other
HTML tables, Transformation Beans, and Actions.
Once a repository instance or
a user context is provided the default
InformationServicesNavigationModel is constructed.
The default InformationServicesSelector appears similar
to the image below.
The InformationServicesSelector is one of several TransformationBeans that rely on JavaScript to provide some of its functionality. These JavaScript files are including automatically by the tbean. See JavaScriptIncludeHandler for more information about how these files are included and how to customize this behavior. The InformationServicesSelector uses the following JavaScript files:
Note that the toString() method on this class calls the write method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging
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.
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
|
| Fields inherited from class com.sas.servlet.tbeans.remotefileselector2.html.RemoteFileSelector |
|---|
DEFAULT_TEMPLATE_FILE_NAME, SEARCH_FIELDS_TEMPLATE_FILE_NAME, SEARCH_RESULTS |
| Fields inherited from class com.sas.servlet.tbeans.BaseActionCompositeTransformation |
|---|
viewerSupport |
| Fields inherited from interface com.sas.servlet.tbeans.remotefileselector2.RemoteFileSelectorInterface |
|---|
REGULAR_MODE, SEARCH_MODE |
| Constructor Summary | |
|---|---|
InformationServicesSelector()
Constructs an InformationServicesSelector transformation bean. |
|
InformationServicesSelector(com.sas.services.information.RepositoryInterface repository,
java.lang.String locationURL,
java.util.Locale locale)
The repository instance is used to create a default instance of the InformationServicesNavigationModel. |
|
InformationServicesSelector(com.sas.services.user.UserContextInterface user,
java.lang.String locationURL,
java.util.Locale locale)
The UserContextInterface instance
is used to create a default instance of the
InformationServicesNavigationModel. |
|
| Method Summary | |
|---|---|
protected BaseCheckBox |
createDefaultShowDescriptionComponent()
Returns the default instance of the Show Description CheckBox. |
com.sas.services.information.RepositoryInterface |
getRepository()
Returns the repository instance. |
com.sas.services.user.UserContextInterface |
getUserContext()
Returns the UserContextInterface
instance. |
protected void |
prepareToWriteToolBar()
Prepares the Toolbar for rendering. |
protected void |
setLocaleDependentProperties(java.util.Locale locale)
Sets properties that should be updated if the Locale changes. |
void |
setRepository(com.sas.services.information.RepositoryInterface repository)
Sets the repository navigated by the component. |
protected void |
setupView(BaseTableView table,
BaseRemoteFileModelInterface model)
Override so that the first time the detail views are rendered, they are rendered with the folders sorted first by Name |
void |
setUserContext(com.sas.services.user.UserContextInterface user)
Sets the UserContextInterface instance. |
| Methods inherited from class com.sas.servlet.tbeans.remotefileselector2.html.RemoteFileSelector |
|---|
createDefaultFileDetailView, createDefaultToolBar, createDefaultToolBar, postConstructionSetup, prepareToWriteDetailView, prepareToWriteSearch, removeComponent, setComponent, setupDetailView, setupShowDescription, sort, writeContent |
| Methods inherited from class com.sas.servlet.tbeans.remotefileselector2.BaseRemoteFileSelector |
|---|
contentsChanged, getMode, getModel, isDetailViewVisibilityControlOn, setActionProvider, setDetailViewVisibilityControlOn, setMode, setModel |
| Methods inherited from class com.sas.servlet.tbeans.BaseActionCompositeTransformation |
|---|
applyTemplate, applyTemplate, dispose, getActionFilter, getActionSupportType, getComponentAction, getComponentActionType, getUniqueId, getViewerSupport, isActionVisible, listActionTypes, listAreaTypes, moveActionAttributesToComponent, setActionSupportType, setActionVisible, setComponent, setComponentActionType, setUniqueId, writeTemplate |
| Methods inherited from class com.sas.servlet.tbeans.BaseCompositeTransformation |
|---|
getActionProvider, getComponent, getComponents, getDefaultTemplate, getStyleInfo, getStyleMap, getTemplate, getTemplateDictionary, getTemplateFileName, getTemplateLocation, getVisibleComponents, isFlushEnabled, propertyChange, setCleanUpResourcesOn, setFlushEnabled, setId, setLocale, setRequest, setResponse, setStyleInfo, setTemplate, setTemplate, setTemplateDictionary, setTemplateFileName, setTemplateLocation |
| Methods inherited from interface com.sas.servlet.tbeans.remotefileselector2.RemoteFileSelectorInterface |
|---|
getMode, getModel |
| Methods inherited from interface com.sas.servlet.tbeans.TransformationInterface |
|---|
getCustomAttributes, getDescription, getId, getLocale, getName, getRequest, getResponse, getTagEpilog, getTagProlog, isVisible, setCustomAttributes, setDescription, setId, setLocale, setName, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, write, write, write |
| Methods inherited from interface com.sas.actionprovider.HttpActionProviderViewInterface |
|---|
getRequest, setRequest |
| Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface |
|---|
getActionProvider |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
| Constructor Detail |
|---|
public InformationServicesSelector()
public InformationServicesSelector(com.sas.services.information.RepositoryInterface repository,
java.lang.String locationURL,
java.util.Locale locale)
InformationServicesNavigationModel.
repository - navigated by componentlocationURL - SBIP path used to set the initial directory files displayed
when the selector is renderedlocale - application locale
public InformationServicesSelector(com.sas.services.user.UserContextInterface user,
java.lang.String locationURL,
java.util.Locale locale)
UserContextInterface instance
is used to create a default instance of the
InformationServicesNavigationModel.
user - UserContextInterface instancelocationURL - SBIP URLlocale - application locale| Method Detail |
|---|
public void setRepository(com.sas.services.information.RepositoryInterface repository)
InformationServicesNavigationModel
instance is created and the repository is set on that model. The component is
also initialized. The default viewer is setup during
initializatioin.
The search component must have a RepositoryInterface
instance or a UserContextInterfaceinstance
to render successfully.
repository - navigated by componentgetRepository()public com.sas.services.information.RepositoryInterface getRepository()
setRepository(com.sas.services.information.RepositoryInterface)public void setUserContext(com.sas.services.user.UserContextInterface user)
UserContextInterface instance.
The userContext is useful if dependent repositories exists.
user - user context that defines the repositories to
use for navigatingpublic com.sas.services.user.UserContextInterface getUserContext()
UserContextInterface
instance.
setUserContext(com.sas.services.user.UserContextInterface)protected void prepareToWriteToolBar()
showDescription
CheckBox component is set for
REGULAR_MODE and
SEARCH_MODE.
prepareToWriteToolBar in class RemoteFileSelectorRemoteFileSelector.setupShowDescription(com.sas.servlet.tbeans.form.BaseCheckBox, com.sas.servlet.tbeans.remotefileselector2.BaseFieldRenderer)protected BaseCheckBox createDefaultShowDescriptionComponent()
BaseCheckBox instance used to indicate visibility
status for file descriptionsBaseRemoteFileToolBar#getShowDescriptionComponent()
protected void setupView(BaseTableView table,
BaseRemoteFileModelInterface model)
Name
setupView in class RemoteFileSelectortable - detailViewComponent or
searchResultsViewComponent that will
make use of the RemoteFileServerModelInterface instancemodel - model instance that will be attached to the
detailViewComponent or
searchResultsViewComponentRemoteFileSelector.setupDetailView()protected void setLocaleDependentProperties(java.util.Locale locale)
Locale changes.
The column names on the model must be reset. The column names
are only updated if the column model was created by the
component.
The model's Locale is also updated
when the viewer's
Locale is changed. This is so that the
Locale is consistent for the entire component.
To control the model's Locale call the
setLocale(Locale) method on the model after
setting the Locale on the viewer. This
would only be necessary if you wanted the model
data to reflect a Locale that is not
consistent with the viewer Locale.
The setLocale method calls this method so that the dependent properties can be updated.
setLocaleDependentProperties in class RemoteFileSelectorlocale - new locale setting
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||