|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.remotefileselector2.BaseRemoteFileSelector
public abstract class BaseRemoteFileSelector
The BaseRemoteFileSelector is an abstract TransformationBean
that provides
the methods for setting and returning the
components and the model used to create the RemoteFileSelector
component. The
RemoteFileSelector
extends this class and writes
out the components with values that reflect the state of the
model. In the case where a component is not provided, a default
transformation bean is created.
This class was created to provide basic elements for the RemoteFileSelector component. The following basic elements are important to the selector:
REGULAR
modeSEARCH
modeNote 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.
Also, extend the base classes of the sub-components, BaseRemoteFileSearch
and BaseRemoteFileToolBar
,
when adding support for other markup languages not explicitly provided with AppDev Studio.
Field Summary |
---|
Fields inherited from class com.sas.servlet.tbeans.BaseActionCompositeTransformation |
---|
viewerSupport |
Constructor Summary | |
---|---|
BaseRemoteFileSelector()
The Default constructor. |
Method Summary | |
---|---|
void |
contentsChanged(com.sas.collection.ContentsChangedEvent event)
Sets the mode for the selector based on the executed command. |
int |
getMode()
Returns the mode for the selector. |
RemoteFileNavigationModelInterface |
getModel()
Returns the model used for managing the file data |
boolean |
isDetailViewVisibilityControlOn()
Returns wether the detail visibility control is on. |
void |
setActionProvider(HttpActionProvider provider)
Sets the HttpActionProvider object |
void |
setDetailViewVisibilityControlOn(boolean control)
Control the visibility of the detail view. |
void |
setMode(int mode)
Sets the mode for the selector. |
void |
setModel(RemoteFileNavigationModelInterface model)
Sets the model used for managing the file information. |
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, 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 |
Constructor Detail |
---|
public BaseRemoteFileSelector()
ActionProviderSuppportTypes.REMOTE_FILE_SELECTOR2_COMPOSITE_SUPPORT
This allows users to get the action provider
information necessary for setting and changing
actions. The RemoteFileSelector
does not query for actions but the
RemoteFileSearch
, the
RemoteFileToolBar
, and the
DetailViews
do query for
actions.
ActionProviderSupportTypes
Method Detail |
---|
public void setModel(RemoteFileNavigationModelInterface model)
RemoteFileServerModel
is an example
of a model that can be used for this value.
model
- RemoteFileServerModelInterfacegetModel()
public RemoteFileNavigationModelInterface getModel()
setModel(com.sas.swing.models.remotefileselector2.RemoteFileNavigationModelInterface)
public int getMode()
REGULAR_MODE
is returned as the default
mode.
REGULAR_MODE
returned by default for the
mode, if searching
SEARCH_MODE
is returned
as the modesetMode(int)
public void setMode(int mode)
SEARCH_MODE
during
a search. Otherwise the mode is
REGULAR_MODE
.
mode
- SEARCH_MODE
mode will display
the search results, while REGULAR_MODE
mode will display the current
paths filesgetMode()
public void setDetailViewVisibilityControlOn(boolean control)
false
.
control
- true
is the default
setting since it is more efficient and only
one detail view is visible with each
render by defaultisDetailViewVisibilityControlOn()
public boolean isDetailViewVisibilityControlOn()
true
returned by defaultsetDetailViewVisibilityControlOn(boolean)
public void setActionProvider(HttpActionProvider provider)
setActionProvider
in interface HttpActionProviderInterface
setActionProvider
in class BaseActionCompositeTransformation
HttpActionProvider
- objectHttpActionProviderInterface.getActionProvider()
public void contentsChanged(com.sas.collection.ContentsChangedEvent event)
NAVIGATE
then the
mode of the selector is set to REGULAR_MODE
.
If the event is SEARCH
then the
mode of the selector is set to SEARCH_MODE
.
contentsChanged
in interface com.sas.collection.ContentsChangedListener
event
- indicates what type of action or
command was executed, if navigating then the
mode is REGULAR_MODE
, or if searching the mode is
SEARCH_MODE
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |