@@ -56,11 +56,14 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
56
56
advanced . add ( this . createBox6 ( ) ) ;
57
57
advanced . add ( this . createBox7 ( ) ) ;
58
58
59
- advanced . add ( this . createBox8 ( ) ) ;
60
- advanced . add ( this . createBox9 ( ) ) ;
59
+ search . add ( this . createBox8 ( ) ) ;
60
+ search . add ( this . createBox9 ( ) ) ;
61
+ search . add ( this . createBox10 ( ) ) ;
61
62
62
63
container . add ( standard , { left : 20 , top : 20 } ) ;
63
64
container . add ( advanced , { left : 20 , top : 200 } ) ;
65
+ container . add ( search , { left : 20 , top : 380 } ) ;
66
+
64
67
this . getRoot ( ) . add ( scroller , { edge : 0 } ) ;
65
68
} ,
66
69
@@ -281,10 +284,10 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
281
284
return container ;
282
285
}
283
286
284
- createBox9 : function ( )
287
+ createBox8 : function ( )
285
288
{
286
289
var container = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 2 ) ) ;
287
- container . add ( new qx . ui . basic . Label ( "Incremental Search" ) ) ;
290
+ container . add ( new qx . ui . basic . Label ( "Incremental Search, plain highlighting " ) ) ;
288
291
289
292
// Creates the model data
290
293
var rawData = [
@@ -294,8 +297,10 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
294
297
var model = qx . data . marshal . Json . createModel ( rawData ) ;
295
298
296
299
// Creates the select box
297
- var selectBox = new qx . ui . form . VirtualSelectBox ( model ) ;
298
- selectBox . setIncrementalSearch ( true ) ;
300
+ var selectBox = new qx . ui . form . VirtualSelectBox ( model ) . set ( {
301
+ incrementalSearch : true ,
302
+ highlightMode : 'plain'
303
+ } ;
299
304
container . add ( selectBox ) ;
300
305
301
306
return container ;
@@ -314,10 +319,32 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
314
319
var model = qx . data . marshal . Json . createModel ( rawData ) ;
315
320
316
321
// Creates the select box
317
- var selectBox = new qx . ui . form . VirtualSelectBox ( model ) ;
318
- selectBox . setIncrementalSearch ( true ) ;
319
- // Make labels and highlighting rich (HTML formatted)
320
- selectBox . setRich ( true ) ;
322
+ var selectBox = new qx . ui . form . VirtualSelectBox ( model ) . set ( {
323
+ incrementalSearch : true ,
324
+ highlightMode : 'plain'
325
+ } ;
326
+ container . add ( selectBox ) ;
327
+
328
+ return container ;
329
+ } ,
330
+
331
+ createBox10 : function ( )
332
+ {
333
+ var container = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 2 ) ) ;
334
+ container . add ( new qx . ui . basic . Label ( "Incremental Search, no highlighting" ) ) ;
335
+
336
+ // Creates the model data
337
+ var rawData = [
338
+ 'Elm street' , 'Abbey road' , 'Route 61' , 'Central station' , 'Central Park' ,
339
+ 'Park Avenue' , 'Broadway' , 'Hohle Gasse' , 'Überlandstrasse'
340
+ ] ;
341
+ var model = qx . data . marshal . Json . createModel ( rawData ) ;
342
+
343
+ // Creates the select box
344
+ var selectBox = new qx . ui . form . VirtualSelectBox ( model ) . set ( {
345
+ incrementalSearch : true ,
346
+ highlightMode : 'none'
347
+ } ;
321
348
container . add ( selectBox ) ;
322
349
323
350
return container ;
0 commit comments