com.softwareag.cis.plugin.adapter
Class FileBrowserAdapter

java.lang.Object
  extended by com.softwareag.cis.server.Adapter
      extended by com.softwareag.cis.plugin.adapter.util.CommonAdapter
          extended by com.softwareag.cis.plugin.adapter.MessageBoxAdapter
              extended by com.softwareag.cis.plugin.adapter.FileBrowserAdapter
All Implemented Interfaces:
com.softwareag.cis.server.IAdapter, com.softwareag.cis.server.IServerLogConstants, com.softwareag.cis.util.IControlStatusConstants

public class FileBrowserAdapter
extends MessageBoxAdapter

Support file browsing within a popup dialog


Nested Class Summary
 
Nested classes/interfaces inherited from class com.softwareag.cis.server.Adapter
com.softwareag.cis.server.Adapter.CISAddons, com.softwareag.cis.server.Adapter.FrameMessage, com.softwareag.cis.server.Adapter.ICISStyleAddon, com.softwareag.cis.server.Adapter.LivingPopupFunctions
 
Field Summary
 
Fields inherited from class com.softwareag.cis.server.Adapter
DT_BARS, DT_LINES, DT_POINTS, FIELD_BOTHIDANDTEXT, FIELD_ONLYID, FIELD_ONLYTEXT, MLMSG, MT_ERROR, MT_ERROR_MULTILINE, MT_SUCCESS, MT_SUCCESS_MULTILINE, MT_WARNING, MT_WARNING_MULTILINE, POP_POS_CLICK
 
Fields inherited from interface com.softwareag.cis.server.IServerLogConstants
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING
 
Fields inherited from interface com.softwareag.cis.util.IControlStatusConstants
CS_DISPLAY, CS_EDIT, CS_ERROR, CS_ERROR_DISPLAY, CS_ERROR_NO_FOCUS, CS_FOCUS, CS_INVISIBLE
 
Constructor Summary
FileBrowserAdapter()
           
 
Method Summary
 void clearall()
          Reset adapter to initial state.
 java.lang.String getClientPath()
           
 java.lang.String getServerPath()
           
 void init()
          initialisation - called when creating this instance
 void onClickCancel()
           
 void onClickOK()
          Start file uploading process.
 void onUploadFinished()
          Called on when a file is uploaded.
static void openDialog(com.softwareag.cis.server.Adapter callingAdapter, java.lang.String title, java.lang.String message, FileSelectedCommand fileSelectedCommand)
          Opens dynamically generated dialog window with variable number of buttons.
 void setClientPath(java.lang.String value)
           
 void setServerPath(java.lang.String value)
           
 
Methods inherited from class com.softwareag.cis.plugin.adapter.MessageBoxAdapter
getMessage, getTitle, setMessage, setTitle
 
Methods inherited from class com.softwareag.cis.plugin.adapter.util.CommonAdapter
activate, addRecentlyProcessedAdapter, close, closePage, destroy, endProcess, executeDeferred, executeDeferred, executeEndProcess, executeIfAllowedToLooseFocus, executeNow, findKnownAdapters, findRelatedMenuExtensionId, getAdapter, getAdapterForSubSession, getApplicationContext, getBaseAdapter, getCurrentAdapters, getLocale, getLocale, getPreviousAdapter, getWorkplaceAdapter, handleErrorDuringGetPhase, handleErrorDuringInitPhase, handleErrorDuringInvokePhase, handleErrorDuringSetPhase, handleRefreshRequest, hasBeenActivated, isAlive, isClosed, isDeadAdapter, passivate, reactOnDataCollectionEnd, reactOnDataCollectionStart, reactOnDataTransferEnd, reactOnDataTransferStart, refreshTargetIfNeeded, registerActivity, removeKnownAdapter, switchToPage, unregisterActivity
 
