use of io.jmix.dynattrui.screen.location.AttributeLocationFragment in project jmix by jmix-framework.
the class CategoryEdit method initAttributeLocationTab.
protected void initAttributeLocationTab() {
CrudEntityContext crudEntityContext = new CrudEntityContext(categoryDc.getEntityMetaClass());
accessManager.applyRegisteredConstraints(crudEntityContext);
VBoxLayout attributesLocationTabComponent = (VBoxLayout) tabSheet.getTabComponent(ATTRIBUTES_LOCATION_TAB);
attributeLocationFragment = fragments.create(this, AttributeLocationFragment.class);
attributeLocationFragment.setEnabled(crudEntityContext.isUpdatePermitted());
Fragment fragment = attributeLocationFragment.getFragment();
fragment.setWidth(Component.FULL_SIZE);
attributesLocationTabComponent.add(fragment);
attributesLocationTabComponent.expand(fragment);
}
Aggregations