Class CategoryAttrsEdit
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.ui.screen.StandardEditor<CategoryAttribute>
io.jmix.dynattrui.screen.categoryattr.CategoryAttrsEdit
- All Implemented Interfaces:
ChangeTracker
,EditorScreen<CategoryAttribute>
,FrameOwner
,ReadOnlyAwareScreen
@UiController("dynat_CategoryAttribute.edit")
@UiDescriptor("category-attrs-edit.xml")
@DialogMode(forceDialog=true)
public class CategoryAttrsEdit
extends StandardEditor<CategoryAttribute>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.StandardEditor
StandardEditor.AfterCommitChangesEvent, StandardEditor.BeforeCommitChangesEvent, StandardEditor.InitEntityEvent<E>, StandardEditor.ValidationEvent
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected static final String
protected static final String
protected InstanceContainer<CategoryAttributeConfiguration>
protected CoreProperties
protected static final String
protected DataManager
protected ComboBox<AttributeType>
protected DatatypeRegistry
protected static final String
protected TextField<BigDecimal>
protected EntityPicker<Object>
protected ValuesPicker<CategoryAttribute>
protected Dialogs
protected DynAttrMetadata
protected static final String
protected FetchPlanRepository
protected static final com.google.common.collect.Multimap<AttributeType,
String> protected FormatStringsRegistry
protected Fragments
protected static final String
protected SourceCodeEditor
protected static final String
protected JpqlUiSuggestionProvider
protected AttributeLocalizationFragment
protected static final String
protected CheckBox
protected static final String
protected TextField<BigDecimal>
protected static final String
protected Messages
protected MessageTools
protected Metadata
protected MetadataTools
protected TextField<BigDecimal>
protected static final String
protected Notifications
protected static final String
protected Form
protected SourceCodeEditor
protected ComboBox<OptionsLoaderType>
protected SourceCodeEditor
protected ReferenceToEntitySupport
protected static final String
protected ScreenBuilders
protected ScreensHelper
protected static final Set<AttributeType>
protected TabSheet
protected List<TargetScreenComponent>
protected CollectionContainer<TargetScreenComponent>
protected GroupTable<TargetScreenComponent>
protected static final String
protected UiComponents
protected SourceCodeEditor
protected static final String
protected SourceCodeEditor
Fields inherited from class io.jmix.ui.screen.StandardEditor
commitActionPerformed, showEnableEditingBtn, showSaveNotification
Fields inherited from interface io.jmix.ui.screen.EditorScreen
ENABLE_EDITING, WINDOW_CLOSE, WINDOW_COMMIT, WINDOW_COMMIT_AND_CLOSE
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected int
compareNumbers
(AttributeType type, Number first, Number second) protected void
dependsOnAttributesFieldValidator
(Collection<CategoryAttribute> categoryAttributes) protected List<CategoryAttribute>
protected Map<String,
AttributeType> protected Map<String,
OptionsLoaderType> protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
onAfterShow
(Screen.AfterShowEvent event) protected void
protected void
onCategoryAttributeDcItemPropertyChange
(InstanceContainer.ItemPropertyChangeEvent<CategoryAttribute> event) protected void
onConfigurationDcItemPropertyChange
(InstanceContainer.ItemPropertyChangeEvent<CategoryAttributeConfiguration> event) void
protected void
protected void
protected void
onInit
(Screen.InitEvent event) protected void
void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected List<Suggestion>
requestHint
(SourceCodeEditor sender, int senderCursorPosition) protected void
setDialogWindowWidth
(String width) protected void
protected void
protected void
showMessageDialog
(String caption, String message) protected List<TargetScreenComponent>
targetScreensDlLoadDelegate
(LoadContext<TargetScreenComponent> loadContext) protected ValidationErrors
validateEnumeration
(String enumeration, String defaultValue) protected ValidationErrors
validateNumbers
(AttributeType type, Number minNumber, Number maxNumber, Number defaultNumber) Methods inherited from class io.jmix.ui.screen.StandardEditor
addAfterCommitChangesListener, addBeforeCommitChangesListener, addDefaultCloseAction, addDefaultCommitAction, addDefaultCommitAndCloseAction, addDefaultEnableEditingAction, addInitEntityListener, addValidationEventListener, cancel, closeWithCommit, closeWithDiscard, commit, commitAndClose, commitChanges, disableCommitActions, doNotReloadEditedEntity, enableEditing, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getSaveNotificationCaption, getWindowActionOptional, hasUnsavedChanges, initActions, isCrossFieldValidate, isEntityModifiedInParentContext, isEntityModifiedRecursive, isLocked, isModifiedAfterOpen, isReadOnly, isReadOnlyDueToLock, isShowSaveNotification, onChangeEvent, onPostCommitEvent, preventUnsavedChanges, releaseLock, setCrossFieldValidate, setEntityToEdit, setModifiedAfterOpen, setReadOnly, setShowSaveNotification, setupEntityToEdit, setupLock, setupModifiedTracking, showSaveNotification, validateAdditionalRules, validateScreen, validateUiComponents
Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
DATA_TYPE_PROPERTY
- See Also:
-
DEFAULT_DATE_IS_CURRENT_PROPERTY
- See Also:
-
ENTITY_CLASS_PROPERTY
- See Also:
-
JOIN_CLAUSE_PROPERTY
- See Also:
-
LOOKUP_PROPERTY
- See Also:
-
NAME_PROPERTY
- See Also:
-
SCREEN_PROPERTY
- See Also:
-
WHERE_CLAUSE_PROPERTY
- See Also:
-
MAIN_TAB_NAME
- See Also:
-
ONE_COLUMN_WIDTH
- See Also:
-
TWO_COLUMNS_WIDTH
- See Also:
-
MESSAGE_DIALOG_WIDTH
- See Also:
-
CONFIGURATION_NUMBER_FORMAT_PATTERN_PROPERTY
- See Also:
-
CONFIGURATION_OPTIONS_LOADER_TYPE_PROPERTY
- See Also:
-
FIELDS_VISIBLE_FOR_TYPES
protected static final com.google.common.collect.Multimap<AttributeType,String> FIELDS_VISIBLE_FOR_TYPES -
SUPPORTED_OPTIONS_TYPES
-
JPQL_WHERE
- See Also:
-
coreProperties
-
fragments
-
metadataTools
-
messageTools
-
metadata
-
dataManager
-
referenceToEntitySupport
-
fetchPlanRepository
-
uiComponents
-
messages
-
screenBuilders
-
dialogs
-
notifications
-
screensHelper
-
dynAttrMetadata
-
lookupField
-
defaultDateField
-
defaultDateWithoutTimeField
-
optionalAttributeForm
-
dataTypeField
-
entityClassField
-
screenField
-
defaultBooleanField
-
optionsLoaderTypeField
-
defaultEntityIdField
-
optionsLoaderScriptField
-
joinClauseField
-
whereClauseField
-
validationScriptField
-
recalculationScriptField
-
targetScreensTable
-
tabSheet
-
codeField
-
defaultDecimalField
-
minDecimalField
-
maxDecimalField
-
dependsOnAttributesField
-
targetScreensDc
-
configurationDc
-
datatypeRegistry
-
formatStringsRegistry
-
jpqlUiSuggestionProvider
-
accessManager
-
localizationFragment
-
targetScreens
-
-
Constructor Details
-
CategoryAttrsEdit
public CategoryAttrsEdit()
-
-
Method Details
-
onInit
-
onBeforeShow
-
onAfterShow
-
onTabSheetSelectedTabChange
@Subscribe("tabSheet") protected void onTabSheetSelectedTabChange(TabSheet.SelectedTabChangeEvent event) -
onDefaultEntityIdFieldValueChange
@Subscribe("defaultEntityIdField") protected void onDefaultEntityIdFieldValueChange(HasValue.ValueChangeEvent<Object> event) -
onCategoryAttributeDcItemPropertyChange
@Subscribe(id="categoryAttributeDc", target=DATA_CONTAINER) protected void onCategoryAttributeDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<CategoryAttribute> event) -
onConfigurationDcItemPropertyChange
@Subscribe(id="configurationDc", target=DATA_CONTAINER) protected void onConfigurationDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<CategoryAttributeConfiguration> event) -
onEditEnumerationBtnClick
-
targetScreensDlLoadDelegate
@Install(to="targetScreensDl", target=DATA_LOADER) protected List<TargetScreenComponent> targetScreensDlLoadDelegate(LoadContext<TargetScreenComponent> loadContext) -
onTargetScreensTableCreate
@Subscribe("targetScreensTable.create") protected void onTargetScreensTableCreate(Action.ActionPerformedEvent event) -
dependsOnAttributesFieldValidator
@Install(to="dependsOnAttributesField", subject="validator") protected void dependsOnAttributesFieldValidator(Collection<CategoryAttribute> categoryAttributes) -
initAttributeForm
protected void initAttributeForm() -
initCalculatedValuesAndOptionsForm
protected void initCalculatedValuesAndOptionsForm() -
initTargetScreensTable
protected void initTargetScreensTable() -
loadTargetScreens
protected void loadTargetScreens() -
initCategoryAttributeConfigurationField
protected void initCategoryAttributeConfigurationField() -
initLocalizationTab
protected void initLocalizationTab() -
initDependsOnAttributesField
protected void initDependsOnAttributesField() -
setupNumberFormat
protected void setupNumberFormat() -
refreshAttributesUI
protected void refreshAttributesUI() -
onScreenFieldValueChange
-
onDefaultEntityIdFieldLookup
@Subscribe("defaultEntityIdField.lookup") public void onDefaultEntityIdFieldLookup(Action.ActionPerformedEvent event) -
setupFieldsLock
protected void setupFieldsLock() -
refreshAttributesValues
protected void refreshAttributesValues() -
refreshDefaultEntityIdFieldValue
protected void refreshDefaultEntityIdFieldValue() -
refreshCodeFieldValue
protected void refreshCodeFieldValue() -
getBooleanOptions
-
getDataTypeOptions
-
getEntityOptions
-
getLoaderOptions
-
getAttributesOptions
-
showMessageDialog
-
requestHint
-
centerDialogWindow
protected void centerDialogWindow() -
setDialogWindowWidth
-
onValidation
-
validateEnumeration
-
validateNumbers
protected ValidationErrors validateNumbers(AttributeType type, Number minNumber, Number maxNumber, Number defaultNumber) -
compareNumbers
-
onPreCommit
-
preCommitLocalizationFields
-
preCommitTargetScreensField
-
preCommitConfiguration
-