public class DialogUtils extends Object
Utils class for dialogview method (FileOpen/Save).
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_IMAGE |
static String |
IMAGE_POSTFIX |
static String |
IMAGE_PREFIX |
Constructor and Description |
---|
DialogUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getFileTypeImage(String fileName)
Recognize image for the given file extension, if extension
is empty string then default image is returned.
|
String |
getSortDir(String sortFieldValue,
VtiSortField currentSortField,
VtiSort sort)
According the current sorting field and sorting order return new sorting order.
|
VtiSortField |
getSortFieldValue(String sortFieldValue)
Cast String to VtiSortField
|
VtiSort |
getSortValue(String sortValue)
Cast String to VtiSort
|
public static final String IMAGE_PREFIX
public static final String IMAGE_POSTFIX
public static final String DEFAULT_IMAGE
public static String getFileTypeImage(String fileName)
Recognize image for the given file extension, if extension is empty string then default image is returned.
fileName
- name of the file is being displayedpublic String getSortDir(String sortFieldValue, VtiSortField currentSortField, VtiSort sort)
According the current sorting field and sorting order return new sorting order.
sortFieldValue
- value of the sorting fieldcurrentSortField
- current sorting field valuesort
- current sorting orderpublic VtiSortField getSortFieldValue(String sortFieldValue)
Cast String to VtiSortField
sortFieldValue
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.