Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
jvx:client:gui:choice_celleditor [2018/02/02 12:24]
admin created
jvx:client:gui:choice_celleditor [2020/06/08 14:35]
cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation)
Line 1: Line 1:
 ~~NOTRANS~~ ~~NOTRANS~~
-~~Title: Work with ChoiceCellEditors ​instead ​of Checkboxes~~+~~Title: Work With ChoiceCellEditors ​Instead ​of Checkboxes~~
  
-JVx has checkboxes defined with ICheckbox, but such checkboxes are not automatically bound to the model. It's possible to bind checkboxes manually and update the state after value changed events. If you need a checkbox automatically bound to the model an IChoiceCellEditor is the class to use. +JVx has checkboxes defined with ICheckbox, but such checkboxes are not automatically bound to the model. It's possible to bind checkboxes manually and update the state after value-changed events. If you need a checkbox automatically bound to the modelan IChoiceCellEditor is the class to use. 
  
-The choice cell editor is not a real checkbox, ​it is a cell editor that has a list of values and shows an image instead of the value. It's very easy to use it as checkbox, because the only things you need are two images. One image for checked state and one for unchecked state. You can e.g. use YES/NO, Y/N, TRUE/FALSE as checked/​unchecked values. The choice cell editor is very powerful because it offers multi-state checkboxes. This is what you need if you develop database applications,​ because two states are not enough.+The choice cell editor is not a real checkbox, ​but a cell editor that has a list of values and shows an image instead of the value. It's very easy to use it as checkbox, because the only things you need are two images. One image for checked state and one for unchecked state. You can use, for example, ​YES/NO, Y/N, or TRUE/FALSE as checked/​unchecked values. The choice cell editor is very powerful because it offers multi-state checkboxes. This is what you need if you develop database applications,​ because two states are not enough.
  
-== How to use the choice cell editor? ==+== How to Use the Choice Cell Editor? ==
  
 There are more options, but the easiest one is to set the cell editor for the column: There are more options, but the easiest one is to set the cell editor for the column:
Line 29: Line 29:
 </​file>​ </​file>​
  
-A default choice cell editor will be set automaticallyfor a columnif the metadata of the column defines allowed values. Allowed values could be set via check constraints in the database or via setAllowedValues in the column metadata.+A default choice cell editor will be set automatically for a column if the metadata of the column defines allowed values. Allowed values could be set via check constraints in the database or via setAllowedValues in the column metadata.
  
-It works great if you use check constraints,​ enums or sets in your databasefor specific columnstogether with default choice cell editors. You don't need extra source code to show "​checkboxes"​. Everything will be auto-configured.+It works great if you use check constraints,​ enumsor sets in your database for specific columns together with default choice cell editors. You don't need extra source code to show "​checkboxes"​. Everything will be autoconfigured.
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information