org.exoplatform.clouddrive.ecms.viewer
Class AbstractFileForm

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.clouddrive.ecms.BaseCloudDriveForm
                  extended by org.exoplatform.clouddrive.ecms.viewer.AbstractFileForm
All Implemented Interfaces:
CloudFileViewer, org.exoplatform.webui.core.UIPopupComponent

public abstract class AbstractFileForm
extends BaseCloudDriveForm
implements CloudFileViewer

Base support for WebUI forms based on Cloud Drive file.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
protected  org.exoplatform.clouddrive.CloudDrive drive
           
protected  org.exoplatform.clouddrive.CloudFile file
           
 
Fields inherited from class org.exoplatform.clouddrive.ecms.BaseCloudDriveForm
LOG, path, workspace
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
AbstractFileForm()
           
 
Method Summary
 org.exoplatform.clouddrive.CloudDrive getDrive()
           
 org.exoplatform.clouddrive.CloudFile getFile()
           
 String getResourceBundle(String key)
           
 void initFile(org.exoplatform.clouddrive.CloudDrive drive, org.exoplatform.clouddrive.CloudFile file)
          Initialize UI component to represent the given cloud file.
 boolean isViewable()
           
protected abstract  String localeFile()
           
 void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
          
 
Methods inherited from class org.exoplatform.clouddrive.ecms.BaseCloudDriveForm
activate, deActivate, initContext
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drive

protected org.exoplatform.clouddrive.CloudDrive drive

file

protected org.exoplatform.clouddrive.CloudFile file
Constructor Detail

AbstractFileForm

public AbstractFileForm()
Method Detail

processRender

public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
                   throws Exception

Overrides:
processRender in class org.exoplatform.webui.form.UIForm
Throws:
Exception

initFile

public void initFile(org.exoplatform.clouddrive.CloudDrive drive,
                     org.exoplatform.clouddrive.CloudFile file)
Initialize UI component to represent the given cloud file.

Specified by:
initFile in interface CloudFileViewer
Parameters:
drive - CloudDrive
file - CloudFile

getDrive

public org.exoplatform.clouddrive.CloudDrive getDrive()
Returns:
the drive

getFile

public org.exoplatform.clouddrive.CloudFile getFile()
Returns:
the file

isViewable

public boolean isViewable()
Returns:
true if file can be represented as Web document.

getResourceBundle

public String getResourceBundle(String key)

localeFile

protected abstract String localeFile()


Copyright © 2003–2015 eXo Platform SAS. All rights reserved.