Skip to content

Commit

Permalink
GROUP_INITIALLY_CLOSED property attribute is implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
mixa committed Oct 2, 2020
1 parent f68f802 commit 0e6b833
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class DPBuilder
public String groupID = null;
public String groupName = null;
public String groupClasses = null;
public Boolean groupInitiallyClosed = null;

public String tabID = null;
public String tabName = null;
Expand Down Expand Up @@ -77,6 +78,7 @@ public DynamicProperty build()
if (groupID != null) attr(BeanInfoConstants.GROUP_ID, groupID);
if (groupName != null) attr(BeanInfoConstants.GROUP_NAME, groupName);
if (groupClasses != null) attr(BeanInfoConstants.GROUP_CLASSES, groupClasses);
if (groupInitiallyClosed != null) attr(BeanInfoConstants.GROUP_INITIALLY_CLOSED, groupInitiallyClosed);

if (tabID != null) attr(BeanInfoConstants.TAB_ID, tabID);
if (tabName != null) attr(BeanInfoConstants.TAB_NAME, tabName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import static com.developmentontheedge.beans.json.JsonPropertyAttributes.extraAttrs;
import static com.developmentontheedge.beans.json.JsonPropertyAttributes.groupClasses;
import static com.developmentontheedge.beans.json.JsonPropertyAttributes.groupId;
import static com.developmentontheedge.beans.json.JsonPropertyAttributes.groupInitiallyClosed;
import static com.developmentontheedge.beans.json.JsonPropertyAttributes.groupName;
import static com.developmentontheedge.beans.json.JsonPropertyAttributes.hidden;
import static com.developmentontheedge.beans.json.JsonPropertyAttributes.inputSize;
Expand Down Expand Up @@ -407,6 +408,7 @@ static JsonObject dynamicPropertyMeta(DynamicProperty property)
addAttr(json, property, groupId);
addAttr(json, property, groupName);
addAttr(json, property, groupClasses);
addAttr(json, property, groupInitiallyClosed);
addAttr(json, property, tabId);
addAttr(json, property, tabName);
addAttr(json, property, tabClasses);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ enum JsonPropertyAttributes
groupId(BeanInfoConstants.GROUP_ID, Object.class),
groupName(BeanInfoConstants.GROUP_NAME, String.class),
groupClasses(BeanInfoConstants.GROUP_CLASSES, String.class),
groupInitiallyClosed(BeanInfoConstants.GROUP_INITIALLY_CLOSED, Boolean.class),

tabId(BeanInfoConstants.TAB_ID, Object.class),
tabName(BeanInfoConstants.TAB_NAME, String.class),
Expand Down

0 comments on commit 0e6b833

Please sign in to comment.