MCPcopy Create free account
hub / github.com/dooApp/FXForm2 / FXFormSkin

Class FXFormSkin

core/src/main/java/com/dooapp/fxform/view/FXFormSkin.java:40–273  ·  view source on GitHub ↗

User: Antoine Mischler Date: 09/04/11 Time: 21:36 Skin of the FXForm control.

Source from the content-addressed store, hash-verified

38 * Skin of the FXForm control.
39 */
40public abstract class FXFormSkin extends SkinBase<AbstractFXForm> implements Skin<AbstractFXForm> {
41
42 private final static Logger logger = Logger.getLogger(FXFormSkin.class.getName());
43
44 private Node rootNode;
45
46 private AnnotationFactoryProvider annotationFactoryProvider = new AnnotationFactoryProvider();
47
48 protected Map<String, List<Element>> categoryMap = new HashMap<String, List<Element>>();
49
50 protected static class ElementNodes {
51
52 private final FXFormNode label;
53
54 private final FXFormNode editor;
55
56 private final FXFormNode tooltip;
57
58 private final FXFormNode constraint;
59
60 public ElementNodes(FXFormNode label, FXFormNode editor, FXFormNode tooltip, FXFormNode constraint) {
61 this.label = label;
62 this.editor = editor;
63 this.tooltip = tooltip;
64 this.constraint = constraint;
65 if (label != null)
66 label.getNode().getStyleClass().add(NodeType.LABEL.getStyle());
67 if (editor != null)
68 editor.getNode().getStyleClass().add(NodeType.EDITOR.getStyle());
69 if (tooltip != null)
70 tooltip.getNode().getStyleClass().add(NodeType.TOOLTIP.getStyle());
71 if (constraint != null)
72 constraint.getNode().getStyleClass().add(NodeType.CONSTRAINT.getStyle());
73 }
74
75 public FXFormNode getLabel() {
76 return label;
77 }
78
79 public FXFormNode getEditor() {
80 return editor;
81 }
82
83 public FXFormNode getTooltip() {
84 return tooltip;
85 }
86
87 public FXFormNode getConstraint() {
88 return constraint;
89 }
90
91 }
92
93
94 public FXFormSkin(AbstractFXForm fxForm) {
95 super(fxForm);
96 buildNode();
97 }

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected