Skip to content

Commit

Permalink
refactor(BBj): move HeaderTooltip to GxColumnDefinition
Browse files Browse the repository at this point in the history
BREAKING CHANGE `GxDefaultColumnGroup.HeaderGroupTooltip` is deprecated
now. Use `GxDefaultColumnGroup.HeaderTooltip` instead
  • Loading branch information
hyyan committed Mar 24, 2020
1 parent b6e2d0e commit eb65600
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions GxColumns.bbj
Expand Up @@ -119,6 +119,13 @@ class public GxColumnDefinition
rem */
field public ArrayList ToolPanelClass! = new ArrayList()
rem /**
rem * Tooltip for the column header
rem *
rem * <br><b><small>#Configuration</small></b>
rem * <br><b><small>#ColumnsRenderer</small></b>
rem */
field public BBjString HeaderTooltip! = null()
rem /**
rem * Set to true if you do not want this column or group to appear in the tool panel&#183;
rem *
rem * <br><b><small>#Configuration</small></b>
Expand Down Expand Up @@ -153,6 +160,7 @@ class public GxColumnDefinition
json!.addProperty("headerClass" , iff(#getHeaderClass().size() <> 0 ,new Gson().toJson(#getHeaderClass()), listIsEmpty!) ,err=*next)
json!.addProperty("toolPanelClass" , iff(#getToolPanelClass().size() <> 0 ,new Gson().toJson(#getToolPanelClass()) ,listIsEmpty!) ,err=*next)
json!.addProperty("suppressToolPanel" , #getSuppressToolPanel().booleanValue() ,err=*next)
json!.addProperty("headerTooltip",#getHeaderTooltip(),err=*next)
methodret json!
methodend

Expand Down Expand Up @@ -278,13 +286,6 @@ class public GxDefaultColumnDefinition extends GxColumnDefinition
rem */
field public BBjNumber Resizable! = 1
rem /**
rem * Tooltip for the column header
rem *
rem * <br><b><small>#Configuration</small></b>
rem * <br><b><small>#ColumnsRenderer</small></b>
rem */
field public BBjString HeaderTooltip! = null()
rem /**
rem * Set to true to render a selection checkbox in the column&#183;
rem *
rem * <br><b><small>#Configuration</small></b>
Expand Down Expand Up @@ -994,7 +995,6 @@ class public GxDefaultColumnDefinition extends GxColumnDefinition
column!.addProperty("sortable",#getSortable().booleanValue(),err=*next)
column!.addProperty("sort",#getSort(),err=*next)
column!.addProperty("resizable",#getResizable().booleanValue(),err=*next)
column!.addProperty("headerTooltip",#getHeaderTooltip(),err=*next)
column!.addProperty("checkboxSelection",#getCheckboxSelection().booleanValue(),err=*next)
column!.addProperty("headerCheckboxSelection",#getHeaderCheckboxSelection().booleanValue(),err=*next)
column!.addProperty("cellClass" , iff(#getCellClass().size() <> 0 ,new Gson().toJson(#getCellClass()), listIsEmpty!) ,err=*next)
Expand Down Expand Up @@ -1673,6 +1673,7 @@ class public GxDefaultColumnGroup extends GxColumnDefinition
field public BBjNumber OpenByDefault! = 1
rem /**
rem * Tooltip for the column group header
rem * @deprecated use HeaderToolTip instead
rem */
field public BBjString HeaderGroupTooltip! = null()
rem /**
Expand All @@ -1686,7 +1687,7 @@ class public GxDefaultColumnGroup extends GxColumnDefinition
group! = #super!.getAsJsonObject()
group!.addProperty("marryChildren",#getMarryChildren().booleanValue(),err=*next)
group!.addProperty("openByDefault",#getOpenByDefault().booleanValue(),err=*next)
group!.addProperty("headerGroupTooltip",#getHeaderGroupTooltip(),err=*next)
group!.addProperty("headerTooltip",#getHeaderGroupTooltip(),err=*next)
methodret group!
methodend

Expand Down

0 comments on commit eb65600

Please sign in to comment.