Methods inherited from class com.softwareag.cis.server.Adapter
addAccessPathExtension, addAdapterListener, addPagePopupCommand, appendHTMLToPageName, applyFilterDataCollection, checkIfAdapterExists, checkIfAdapterExists, checkIfAdapterExists, checkIfAdapterExists, checkIfInDevelopmentMode, checkIsPopupClosing, checkIsPopupOpening, closePagePopup, closeTitleBarPopup, closeWindow, deserialize, findAccessPathExtensions, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapter, findAdapterForPage, findAdapterForPage, findAdapterId, findAdapterListener, findAdditionalAdaptersInRepsonse, findCISSessionContext, findCurrentlyProcessedAdapter, findCurrentlyProcessedMethod, findCurrentlyRequestedAdapter, findFilterDataCollection, findFunctionsLivingPopup, findHelpId, findHttpServletRequest, findHttpServletResponse, findInitParam, findInitParamMap, findInteractionObjectInfo, findPageApplication, findPageContextRoot, findPageFileName, findPagePixelHeight, findPagePixelWidth, findPageURL, findRepeatIndex, findSAMLArtifact, findServletContext, findSessionContext, findSessionId, findSubSessionContext, findSubsessionId, findValueRequestProperty, forcePageReload, getCISAddons, getCISContextMenuItems, getCISFIELDTextIdMode, getCISObjects1, getCloseWindow, getDateDisplay, getDecimalSeparator, getDisplayType, getFdiw, getForcePageReload, getFrameMessages, getIntPopupsEnabled, getIsDisplayTypeSWT, getLanguage, getMessageLongText, getMessageShortText, getMessageType, getNextPage, getNextPageId, getNextPagePopupCommands, getNextPopup, getNextPopupFeatures, getNextPopupId, getNextPopupMenuFeatures, getNextPopupModal, getNextPopupOnCloseMethod, getNextPopupOnCloseProperty, getNextPopupOnClosePropertyV, getNextPopupSessionId, getNextPopupSubsessionId, getNextPopupTitle, getPageName, getPagePopupCommands, getRefreshParent, getStyle, getTimeDisplay, getTimeZoneOffset, getXMLDataMode, includeAdapterInResponse, includeAdapterInResponse, includeAdapterInResponse, includeAdapterInResponse, invokeMethodInTarget, isRunningInPopup, isSubPageRefresh, markSubPageAdapterForDestroy, markThisAdapterForDestroy, openCISPageInNewWindow, openCISPageInTarget, openCISPageInTarget, openCISPageInTarget, openIdValueCombo, openIdValueComboOrPopup, openIdValueHelp, openModelessPopup, openModelessPopup, openModelessPopup, openPageAndRestartSession, openPageInNewWindow, openPageInTarget, openPagePopup, openPagePopup, openPopup, openPopup, openPopupInDiv, openPopupInNewSubSession, outputMessage, outputMessage, outputMessage, processAsDefault, reactOnDataCollectionEndInternal, reactOnHelpRequestForHelpId, reactOnInvokePhaseEnd, reactOnInvokePhaseStart, reactOnMFWorkplaceActivityRestart, reactOnMFWorkplaceActivityStart, reactOnPopupClosedByUser, reactOnPopupMenuClosedByUser, reactOnRequestProcessingStart, reactonStatusBarHelpRequest, refreshParent, refreshScreenOccuranceOfAdapter, refreshScreenOccuranceOfAdapter, refreshScreenOccuranceOfAdapter, refreshTarget, removeAdapterListener, replaceLiteral, replaceLiteral, replaceLiteral, replaceLiteral, replaceLiteralFromProject, replaceLiteralFromProject, replaceLiteralFromProject, replaceLiteralFromProject, repointFocusInScreen, repointFocusInScreen, repointFocusInScreen, serialize, setAdapterName, setApplication, setCISubPageRefresh, setCurrentlyProcessedAdapter, setCurrentlyRequestedAdapter, setDateDisplay, setDecimalSeparator, setDisplayType, setInteractionAdapterId, setInteractionProcess, setIntPopupsEnabled, setIsPopup, setLanguage, setPageFileName, setPageInitParam, setPageInitParamMap, setPageName, setPagePixelHeight, setPagePixelWidth, setPageURL, setParam1, setParam2, setPopupFeatures, setPopupFeatures, setPopupMenuFeatures, setPopupOnCloseMethod, setPopupTitle, setRepeatIndex, setStyle, setTimeDisplay, setTimeZoneOffset, setTraceCheckValue, setXMLDataMode, showPopupMenu, showPopupMenu, sizeTarget, switchScreenOccuranceOfSubsession, switchToPage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBrowserAdapter

public FileBrowserAdapter()
Method Detail

openDialog

public static void openDialog(com.softwareag.cis.server.Adapter callingAdapter,
                              java.lang.String title,
                              java.lang.String message,
                              FileSelectedCommand fileSelectedCommand)
Opens dynamically generated dialog window with variable number of buttons.

Parameters:
callingAdapter - - Used for retrieving an instance of ButtonPromptAdapter. which will be handling the dialog window.
title - - The title of the window.
message - - The message of the window.
fileSelectedCommand - - @see com.softwareag.cis.plugin.adapter.command.FileSelectedCommand

init

public void init()
initialisation - called when creating this instance

Specified by:
init in interface com.softwareag.cis.server.IAdapter
Overrides:
init in class com.softwareag.cis.server.Adapter

clearall

public void clearall()
Reset adapter to initial state.

Overrides:
clearall in class MessageBoxAdapter

getClientPath

public java.lang.String getClientPath()
See Also:
FileSelectedCommand.getClientPath()

setClientPath

public void setClientPath(java.lang.String value)
See Also:
FileSelectedCommand.setClientPath(String)

getServerPath

public java.lang.String getServerPath()
See Also:
FileSelectedCommand.getServerPath()

setServerPath

public void setServerPath(java.lang.String value)
See Also:
FileSelectedCommand.setServerPath(String)

onUploadFinished

public void onUploadFinished()
Called on when a file is uploaded. The file data is available at the time this method is called.


onClickCancel

public void onClickCancel()

onClickOK

public void onClickOK()
Start file uploading process.