|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.remotefileselector2.BaseRemoteFileSearch
public abstract class BaseRemoteFileSearch
The BaseRemoteFileSearch is an abstract TransformationBean
that provides the methods for setting and returning
the components and the models
used for the search facility of the
RemoteFileSelector
.
The RemoteFileSearch
class extends this class
and writes out the components with values that
reflect the state of the models.
In the case where a component is not provided, a default
transformation bean is created.
This class was created for use with the RemoteFileSelector component. Any classes that extend this class can be used as a search component with the RemoteFileSelector.
Field Summary | |
---|---|
protected RemoteFileSearchModelInterface |
model
The model used to process the search If this value is null the search will fail. |
static java.lang.String |
RB_KEY
|
Fields inherited from class com.sas.servlet.tbeans.BaseActionCompositeTransformation |
---|
viewerSupport |
Constructor Summary | |
---|---|
BaseRemoteFileSearch()
|
Method Summary | |
---|---|
protected abstract BaseExpandCollapse |
getDefaultExpandCollapseComponent()
Returns the default instance of the ExpandCollapse component. |
BaseExpandCollapse |
getExpandCollapseComponent()
Returns the ExpandCollapse
component used to toggle the display
of the search fields and buttons. |
RemoteFileSearchModelInterface |
getModel()
Returns the model used for retrieving the search file information. |
RemoteFileSelectorInterface |
getRemoteFileSelector()
Returns the RemoteFileSelector
that is
making use of this search component. |
RemoteFileSearchFieldsAttributes |
getSearchFieldsAttributes()
Returns the object that contains the viewers search criteria. |
java.lang.String |
getStartingLocation()
Returns the starting location for the search. |
boolean |
isExpandCollapseVisible()
Indicates whether the display of the search fields and buttons are controlled by the ExpandCollapse
component. |
protected abstract void |
populateStartingLocationComponent(java.lang.String path,
java.lang.String basePath)
Uses the starting location to populate the Search where
component field. |
void |
setExpandCollapseComponent(BaseExpandCollapse ec)
Set the component to use for toggling the display of the Search fields and buttons. |
void |
setExpandCollapseVisible(boolean visible)
Set the visibility state of the ExpandCollapse . |
void |
setModel(RemoteFileSearchModelInterface model)
Sets the RemoteFileSearchModelInterface
model instance. |
void |
setRemoteFileSelector(RemoteFileSelectorInterface remoteFileSelector)
RemoteFileSelector may be null if search facility is used standalone (i.e. not used in conjunction with a RemoteFileSelector) |
void |
setSearchFieldsAttributes(RemoteFileSearchFieldsAttributes searchCriteria)
Sets the object that will contain the viewers search criteria. |
void |
setStartingLocation(java.lang.String path,
java.lang.String basePath)
Set the starting location for the search. |
Methods inherited from class com.sas.servlet.tbeans.BaseActionCompositeTransformation |
---|
applyTemplate, applyTemplate, dispose, getActionFilter, getActionSupportType, getComponentAction, getComponentActionType, getUniqueId, getViewerSupport, isActionVisible, listActionTypes, listAreaTypes, moveActionAttributesToComponent, setActionProvider, 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, removeComponent, setCleanUpResourcesOn, setComponent, setFlushEnabled, setId, setLocale, setRequest, setResponse, setStyleInfo, setTemplate, setTemplate, setTemplateDictionary, setTemplateFileName, setTemplateLocation |
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
protected RemoteFileSearchModelInterface model
Constructor Detail |
---|
public BaseRemoteFileSearch()
Method Detail |
---|
public void setModel(RemoteFileSearchModelInterface model)
RemoteFileSearchModelInterface
model instance.
This model is used by the search
to load the appropriate file
data based on the specified
search criteria.
If this value is null
then the search will fail.
InformationServicesSearchModel
implements the
RemoteFileSearchModelInterface
.
model
- model that implements the
RemoteFileServerModelInterface
getModel()
,
RemoteFileSearchModelInterface
,
InformationServicesSearchModel
public RemoteFileSearchModelInterface getModel()
RemoteFileSearchModelInterface
setModel(com.sas.swing.models.remotefileselector2.RemoteFileSearchModelInterface)
,
RemoteFileSearchModelInterface
,
InformationServicesSearchModel
public void setExpandCollapseVisible(boolean visible)
ExpandCollapse
.
The ExpandCollapse component is
false by default.
visible
- If true then the
ExpandCollapse component is used
to toggle the display of the
search fields and buttons.
If false the search fields and
buttons are always visible.public boolean isExpandCollapseVisible()
ExpandCollapse
component.
true
is returned then the
ExpandCollapse
component is used to
toggle the display of
the search fields and buttonspublic void setExpandCollapseComponent(BaseExpandCollapse ec)
ec
- ExpandCollapse
component used to toggle
display of search fields and
buttonsgetExpandCollapseComponent()
,
The ExpandCollapse Class
public BaseExpandCollapse getExpandCollapseComponent()
ExpandCollapse
component used to toggle the display
of the search fields and buttons.
A default instance is returned if
a specific instance has not been
set for use on this
component.
ExpandCollapse
componentsetExpandCollapseComponent(BaseExpandCollapse)
protected abstract BaseExpandCollapse getDefaultExpandCollapseComponent()
ExpandCollapse
component.
Null is not ever returned from the
getExpandCollapse() method.
It is preferred that the
getExpandCollapse()
method is used.
ExpandCollapse
component#getExpandCollapse()
public void setSearchFieldsAttributes(RemoteFileSearchFieldsAttributes searchCriteria)
RemoteFileSearchFieldsAttributes
to see the fields available
for setting the search criteria.
searchCriteria
- RemoteFileSearchFieldsAttributes
instancegetSearchFieldsAttributes()
,
The RemoteFileSearchFieldsAttribute class
public RemoteFileSearchFieldsAttributes getSearchFieldsAttributes()
setSearchFieldsAttributes(RemoteFileSearchFieldsAttributes)
public void setStartingLocation(java.lang.String path, java.lang.String basePath)
Search where
field.
path
- starting location for searchbasePath
- The basePath is not
visible to the user. The basePath indicates
the root level. Therefore, this part of the path will
not be visible in the Search where
field. Specifying a null or a blank for the basePath
means that the top of the tree is treated as the
root level.getStartingLocation()
public java.lang.String getStartingLocation()
setStartingLocation(String, String)
protected abstract void populateStartingLocationComponent(java.lang.String path, java.lang.String basePath)
Search where
component field. The drop down
is populated with the name to
represent one level of the
directory path. Also, the
values for each item is set to
that directory level so that
when a selection is made in the
drop-down the users starting
location for the search is
updated appropriately on
the request once the search
is submitted for
processing.
path
- starting locationbasePath
- root levelpublic RemoteFileSelectorInterface getRemoteFileSelector()
RemoteFileSelector
that is
making use of this search component.
The mode of the RemoteFileSelector
component helps control when a
search occurs. SEARCH_MODE
is the mode of
RemoteFileSelector
when a search occurs.
Otherwise the mode is
REGULAR_MODE
public void setRemoteFileSelector(RemoteFileSelectorInterface remoteFileSelector)
remoteFileSelector
-
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |