Menu

#118 [UWT] Implementation RefField

1.0.8
open
None
2020-01-13
2020-01-08
Oleh Hapon
No

Implementation RefField mode for following controls:
- ComboBox
- ListBox
- RadioGroup

Implementation new properties:
- ref-property
- ref-data-type

Need special format to load items from XML like this:

  • Object(1, 'Name 1')
  • Object(2, 'Name 2')

  • Lookup(1, 'Name 1')

  • Lookup(2, 'Name 2')

  • {1, 'Name 1'}

  • {2, 'Name 2}

  • [1, 'Name 1']

  • [2, 'Name 2]

Predifined ref-property:
- index (0..)
- number (1..)
- position (1..)

Maybe need special PropertyProvider for the control
See 'displayProperty', when we use this property we use PropertyProvider?

Discussion

  • Oleh Hapon

    Oleh Hapon - 2020-01-08

    Implemented for ComboBox and ListBox only (ref-property='number').
    Need implementation for any property of Item.
    Maybe need special PropertyProvider for the control.

     

    Last edit: Oleh Hapon 2020-01-08
  • Oleh Hapon

    Oleh Hapon - 2020-01-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,18 @@
     Implementation RefField mode for following controls:
    -ComboBox
    -ListBox
    -RadioGroup
    +-ComboBox
    +-ListBox
    +-RadioGroup
    +
    +Need special format to load items from XML like this:
    +
    +-Object(1, 'Name 1')
    +-Object(2, 'Name 2')
    +
    +-Lookup(1, 'Name 1')
    +-Lookup(2, 'Name 2')
    +
    +-{1, 'Name 1'}
    +-{2, 'Name 2}
    +
    +-[1, 'Name 1']
    +-[2, 'Name 2]
    
     
  • Oleh Hapon

    Oleh Hapon - 2020-01-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -16,3 +16,8 @@
    
     -[1, 'Name 1']
     -[2, 'Name 2]
    +
    +Predifined ref-property:
    +-index (0..)
    +-number (1..)
    +-position (1..)
    
     
  • Oleh Hapon

    Oleh Hapon - 2020-01-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,23 +1,27 @@
     Implementation RefField mode for following controls:
    --ComboBox
    --ListBox
    --RadioGroup
    +- ComboBox
    +- ListBox
    +- RadioGroup
    +
    +Implementation new properties:
    +- ref-property
    +- ref-data-type
    
     Need special format to load items from XML like this:
    
    --Object(1, 'Name 1')
    --Object(2, 'Name 2')
    +- Object(1, 'Name 1')
    +- Object(2, 'Name 2')
    
    --Lookup(1, 'Name 1')
    --Lookup(2, 'Name 2')
    +- Lookup(1, 'Name 1')
    +- Lookup(2, 'Name 2')
    
    --{1, 'Name 1'}
    --{2, 'Name 2}
    +- {1, 'Name 1'}
    +- {2, 'Name 2}
    
    --[1, 'Name 1']
    --[2, 'Name 2]
    +- [1, 'Name 1']
    +- [2, 'Name 2]
    
     Predifined ref-property:
    --index (0..)
    --number (1..)
    --position (1..)
    +- index (0..)
    +- number (1..)
    +- position (1..)
    
     
  • Oleh Hapon

    Oleh Hapon - 2020-01-13
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -25,3 +25,6 @@
     - index (0..)
     - number (1..)
     - position (1..)
    +
    +Maybe need special PropertyProvider for the control
    +See 'displayProperty', when we use this property we use PropertyProvider?
    
     

Log in to post a comment.