com.groupdocs.viewer.domain
Class DocumentType

java.lang.Object
  extended by com.groupdocs.viewer.domain.DocumentType

public class DocumentType
extends Object

Document Type

Author:
Alex Bobkov

Field Summary
static String CELLS
           
static String DIAGRAM
           
static String EMAIL
           
static String IMAGE
           
static String PDF
           
static String PROJECT
           
static String SLIDES
           
static String UNKNOWN
           
static String WORDS
           
static String XPS
           
 
Constructor Summary
DocumentType()
           
 
Method Summary
static String getDocumentType(FileType fileType)
          Create a map of supported file formats and document types
Used to display corresponding file icons in file browser popup
static String getDocumentType(String key)
          Create a map of supported file formats and document types
Used to display corresponding file icons in file browser popup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORDS

public static final String WORDS
See Also:
Constant Field Values

PDF

public static final String PDF
See Also:
Constant Field Values

SLIDES

public static final String SLIDES
See Also:
Constant Field Values

CELLS

public static final String CELLS
See Also:
Constant Field Values

IMAGE

public static final String IMAGE
See Also:
Constant Field Values

EMAIL

public static final String EMAIL
See Also:
Constant Field Values

DIAGRAM

public static final String DIAGRAM
See Also:
Constant Field Values

PROJECT

public static final String PROJECT
See Also:
Constant Field Values

UNKNOWN

public static final String UNKNOWN
See Also:
Constant Field Values

XPS

public static final String XPS
See Also:
Constant Field Values
Constructor Detail

DocumentType

public DocumentType()
Method Detail

getDocumentType

public static String getDocumentType(String key)
Create a map of supported file formats and document types
Used to display corresponding file icons in file browser popup

Parameters:
key - File extention (ex: doc, pdf)
Returns:
Document type string

getDocumentType

public static String getDocumentType(FileType fileType)
Create a map of supported file formats and document types
Used to display corresponding file icons in file browser popup

Parameters:
fileType - file type
Returns:
Document type string


Copyright © 2014. All rights reserved.