public class FileProcessorUIUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ICON_ERROR |
static java.lang.String |
ICON_EVENTS |
static java.lang.String |
ICON_EXTENSIONS |
static java.lang.String |
ICON_FILE_BLACKLISTED |
static java.lang.String |
ICON_FILE_INDEXED |
static java.lang.String |
ICON_FILE_PARTIALLY_BLACKLISTED |
static java.lang.String |
ICON_FILE_STATUS |
static java.lang.String |
ICON_GLOBAL_REPORT |
static java.lang.String |
ICON_IGNORED |
static java.lang.String |
ICON_OK |
static java.lang.String |
ICON_POSTPONED |
static java.lang.String |
ICON_PROCESSOR |
Constructor and Description |
---|
FileProcessorUIUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDisplayPercent(int part,
int all) |
static java.lang.String |
getFileTypeIcon(java.lang.String filename,
java.lang.String userLang)
Method to get file type icon when possible.
|
static java.lang.String |
getFileTypeIconFromExtension(java.lang.String extension,
java.lang.String userLang)
Method to get file type icon when possible.
|
static java.lang.String |
getStatusIconHtml(FileProcessingLog log,
java.lang.String userLang)
Retrieve the HTML to use for the specified log's status representation
|
static java.lang.String |
getStatusIconHtml(ProcessingStatus status,
java.lang.String userLang)
Retrieve the HTML to use for the specified status representation
|
static java.lang.String |
getStatusIconName(ProcessingStatus status)
Retrieve the icon name to use for the specified status representation
|
public static java.lang.String ICON_FILE_BLACKLISTED
public static java.lang.String ICON_FILE_INDEXED
public static java.lang.String ICON_FILE_PARTIALLY_BLACKLISTED
public static java.lang.String ICON_OK
public static java.lang.String ICON_ERROR
public static java.lang.String ICON_IGNORED
public static java.lang.String ICON_POSTPONED
public static java.lang.String ICON_GLOBAL_REPORT
public static java.lang.String ICON_FILE_STATUS
public static java.lang.String ICON_PROCESSOR
public static java.lang.String ICON_EXTENSIONS
public static java.lang.String ICON_EVENTS
public static java.lang.String getStatusIconName(ProcessingStatus status)
status
- the ProcessingStatus to represent as an iconpublic static java.lang.String getStatusIconHtml(ProcessingStatus status, java.lang.String userLang)
status
- the ProcessingStatus to represent as an iconuserLang
- the ISO-639 user language in which to perform I18Npublic static java.lang.String getStatusIconHtml(FileProcessingLog log, java.lang.String userLang)
log
- the FileProcessingLog to represent as an iconuserLang
- the ISO-639 user language in which to perform I18Npublic static java.lang.String getFileTypeIcon(java.lang.String filename, java.lang.String userLang)
filename
- or part of the filename ending with current extension.userLang
- the ISO-639 user language in which to perform I18Npublic static java.lang.String getFileTypeIconFromExtension(java.lang.String extension, java.lang.String userLang)
extension
- generic file extensionuserLang
- the ISO-639 user language in which to perform I18Npublic static java.lang.String getDisplayPercent(int part, int all)
Copyright © 2001-2017 Jalios SA. All Rights Reserved.