Class SecretsContextPropEditor
java.lang.Object
com.iizigo.prop.BaseEditor<StringProp, String>
com.iizigo.prop.editor.StringPropEditor
com.iizigo.server.config.SecretsContextPropEditor
- All Implemented Interfaces:
IThemeListener, IEditedPropControllerOwner<StringProp, String>, IEditedPropertyEntry<StringProp, String>, IEditedPropertyEntryMultiProp<StringProp, String>, IPropertyDefined, IDisposedPart
The editor of the secrets context of a server configuration,
$secretsContext (CC-SECRETS-CONTEXT-EDIT): a string entry field that shows the proposed name server.<project>.<file base name> while it is empty, and takes that name as its value when the property is defined. The proposal is the one the save of the configuration file sets at the first secret-marked member (EditorServerSettings.getProposedSecretsContext()); the name typed is checked by SecretsContextValidator.- Author:
- Christopher Mindus
Field Summary
Fields inherited from class StringPropEditor
descrFields inherited from class BaseEditor
appUI, combo, control, controller, definedButton, display, editor, focusListener, hasBeenModified, info, more, multipleValueWarningInput, options, parent, propController, shell, text, validator, wasDefinedAtFocusGainedConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprotected voidcreate()Creates the property editor controls: the entry field shows the proposed context while it is empty.Gets the default defined value to set in the property when defined: the proposed context when the user defines the property.static StringgetProposedContext(PropCnr[] parents) Gets the secrets context proposed for the server configuration being edited.voidonDefine(boolean on) Called from the PropertyDefinedButton: defining the property gives it the proposed context.Methods inherited from class StringPropEditor
doUndefineIfEmpty, formatValue, getToolTipText, getToolTipText2, getValue, parseOptionsMethods inherited from class BaseEditor
assignMaster, beginProcessEvent, canProcessEvents, checkInput, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentInput, getCurrentValue, getCurrentValues, getModifyListener, getNativeToolTip, getOption, getSelectionListener, getSeverity, getShell, hasFocus, initialize, isDisposed, isPropReadOnly, onDispose, onDoubleClick, onError, onF4List, onFocusGained, onFocusLost, onMore, onReadOnly, onThemeChanged, onUndefined, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
Constructor Details
SecretsContextPropEditor
public SecretsContextPropEditor()Default constructor called before createControls.
Method Details
getProposedContext
Gets the secrets context proposed for the server configuration being edited.- Parameters:
parents- The property containers of the edited property, may be null.- Returns:
- The proposed context, null when no container is a server configuration with a file.
create
protected void create()Creates the property editor controls: the entry field shows the proposed context while it is empty.- Overrides:
createin classStringPropEditor
onDefine
public void onDefine(boolean on) Called from the PropertyDefinedButton: defining the property gives it the proposed context.- Specified by:
onDefinein interfaceIPropertyDefined- Overrides:
onDefinein classBaseEditor<StringProp, String>- Parameters:
on- The defined state.
getDefaultValue
Gets the default defined value to set in the property when defined: the proposed context when the user defines the property. A property that is created to carry the error of a refused name gets the empty default of a string, never a name the user did not choose.- Specified by:
getDefaultValuein interfaceIEditedPropControllerOwner<StringProp, String>- Overrides:
getDefaultValuein classStringPropEditor