@@ -60,7 +60,6 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
60
60
incrementalSearch . add ( this . createBox9 ( ) ) ;
61
61
incrementalSearch . add ( this . createBox10 ( ) ) ;
62
62
63
-
64
63
container . add ( standard , { left : 20 , top : 20 } ) ;
65
64
container . add ( advanced , { left : 20 , top : 200 } ) ;
66
65
container . add ( incrementalSearch , { left : 20 , top : 380 } ) ;
@@ -285,49 +284,6 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
285
284
} ,
286
285
287
286
288
- createBox8 : function ( )
289
- {
290
- var container = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 2 ) ) ;
291
- container . add ( new qx . ui . basic . Label ( "Incremental Search" ) ) ;
292
-
293
- // Creates the model data
294
- var rawData = [
295
- 'Elm street' , 'Abbey road' , 'Route 61' , 'Central station' , 'Central Park' ,
296
- 'Park Avenue' , 'Broadway' , 'Hohle Gasse' , 'Überlandstrasse'
297
- ] ;
298
- var model = qx . data . marshal . Json . createModel ( rawData ) ;
299
-
300
- // Creates the select box
301
- var selectBox = new qx . ui . form . VirtualSelectBox ( model ) ;
302
- selectBox . setIncrementalSearch ( true ) ;
303
- container . add ( selectBox ) ;
304
-
305
- return container ;
306
- } ,
307
-
308
-
309
- createBox9 : function ( )
310
- {
311
- var container = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 2 ) ) ;
312
- container . add ( new qx . ui . basic . Label ( "Incremental Search, rich labels" ) ) ;
313
-
314
- // Creates the model data
315
- var rawData = [
316
- 'Elm street' , 'Abbey road' , 'Route 61' , 'Central station' , 'Central Park' ,
317
- 'Park Avenue' , 'Broadway' , 'Hohle Gasse' , 'Überlandstrasse'
318
- ] ;
319
- var model = qx . data . marshal . Json . createModel ( rawData ) ;
320
-
321
- // Creates the select box
322
- var selectBox = new qx . ui . form . VirtualSelectBox ( model ) ;
323
- selectBox . setIncrementalSearch ( true ) ;
324
- // Set labels and highlighting rich (HTML formatting)
325
- if ( selectBox . setRich ) selectBox . setRich ( true ) ;
326
- container . add ( selectBox ) ;
327
-
328
- return container ;
329
- }
330
-
331
287
createBox8 : function ( )
332
288
{
333
289
var container = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 2 ) ) ;
@@ -350,10 +306,11 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
350
306
return container ;
351
307
} ,
352
308
309
+
353
310
createBox9 : function ( )
354
311
{
355
312
var container = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 2 ) ) ;
356
- container . add ( new qx . ui . basic . Label ( "Incremental Search, rich highlighting" ) ) ;
313
+ container . add ( new qx . ui . basic . Label ( "Incremental Search, html highlighting" ) ) ;
357
314
358
315
// Creates the model data
359
316
var rawData = [
@@ -365,7 +322,7 @@ qx.Class.define("qxl.demobrowser.demo.virtual.SelectBox",
365
322
// Creates the select box
366
323
var selectBox = new qx . ui . form . VirtualSelectBox ( model ) . set ( {
367
324
incrementalSearch : true ,
368
- highlightMode : 'plain '
325
+ highlightMode : 'html '
369
326
} ;
370
327
container . add ( selectBox ) ;
371
328
0 commit comments