public abstract class AbstractFileViewer extends BaseCloudDriveManagerComponent implements CloudFileViewer
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.clouddrive.CloudDrive |
drive
The drive.
|
protected org.exoplatform.clouddrive.CloudFile |
file
The file.
|
protected long |
viewableMaxSize
The viewable max size.
|
LOG| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileViewer()
Instantiates a new abstract file viewer.
|
protected |
AbstractFileViewer(long viewableMaxSize)
Instantiates a new abstract file viewer.
|
| Modifier and Type | Method and Description |
|---|---|
org.exoplatform.clouddrive.CloudDrive |
getDrive()
Gets the drive.
|
org.exoplatform.clouddrive.CloudFile |
getFile()
Gets the file.
|
void |
initFile(org.exoplatform.clouddrive.CloudDrive drive,
org.exoplatform.clouddrive.CloudFile file)
Initialize UI component to represent the given cloud file.
|
boolean |
isViewable()
Checks if is viewable.
|
void |
processRender(org.exoplatform.webui.application.WebuiRequestContext context) |
getUIAbstractManagerClass, initContextgetUIExtensionCategory, getUIExtensionName, setUIExtensionCategory, setUIExtensionNamebroadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, findComponentById, findComponentOfType, findFirstComponentOfType, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, urlprotected org.exoplatform.clouddrive.CloudDrive drive
protected org.exoplatform.clouddrive.CloudFile file
protected final long viewableMaxSize
protected AbstractFileViewer(long viewableMaxSize)
viewableMaxSize - the viewable max sizeprotected AbstractFileViewer()
public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
throws Exception
processRender in class org.exoplatform.webui.core.UIComponentExceptionpublic void initFile(org.exoplatform.clouddrive.CloudDrive drive,
org.exoplatform.clouddrive.CloudFile file)
initFile in interface CloudFileViewerdrive - CloudDrivefile - CloudFilepublic org.exoplatform.clouddrive.CloudDrive getDrive()
public org.exoplatform.clouddrive.CloudFile getFile()
public boolean isViewable()
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.