-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add filter and search to the validation result table
- The validation results can now be searched and filtered by severity.
- Loading branch information
1 parent
53b978d
commit 48ea841
Showing
5 changed files
with
133 additions
and
2 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
src/main/java/de/pascalwagler/epubcheckfx/model/Severity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package de.pascalwagler.epubcheckfx.model; | ||
|
||
import atlantafx.base.theme.Styles; | ||
import de.pascalwagler.epubcheckfx.ui.Translatable; | ||
import lombok.Getter; | ||
import org.kordamp.ikonli.Ikon; | ||
import org.kordamp.ikonli.material2.Material2OutlinedAL; | ||
|
||
public enum Severity implements Translatable { | ||
|
||
|
||
SUPPRESSED(com.adobe.epubcheck.messages.Severity.SUPPRESSED, Material2OutlinedAL.INFO, Styles.TEXT_SUBTLE, "severity.suppressed"), | ||
|
||
USAGE(com.adobe.epubcheck.messages.Severity.USAGE, Material2OutlinedAL.INFO, Styles.TEXT_MUTED, "severity.usage"), | ||
|
||
INFO(com.adobe.epubcheck.messages.Severity.INFO, Material2OutlinedAL.INFO, Styles.ACCENT, "severity.info"), | ||
|
||
WARNING(com.adobe.epubcheck.messages.Severity.WARNING, Material2OutlinedAL.ERROR_OUTLINE, Styles.WARNING, "severity.warning"), | ||
|
||
ERROR(com.adobe.epubcheck.messages.Severity.ERROR, Material2OutlinedAL.ERROR_OUTLINE, Styles.DANGER, "severity.error"), | ||
|
||
FATAL(com.adobe.epubcheck.messages.Severity.FATAL, Material2OutlinedAL.ERROR_OUTLINE, Styles.DANGER, "severity.fatal"); | ||
|
||
Severity(com.adobe.epubcheck.messages.Severity ebubcheckSeverity, Ikon icon, String colorStyleClass, String i18nKey) { | ||
this.ebubcheckSeverity = ebubcheckSeverity; | ||
this.icon = icon; | ||
this.colorStyleClass = colorStyleClass; | ||
this.i18nKey = i18nKey; | ||
} | ||
|
||
@Getter | ||
private final com.adobe.epubcheck.messages.Severity ebubcheckSeverity; | ||
@Getter | ||
private final Ikon icon; | ||
@Getter | ||
private final String colorStyleClass; | ||
@Getter | ||
private final String i18nKey; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters