public class FileProcessorUIUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ICON_DO_BLACKLIST |
static java.lang.String |
ICON_DO_PARTIAL_BLACKLIST |
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_PROCESSOR |
static java.lang.String |
ICON_START_REPOSITORY |
static java.lang.String |
ICON_STOP_REPOSITORY |
static java.lang.String |
ICON_UNDO_BLACKLIST |
static java.lang.String |
ICON_UNDO_PARTIAL_BLACKLIST |
static java.lang.String |
ICONS_DIR |
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 |
getStatusIconPath(ProcessingStatus status)
Retrieve the icon path to use for the specified status representation
|
public static java.lang.String ICONS_DIR
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_DO_BLACKLIST
public static java.lang.String ICON_DO_PARTIAL_BLACKLIST
public static java.lang.String ICON_UNDO_BLACKLIST
public static java.lang.String ICON_UNDO_PARTIAL_BLACKLIST
public static java.lang.String ICON_STOP_REPOSITORY
public static java.lang.String ICON_START_REPOSITORY
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 getStatusIconPath(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-2010 Jalios SA. All Rights Reserved.