File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 797
797
:parent :xy-chart
798
798
:req [:x-axis :y-axis ]
799
799
:of 'javafx.scene.chart.BubbleChart)
800
+ (defmethod keyword-prop->spec-form :nilable [{:keys [of]}]
801
+ `(s/nilable ~(keyword-prop->spec-form of)))
800
802
(register-props! :labeled :control
801
803
'{:alignment {:type :enum :of javafx.geometry.Pos}
802
804
:content-display {:type :enum :of javafx.scene.control.ContentDisplay}
806
808
:graphic-text-gap {:type :number }
807
809
:line-spacing {:type :number }
808
810
:mnemonic-parsing {:type :boolean }
809
- :text {:type :string }
811
+ :text {:type :nilable :of { :type : string} }
810
812
:text-alignment {:type :enum :of javafx.scene.text.TextAlignment}
811
813
:text-fill {:type :paint }
812
814
:text-overrun {:type :enum :of javafx.scene.control.OverrunStyle}
Original file line number Diff line number Diff line change 8
8
(.getEnumConstants (resolve of)))]
9
9
(str " either of: " (str/join " , " options))))
10
10
11
+ (defmethod short-keyword-prop-help-string :nilable [{:keys [of]}]
12
+ (str " nil or " (short-keyword-prop-help-string of)))
13
+
11
14
(defmethod short-keyword-prop-help-string :coll [{:keys [item]}]
12
15
(str " coll of " (short-keyword-prop-help-string item)))
13
16
225
228
(defn- splice-syntax [& syntaxes]
226
229
(reduce #(into %1 (if (string? %2 ) [%2 ] %2 )) [] syntaxes))
227
230
231
+ (defmethod long-keyword-prop-help-syntax :nilable [{:keys [of]}]
232
+ (splice-syntax
233
+ " Nilable "
234
+ (long-keyword-prop-help-syntax of)))
235
+
228
236
(defmethod long-keyword-prop-help-syntax :desc [{:keys [of]}]
229
237
[" Cljfx desc, a map with :fx/type key
230
238
You can’t perform that action at this time.
0 commit comments