Property Editors

ComboBoxPropertyEditor

The corresponding package is commons.nb.jobs.properties.editors in the module commons-app-jobs. Given two arrays of display values and string codes, it creates a combo box of which user can select a value. The corresponding string code becomes the selected value.

 

 An Example Implementation
AlgoPE
public static class AlgoPE extends ComboBoxPropertyEditor {
   public AlgoPE() {
     super( new String[] { "Algo-1", "Algo-2" },
            new String[] { "code-1", "code-2" }
          );
   }
}