Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ public interface StudioChartsComponents {
xmlns = "http://jmix.io/schema/charts/ui",
xmlnsAlias = "charts",
icon = "io/jmix/chartsflowui/kit/meta/icon/component/chart.svg",
propertyGroups = {
StudioPropertyGroups.ClassNamesAndCss.class,
StudioPropertyGroups.IdAndVisible.class,
StudioPropertyGroups.Size.class,
StudioPropertyGroups.AlignSelf.class,
StudioChartsPropertyGroups.AnimationDefaultProperties.class,
StudioPropertyGroups.Colspan.class
},
properties = {
@StudioProperty(xmlAttribute = "alignSelf", category = StudioProperty.Category.POSITION, type = StudioPropertyType.ENUMERATION,
classFqn = "com.vaadin.flow.component.orderedlayout.FlexComponent$Alignment",
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import io.jmix.flowui.kit.meta.StudioProperty;
import io.jmix.flowui.kit.meta.StudioPropertyType;
import io.jmix.flowui.kit.meta.StudioUiKit;
import io.jmix.flowui.kit.meta.StudioPropertyGroups;

@StudioUiKit
public interface DynAttrStudioComponents {
Expand All @@ -31,11 +32,15 @@ public interface DynAttrStudioComponents {
xmlns = "http://jmix.io/schema/dynattr/flowui",
xmlnsAlias = "dynattr",
icon = "io/jmix/dynattrflowui/icon/component/dynamicAttributesPanel.svg",
propertyGroups = {
StudioPropertyGroups.Id.class
},
properties = {
@StudioProperty(xmlAttribute = "id", category = StudioProperty.Category.GENERAL, type = StudioPropertyType.COMPONENT_ID),
@StudioProperty(xmlAttribute = "dataContainer", category = StudioProperty.Category.DATA_BINDING, type = StudioPropertyType.DATA_CONTAINER_REF, required = true),
@StudioProperty(xmlAttribute = "fieldWidth", type = StudioPropertyType.STRING),
@StudioProperty(xmlAttribute = "categoryFieldVisible", type = StudioPropertyType.BOOLEAN),
})
}
)
void dynamicAttributesPanel();
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import io.jmix.flowui.kit.meta.StudioProperty;
import io.jmix.flowui.kit.meta.StudioPropertyType;
import io.jmix.flowui.kit.meta.StudioUiKit;
import io.jmix.flowui.kit.meta.StudioPropertyGroups;

@StudioUiKit
public interface DynAttrStudioFacets {
Expand All @@ -30,6 +31,9 @@ public interface DynAttrStudioFacets {
xmlns = "http://jmix.io/schema/dynattr/flowui",
xmlnsAlias = "dynattr",
icon = "io/jmix/dynattrflowui/icon/facet/dynamicAttributes.svg",
propertyGroups = {
StudioPropertyGroups.IdWithoutCategory.class
},
properties = {
@StudioProperty(xmlAttribute = "id", type = StudioPropertyType.COMPONENT_ID),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ String[] unsupportedTarget() default {
*/
StudioProperty[] properties() default {};

/**
* @see StudioComponent#propertyGroups()
*/
Class<?>[] propertyGroups() default {};

/**
* Properties that should be wrapped into <code>property</code> tag
* and added to the <code>properties</code> tag.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
*/
StudioProperty[] properties() default {};

/**
* @see StudioComponent#propertyGroups()
*/
Class<?>[] propertyGroups() default {};

/**
* @see StudioComponent#xmlElementInitializer
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ String availablePlaceRegExp() default "(^(mainView/appLayout)?((/drawerLayout)|(
*/
StudioProperty[] properties() default {};

/**
* Reusable groups of XML attributes.
* <p>
* Studio will merge group properties with {@link #properties()}.
* @see StudioPropertyGroup
* @see StudioPropertyGroups
*/
Class<?>[] propertyGroups() default {};

/**
* Descriptions of the XML attributes relationship.
* For example <code>property</code> and <code>dataContainer</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
*/
StudioProperty[] properties() default {};

/**
* @see StudioComponent#propertyGroups()
*/
Class<?>[] propertyGroups() default {};

/**
* @see StudioComponent#xmlElementInitializer
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@
*/
StudioProperty[] properties() default {};

/**
* @see StudioComponent#propertyGroups()
*/
Class<?>[] propertyGroups() default {};

/**
* @see StudioComponent#propertiesBindings
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@
*/
StudioProperty[] properties() default {};

/**
* @see StudioComponent#propertyGroups()
*/
Class<?>[] propertyGroups() default {};

/**
* @see StudioComponent#xmlElementInitializer
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
*/
StudioProperty[] properties() default {};

/**
* @see StudioComponent#propertyGroups()
*/
Class<?>[] propertyGroups() default {};

/**
* @see StudioComponent#xmlElementInitializer
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright 2026 Haulmont.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.jmix.flowui.kit.meta;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
* Declares a reusable group of {@link StudioProperty} definitions.
* <p>
* A group should be declared on a class or interface and referenced from
* {@code propertyGroups()} in {@link StudioComponent}, {@link StudioElement},
* {@link StudioFacet}, {@link StudioDataComponent}, {@link StudioAction},
* {@link StudioActionsGroup} or {@link StudioElementsGroup}.
*
* @see StudioPropertyGroups
*/
@Documented
@Target(ElementType.TYPE)
public @interface StudioPropertyGroup {

/**
* Properties included in the group.
*/
StudioProperty[] properties() default {};
}
Loading