Search in sources :

Example 1 with AttributeLocationFragment

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);
}
Also used : AttributeLocationFragment(io.jmix.dynattrui.screen.location.AttributeLocationFragment) CrudEntityContext(io.jmix.core.accesscontext.CrudEntityContext) AttributeLocalizationFragment(io.jmix.dynattrui.screen.localization.AttributeLocalizationFragment) CategoryAttrsFragment(io.jmix.dynattrui.screen.categoryattr.CategoryAttrsFragment) AttributeLocationFragment(io.jmix.dynattrui.screen.location.AttributeLocationFragment)

Aggregations

CrudEntityContext (io.jmix.core.accesscontext.CrudEntityContext)1 CategoryAttrsFragment (io.jmix.dynattrui.screen.categoryattr.CategoryAttrsFragment)1 AttributeLocalizationFragment (io.jmix.dynattrui.screen.localization.AttributeLocalizationFragment)1 AttributeLocationFragment (io.jmix.dynattrui.screen.location.AttributeLocationFragment)1