-
Notifications
You must be signed in to change notification settings - Fork 5
/
DocZonesShowDetails.java
46 lines (40 loc) · 1.87 KB
/
DocZonesShowDetails.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package org.genericsystem.ir.gui.pages;
import org.genericsystem.ir.gui.pages.DocZonesShowDetails.FiltersDiv;
import org.genericsystem.ir.gui.utils.ObservableListExtractorCustom.OCR_SELECTOR;
import org.genericsystem.ir.gui.utils.TextBindingCustom.OCR_TEXT;
import org.genericsystem.reactor.annotations.BindText;
import org.genericsystem.reactor.annotations.Children;
import org.genericsystem.reactor.annotations.ForEach;
import org.genericsystem.reactor.annotations.Style;
import org.genericsystem.reactor.annotations.Style.FlexDirectionStyle;
import org.genericsystem.reactor.annotations.StyleClass;
import org.genericsystem.reactor.gscomponents.FlexDirection;
import org.genericsystem.reactor.gscomponents.FlexDiv;
import org.genericsystem.reactor.gscomponents.HtmlTag.HtmlHyperLink;
import org.genericsystem.reactor.gscomponents.Modal.ModalWithDisplay;
//@Children(FlexDiv.class)
@Children(path = FlexDiv.class, value = { HtmlHyperLink.class, FiltersDiv.class })
@StyleClass(path = { FlexDiv.class, FiltersDiv.class }, value = "filter-results")
@Style(path = FlexDiv.class, name = "display", value = "block")
@Style(path = FlexDiv.class, name = "padding", value = "1.5em")
public class DocZonesShowDetails extends ModalWithDisplay {
@FlexDirectionStyle(FlexDirection.ROW)
@StyleClass("ocr-row")
@Children({ FilterNames.class, FiltersOcrText.class })
@ForEach(OCR_SELECTOR.class)
public static class FiltersDiv extends FlexDiv {
// For each filter, create a row with the filtername and the results of the ocr
}
@FlexDirectionStyle(FlexDirection.COLUMN)
@BindText
@StyleClass({ "ocr", "ocr-label" })
public static class FilterNames extends FlexDiv {
// Print the filtername
}
@FlexDirectionStyle(FlexDirection.COLUMN)
@BindText(OCR_TEXT.class)
@StyleClass({ "ocr", "ocr-text" })
public static class FiltersOcrText extends FlexDiv {
// Print the ocr text for the corresponding filter
}
}