1 20 21 package org.apache.directory.ldapstudio.browser.common.widgets; 22 23 24 import org.apache.directory.ldapstudio.browser.core.BrowserCoreConstants; 25 26 27 38 public class BinaryEncodingInput extends OptionsInput 39 { 40 41 47 public BinaryEncodingInput( String initialRawValue, boolean asGroup ) 48 { 49 super( "Binary Encoding", getDefaultDisplayValue(), getDefaultRawValue(), getOtherDisplayValues(), 50 getOtherRawValues(), initialRawValue, asGroup, false ); 51 52 } 53 54 55 60 private static String getDefaultDisplayValue() 61 { 62 return "Ignore"; 63 } 64 65 66 72 private static String getDefaultRawValue() 73 { 74 return Integer.toString( BrowserCoreConstants.BINARYENCODING_IGNORE ); 75 } 76 77 78 83 private static String [] getOtherDisplayValues() 84 { 85 return new String [] 86 { "Ignore", "BASE-64", "HEX" }; 87 } 88 89 90 95 private static String [] getOtherRawValues() 96 { 97 return new String [] 98 { Integer.toString( BrowserCoreConstants.BINARYENCODING_IGNORE ), 99 Integer.toString( BrowserCoreConstants.BINARYENCODING_BASE64 ), 100 Integer.toString( BrowserCoreConstants.BINARYENCODING_HEX ) }; 101 } 102 103 } 104 | Popular Tags |