Class DefaultFixedReferenceEditor<T>
- java.lang.Object
-
- com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
-
- com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor<T,T>
-
- com.hybris.cockpitng.editor.defaultreferenceeditor.DefaultReferenceEditor<T>
-
- com.hybris.cockpitng.editor.defaultfixedreferenceeditor.DefaultFixedReferenceEditor<T>
-
- All Implemented Interfaces:
ReferenceEditorLogic<T>,CockpitEditorRenderer<T>,ComponentWidgetAdapterAware
public class DefaultFixedReferenceEditor<T> extends DefaultReferenceEditor<T>
Fixed values reference editor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDATA_MODEL_PROPERTYstatic intDEFAULT_PAGE_SIZEstatic java.lang.StringPAGE_SIZE-
Fields inherited from class com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor
editorLayout, pageable, pageSize, PARAM_AVAILABLE_VALUES_PROVIDER, PARAM_CREATE_ONLY, PARAM_DISABLE_DISPLAYING_DETAILS, PARAM_DISABLE_REMOVE_REFERENCE, PARAM_LABEL_PROVIDER_BEAN, PARAM_NESTED_CREATION_DISABLED, PARAM_PAGE_SIZE, PARAM_PLACEHOLDER_KEY, PARAM_REDIRECT_REFERENCE_SELECTED_SOCKET_ID, PARAM_REFERENCE_ADVANCED_SEARCH_ENABLED, PARAM_RESTRICT_TO_TYPE, PARAM_WHITELISTED_TYPES, PARENT_OBJECT, renderOnDemandSize, selectedItemsMaxSize, SOCKET_IN_REFERENCE_EDITOR, SOCKET_OUT_REFERENCE_EDITOR, SOCKET_OUT_REFERENCE_SEARCH_CTX, SOCKET_OUT_REFRENCE_SELECTED, TYPE_CODE
-
Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description DefaultFixedReferenceEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PageablecreatePageable(java.lang.String textQuery)protected WidgetModelgetModel()protected intgetPageSize()protected java.util.regex.PatterngetRegexEditorPattern()The pattern should match when the editor may be applied.java.lang.StringreadTypeCode(java.lang.String valueType)voidtriggerReferenceSelected(java.lang.Object selected)Triggers selected reference socktet output to outside widgetsvoidupdateReferencesListBoxModel()Perform search for all elements and refresh paging componentvoidupdateReferencesListBoxModel(java.lang.String textQuery)Updates search state based on the given text query.-
Methods inherited from class com.hybris.cockpitng.editor.defaultreferenceeditor.DefaultReferenceEditor
addSelectedObject, forwardEditorEvent, isEditable, refreshObjects, removeSelectedObject, render, setEditorParameters, setInitialValue
-
Methods inherited from class com.hybris.cockpitng.editor.commonreferenceeditor.AbstractReferenceEditor
allowNestedObjectCreation, createInputSocketEventListener, createNewReference, createNewReference, createReferenceLayout, extractPageSize, findAncestorEditor, getCockpitConfigurationService, getCockpitUserService, getCustomValuesProviderBeanId, getEditorContext, getEditorLayout, getEditorListener, getLabelProvider, getLabelProviderBeanName, getLabelService, getObjectFacade, getPageable, getParentEditor, getParentObject, getPermissionFacade, getPlaceholderKey, getPropertyValueService, getRedirectReferenceSelectedToParentWidget, getReferenceEditorSearchConditionHandler, getReferenceEditorSearchFacade, getReferenceSearchConditions, getReferenceSearchContextMap, getStringRepresentationOfObject, getSuccessNotificationId, getTypeCode, getTypeFacade, isDisableDisplayingDetails, isDisableRemoveReference, isOnlyCreateMode, isReferenceAdvancedSearchEnabled, loadBaseConfiguration, loadBaseConfiguration, loadSimpleSearchConfiguration, openReferenceAdvancedSearch, preserveFocus, resolveTypeToCreate, restrictTypeCode, setCommonEditorParameters, setCreateOnly, setEditorContext, setEditorLayout, setEditorListener, setLabelProviderBeanName, setNestedObjectCreationDisabled, setPageSize, setParentEditor, setParentObject, setReferenceSearchConditions, setRenderOnDemandSize, setSelectedItemsMaxSize, setSuccessNotificationId, setTypeCode
-
Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstance
-
-
-
-
Field Detail
-
DATA_MODEL_PROPERTY
public static final java.lang.String DATA_MODEL_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZE
- See Also:
- Constant Field Values
-
PAGE_SIZE
public static final java.lang.String PAGE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRegexEditorPattern
protected java.util.regex.Pattern getRegexEditorPattern()
Description copied from class:AbstractReferenceEditorThe pattern should match when the editor may be applied. If the pattern's matcher matches it should guarantee that group(1) on it's matcher returns the type code.- Overrides:
getRegexEditorPatternin classDefaultReferenceEditor<T>- Returns:
- Pattern that identifies the editor
- See Also:
Pattern,Matcher
-
readTypeCode
public java.lang.String readTypeCode(java.lang.String valueType)
- Overrides:
readTypeCodein classDefaultReferenceEditor<T>
-
updateReferencesListBoxModel
public void updateReferencesListBoxModel()
Description copied from interface:ReferenceEditorLogicPerform search for all elements and refresh paging component- Specified by:
updateReferencesListBoxModelin interfaceReferenceEditorLogic<T>- Overrides:
updateReferencesListBoxModelin classAbstractReferenceEditor<T,T>
-
updateReferencesListBoxModel
public void updateReferencesListBoxModel(java.lang.String textQuery)
Description copied from class:AbstractReferenceEditorUpdates search state based on the given text query.- Specified by:
updateReferencesListBoxModelin interfaceReferenceEditorLogic<T>- Overrides:
updateReferencesListBoxModelin classAbstractReferenceEditor<T,T>
-
createPageable
protected Pageable createPageable(java.lang.String textQuery)
-
getPageSize
protected int getPageSize()
-
triggerReferenceSelected
public void triggerReferenceSelected(java.lang.Object selected)
Description copied from interface:ReferenceEditorLogicTriggers selected reference socktet output to outside widgets- Specified by:
triggerReferenceSelectedin interfaceReferenceEditorLogic<T>- Overrides:
triggerReferenceSelectedin classAbstractReferenceEditor<T,T>- Parameters:
selected- reference currently selected
-
getModel
protected WidgetModel getModel()
-
-