Package com.iizigo.prop.editor
Class PKCS12IdentityPropEditor
java.lang.Object
com.iizigo.prop.BaseEditor<PKCS12IdentityProp,byte[]> 
com.iizigo.prop.editor.PKCS12IdentityPropEditor
- All Implemented Interfaces:
- IThemeListener,- IEditedPropControllerOwner<PKCS12IdentityProp,,- byte[]> - IEditedPropertyEntry<PKCS12IdentityProp,,- byte[]> - IEditedPropertyEntryMultiProp<PKCS12IdentityProp,,- byte[]> - IPropertyDefined,- IDisposedPart
The PKCS#12 Identity property editor.
- Author:
- Christopher Mindus
- Field Summary- Fields inherited from class com.iizigo.prop.BaseEditor- appUI, combo, control, controller, definedButton, display, editor, focusListener, hasBeenModified, info, more, multipleValueWarningInput, options, parent, propController, shell, text, validator, wasDefinedAtFocusGained
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- void- assignKeyStore- (PKCS12IdentityProp id, String password) Assigns a new keystore and password.- protected void- create()Creates the property editor controls.- protected boolean- doUndefineIfEmpty- (boolean focusLost) Keeps empty strings as defined, when input has been changed specifically to empty string, or if the entry was defined when editing began.- formatValue- (byte[] value) Formats the value for user input as a String.- byte[]Gets the default defined value to set in the property when defined.Gets the single edited property.Gets the single property parent.- PropCnr[]Gets the property parents.Gets the array of edited properties.Gets a "native" tooltip to use.- protected StringGets the tooltip text to display in the entry fields (not the one for property errors or validator).- protected byte[]Gets the property value for a user input.- void- onDefine- (boolean on) Called to define or undefine.- protected voidCalled when mouse is double-clicked in the text or combobox.- void- onMore()Called when the "more..." button is pressed.- protected void- setToolTipText- (String msg) Sets the tooltip text.- Methods inherited from class com.iizigo.prop.BaseEditor- assignMaster, beginProcessEvent, canProcessEvents, checkInput, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentInput, getCurrentValue, getCurrentValues, getModifyListener, getOption, getSelectionListener, getSeverity, getShell, getToolTipText2, hasFocus, initialize, isDisposed, isPropReadOnly, onDispose, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onThemeChanged, onUndefined, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, showMenu, updateTooltip, validate
- Constructor Details- PKCS12IdentityPropEditorpublic PKCS12IdentityPropEditor()Default constructor called before createControls.
 
- Method Details- createprotected void create()Creates the property editor controls.- Specified by:
- createin class- BaseEditor<PKCS12IdentityProp,- byte[]> 
 
- getNativeToolTipGets a "native" tooltip to use.- Overrides:
- getNativeToolTipin class- BaseEditor<PKCS12IdentityProp,- byte[]> 
- Returns:
- null for none, otherwise the IzToolTip instance.
 
- setToolTipTextSets the tooltip text. The default is to apply the getToolTipText() text to the edit control.- Overrides:
- setToolTipTextin class- BaseEditor<PKCS12IdentityProp,- byte[]> 
- Parameters:
- msg- Message in tooltip (normally error), null for none, in which case the getToolTipText2() is used.
 
- getEditedPropsGets the array of edited properties.
- getEditedPropGets the single edited property.- Returns:
- The single instance, or null for multiple or none.
 
- getEditedPropParentGets the single property parent.- Returns:
- The parent, or null for multiple or none.
 
- getEditedPropParentsGets the property parents.- Returns:
- The parent, or null for multiple or none.
 
- getToolTipTextGets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
- getToolTipTextin class- BaseEditor<PKCS12IdentityProp,- byte[]> 
 
- getDefaultValuepublic byte[] getDefaultValue()Gets the default defined value to set in the property when defined.- Specified by:
- getDefaultValuein interface- IEditedPropControllerOwner<PKCS12IdentityProp,- byte[]> 
- Specified by:
- getDefaultValuein class- BaseEditor<PKCS12IdentityProp,- byte[]> 
 
- doUndefineIfEmptyprotected boolean doUndefineIfEmpty- (boolean focusLost) Keeps empty strings as defined, when input has been changed specifically to empty string, or if the entry was defined when editing began.- Overrides:
- doUndefineIfEmptyin class- BaseEditor<PKCS12IdentityProp,- byte[]> 
 
- getValueGets the property value for a user input.- Specified by:
- getValuein class- BaseEditor<PKCS12IdentityProp,- byte[]> 
- Parameters:
- input- The current user input.
- Returns:
- The property value for the input, or null to un-define the property.
 
- formatValueFormats the value for user input as a String.- Specified by:
- formatValuein interface- IEditedPropControllerOwner<PKCS12IdentityProp,- byte[]> 
- Specified by:
- formatValuein class- BaseEditor<PKCS12IdentityProp,- byte[]> 
- Parameters:
- value- The value.
- Returns:
- The formatted value.
 
- onDefinepublic void onDefine- (boolean on) Called to define or undefine.- Specified by:
- onDefinein interface- IPropertyDefined
- Overrides:
- onDefinein class- BaseEditor<PKCS12IdentityProp,- byte[]> 
- Parameters:
- on- The defined state.
 
- onDoubleClickCalled when mouse is double-clicked in the text or combobox. Overridden to check if Goto reference is enabled, and if so goes there.- Overrides:
- onDoubleClickin class- BaseEditor<PKCS12IdentityProp,- byte[]> 
 
- onMorepublic void onMore()Called when the "more..." button is pressed. Override to display dialog box.- Overrides:
- onMorein class- BaseEditor<PKCS12IdentityProp,- byte[]> 
 
- assignKeyStoreAssigns a new keystore and password.- Parameters:
- id- The keystore property.
- password- The password for the keystore and private key (same password).