From 8246414bd9fc5d23bee23e6fec3c2fd27d9d6c75 Mon Sep 17 00:00:00 2001 From: Stephan Wald Date: Thu, 5 Apr 2018 14:59:22 +0200 Subject: [PATCH] introduced separate setColumnMask methods --- BBjGridExWidget.bbj | 42 +- Demo/GridColumnStateDemo.bbj | 12 +- docs/javadoc/BBjGridExWidget.html | 1397 +++++++++++++---- docs/javadoc/BBjGridExWidgetColumnState.html | 6 +- .../BBjGridExWidgetDoubleClickRowEvent.html | 6 +- docs/javadoc/BBjGridExWidgetRow.html | 6 +- .../BBjGridExWidgetSelectRowEvent.html | 10 +- .../BBjGridWidgetCellEditingEvent.html | 294 ++++ .../javadoc/BBjGridWidgetRowEditingEvent.html | 268 ++++ docs/javadoc/allclasses-frame.html | 8 +- docs/javadoc/allclasses-noframe.html | 8 +- docs/javadoc/constant-values.html | 6 +- docs/javadoc/deprecated-list.html | 6 +- docs/javadoc/help-doc.html | 6 +- docs/javadoc/index-all.html | 261 ++- docs/javadoc/index.html | 4 +- docs/javadoc/overview-tree.html | 8 +- docs/javadoc/package-frame.html | 8 +- docs/javadoc/package-summary.html | 16 +- docs/javadoc/package-tree.html | 8 +- 20 files changed, 1952 insertions(+), 428 deletions(-) create mode 100644 docs/javadoc/BBjGridWidgetCellEditingEvent.html create mode 100644 docs/javadoc/BBjGridWidgetRowEditingEvent.html diff --git a/BBjGridExWidget.bbj b/BBjGridExWidget.bbj index 0318a59a..a41ac217 100644 --- a/BBjGridExWidget.bbj +++ b/BBjGridExWidget.bbj @@ -332,6 +332,19 @@ class public BBjGridExWidget extends BBjWidget wend fi + if #ColumnDefinition! <> NULL() then + r1! = rs!.getItem(0) + ar! = #ColumnDefinition! + + it! = r1!.getFieldNames().iterator() + while it!.hasNext() + f$ = it!.next() + if ar!.contains(f$) then + r1!.setFieldAttributes(f$,ar!.getFieldAttributes(f$)) + fi + wend + fi + #TREE! = null() #URL$="" #performGridDataUpdate() @@ -439,6 +452,33 @@ class public BBjGridExWidget extends BBjWidget method public void setColumnBackColor(BBjString Field$,BBjColor color!) #ColumnDefinition!.setFieldAttribute(Field$,"BGCOLOR","#"+hta(chr(color!.getRed()))+hta(chr(color!.getGreen()))+hta(chr(color!.getBlue())),err=*next) methodend + + rem /** + rem * set the background color of a column + rem * + rem * @param BBjString Field$: the field name of the column + rem * @param BBjString mask$: the (date or numeric) mask, BBj style, for display and editing + rem * + rem * @RequiresRefresh + rem */ + method public void setColumnMask(BBjString Field$, BBjString mask$) + #this!.setColumnMask(Field$,mask$,mask$) + methodend + + rem /** + rem * set the background color of a column + rem * + rem * @param BBjString Field$: the field name of the column + rem * @param BBjString renderer_mask$: the (date or numeric) mask, BBj style, for display + rem * @param BBjString editor_mask$: the (date or numeric) mask, BBj style, for editing + rem * + rem * @RequiresRefresh + rem */ + method public void setColumnMask(BBjString Field$, BBjString renderer_mask$, BBjString editor_mask$) + #ColumnDefinition!.setFieldAttribute(Field$,"RENDERER_MASK",renderer_mask$) + #ColumnDefinition!.setFieldAttribute(Field$,"EDITOR_MASK",editor_mask$) + methodend + rem /** rem * set the alignment of a column rem * @param BBjString Field$: the field name of the column @@ -470,7 +510,7 @@ class public BBjGridExWidget extends BBjWidget rem * rem * @param BBjGridExWidgetColumnState state! : the state object rem */ - method public void setColumnsState(BBjGridExWidgetColumnState state!) + method public void setColumnState(BBjGridExWidgetColumnState state!) json_state$ = state!.getString() #executeScript("gw_setState("+json_state$+")") methodend diff --git a/Demo/GridColumnStateDemo.bbj b/Demo/GridColumnStateDemo.bbj index 95ad5662..8dc84aac 100644 --- a/Demo/GridColumnStateDemo.bbj +++ b/Demo/GridColumnStateDemo.bbj @@ -39,20 +39,20 @@ fillGrid: sbc! = new SqlQueryBC(BBjAPI().getJDBCConnection("CDStore")) rs! = sbc!.retrieve("SELECT * FROM CDINVENTORY") + + rem setting up the columns that should be displayed (the result set has more) grid!.addColumn("CDNUMBER","Item#") - grid!.addColumn("COST","COST",2) + grid!.addColumn("COST","COST",Types.DOUBLE) grid!.addColumn("ARTIST","Artist Name") grid!.addColumn("TITLE","Record Title") grid!.addColumn("LABEL","Publisher") grid!.addColumn("PLAYINGTIME","Playing Time (min)",Types.INTEGER) + grid!.setColumnAlignment("COST",grid!.GRID_ALIGN_RIGHT()) + grid!.setColumnMask("COST","$ #.##0,00") grid!.setSelectionMode(grid!.GRID_SELECT_ROW()) - - rs!.setAttribute(10,"MASK","$#,##00") - + grid!.setData(rs!) - - grid!.setCallback(grid!.ON_GRID_SELECT_ROW(),"onRowSelect") grid!.setCallback(grid!.ON_GRID_DOUBLE_CLICK(),"onRowDoubleclick") diff --git a/docs/javadoc/BBjGridExWidget.html b/docs/javadoc/BBjGridExWidget.html index df3aff08..a9e548fa 100644 --- a/docs/javadoc/BBjGridExWidget.html +++ b/docs/javadoc/BBjGridExWidget.html @@ -1,10 +1,10 @@ - + - + BBjGridExWidget - + @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":10,"i25":9,"i26":9,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":10,"i35":10,"i36":10,"i37":10,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -113,7 +113,7 @@

Class BBjGridExWidget


public class BBjGridExWidget
 extends BBjWidget
-
A sample BBj Widget Implementation
+
A Grid Widget Plugin for BBj
@@ -133,8 +133,135 @@

Field Summary

Field and Description +DataRow +AttributesRecord!  + + +BBjString +DefaultType$ +
Set the default cell editor type +default to GRID_TYPE_BASIC_STRING + +This option is used only in case the grid failed to detect the field's type
+ + + +BBjNumber +Editable! +
Enable / Disable cell editing for the whole grid +1 = enable editing +0 = disable edition + +This option can be overridden from the column attributes directly + +ex: + + +dr!
+ + + +BBjString +EditType$ +
Define the edit behavior
+ + + +BBjNumber +EnableFilter! +
Allow filters in the grid +1 = enable +0 = disable
+ + + +BBjNumber +EnableFloatingFilter! +
Allow floating filters in the grid +1 = enable +0 = disable
+ + + +BBjString +EnterKeyBehavior$ +
Enter Key Behavior
+ + + +BBjString +GroupColumnLabel$ +
set the label for the group column if the grid is a tree-grid +defaults to "Group"
+ + + +BBjNumber +GroupEdit! +
Set to true to enable Group Editing, otherwise by default, row groups cannot be edited.
+ + + +BBjNumber +GroupSelectsChildren! +
When true, selecting a group will have the impact of selecting all its children +When false, then the group is selectable independently of the child nodes
+ + + static BBjString -LicenseKey$  +LicenseKey$ +
Ag Grid enterprise key
+ + + +BBjNumber +MultipleSelection! +
Allow selection of multiple cells or rows +multiple: 1 allows multiple selection, 0 denies
+ + + +java.util.HashMap +SelectedRowsMap! +
A map which keeps tracking selected and deselected rows
+ + + +BBjNumber +SelectionMode! +
set the selection mode of the grid
+ + + +BBjNumber +ShowGroupChildCount! +
Enable/disable Suppress the number of items in a group +1 = enable +0 = disable
+ + + +BBjNumber +ShowGroupSelectionCheckbox! +
When true, selection box will be show on group column +When false, no checkbox will be displayed
+ + + +BBjNumber +ShowSelectionCheckbox! +
When true, selection box will be show on the first column +When false, no checkbox will be displayed
+ + + +BBjNumber +SingleClickEdit! +
Enable / Disable cell editing for the whole grid +1 = enable editing +0 = disable edition
+ @@ -237,287 +364,387 @@

Method Summary

BBjGridExWidgetColumnState -getColumnState()  - - -BBjString -getGroupColumnLabel() -
get the label for the group column if the grid is a tree-grid
+getColumnState() +
Get Column state
- + BBjNumber getSelectedRow()  - + BBjGridExWidgetRow getSelectedRowInfo()  - + BBjVector getSelectedRows()  - -BBjVector -getSelectedRowsInfo()  - - + BBjVector -getThemes()  +getThemes() +
Get themes + +Get the grid supported themes
+ - + static BBjNumber GRID_ALIGN_CENTER()  - + static BBjNumber GRID_ALIGN_LEFT()  - + static BBjNumber GRID_ALIGN_RIGHT()  + +static BBjString +GRID_EDITTYPE_CELL()  + + +static BBjString +GRID_EDITTYPE_ROW()  + static BBjString -GRID_ROWPOS_BOTTOM()  +GRID_ENTER_NEXT_CELL()  static BBjString -GRID_ROWPOS_MIDDLE()  +GRID_ENTER_STOP_EDITING()  static BBjString -GRID_ROWPOS_TOP()  +GRID_ROWPOS_BOTTOM()  +static BBjString +GRID_ROWPOS_MIDDLE()  + + +static BBjString +GRID_ROWPOS_TOP()  + + static BBjNumber GRID_SELECT_CELL()  - + static BBjNumber GRID_SELECT_ROW()  - + +static BBjString +GRID_TYPE_BASIC_BOOLEAN()  + + +static BBjString +GRID_TYPE_BASIC_DATE()  + + +static BBjString +GRID_TYPE_BASIC_IMAGE_FILTERABLE()  + + +static BBjString +GRID_TYPE_BASIC_IMAGE()  + + +static BBjString +GRID_TYPE_BASIC_NUMBER()  + + +static BBjString +GRID_TYPE_BASIC_STRING()  + + +static BBjString +GRID_TYPE_BASIC_TEXT()  + + +static BBjString +GRID_TYPE_BASIC_TIMESTAMP()  + + +BBjNUmber +isEditing()  + + void moveColumn(BBjString Field$, -BBjNumber toIndex!)  +BBjNumber toIndex!)
+
Change column position
+ - + +void +moveToNextCell() +
Start Next Cell Editing
+ + + +void +moveToPreviousCell() +
Move to previous cell
+ + + +static BBjNumber +ON_GRID_CELL_EDITING_STARTED()  + + +static BBjNumber +ON_GRID_CELL_EDITING_STOPPED()  + + static BBjNumber ON_GRID_DOUBLE_CLICK()  - + +static BBjNumber +ON_GRID_ROW_EDITING_STARTED()  + + +static BBjNumber +ON_GRID_ROW_EDITING_STOPPED()  + + static BBjNumber ON_GRID_SELECT_ROW()  - + void onLoad(BBjEvent ev!)
callback method after initial load does last initialization work
- + void onNativeEvent(BBjNativeJavaScriptEvent ev!)
Event Handler for Native JavaScript Event (from the Grid) Determines and dispatches the actual event
- + void pinColumn(BBjString Field$, BBjString pin$)
pin a column of the grid to the left or the right margin
- + void redraw(java.lang.Boolean f_init!)  - + void selectAll()
select all rows
- + void selectAll(BBjNumber x!)
select all rows
- + void setColumnAlignment(BBjString Field$, BBjNumber align)
set the alignment of a column
- + void setColumnBackColor(BBjString Field$, BBjColor color!)
set the background color of a column
- + void setColumnForeColor(BBjString Field$, BBjColor color!)
set the font color of a column
- + void -setColumnState(BBjGridExWidgetColumnState state!)  +setColumnMask(BBjString Field$, +BBjString mask$) +
set the background color of a column
+ - + +void +setColumnMask(BBjString Field$, +BBjString renderer_mask$, +BBjString editor_mask$) +
set the background color of a column
+ + + +void +setColumnState(BBjGridExWidgetColumnState state!) +
Apply columns state
+ + + void setColumnWidth(BBjString Field$, BBjNumber w!)
set the width of a column
- + void setData(DataTree tree!)
set the data into the grid, to create a tree grid
- + void setData(DataTree rs!, BBjString RowNodeId$)  - + void setData(DataTree rs!, BBjString RowNodeId$, BBjString ParentNodeId$)  - + void setData(ResultSet rs!)
set the data into the grid
- + void setData(ResultSet rs!, BBjString RowNodeId$)
set the data into the grid
- -void -setEnableFilter(BBjNumber enable) -
Allow filters in the grid
- - - -void -setEnableFloatingFilter(BBjNumber enable) -
Allow floating filters in the grid
- - - + void setFitToGrid(BBjNumber fit!)
set the grid to scroll horizontally or fit into the client area
- -void -setGroupColumnLabel(BBjString label$) -
set the label for the group column if the grid is a tree-grid -defaults to "Group"
- - - + void setGroupSelectsChildren(BBjNumber x!)
When true, selecting a group will have the impact of selecting all its children When false, then the group is selectable independently of the child nodes
- -void -setMultipleSelection(BBjNumber multiple) -
Allow selection of multiple cells or rows
- - - + void setQuickFilter(BBjNumber filter)
Perform throw columns search
- + void setQuickFilter(BBjString filter!)
Perform throw columns search
- + void setSelectedRow(BBjNumber x!) -
set the selected row
+
Select a row
- + void setSelectedRows(BBjVector x!) -
set the selected row indices
+
Select verctor of rows
- + void -setSelectionMode(BBjNumber mode) -
set the selection mode of the grid
+setStartCellEditing(BBjNumber row!, +BBjString colId$) +
Start Cell Editing
- + void -setShowGroupChildCount(BBjNumber status!) -
Optinally Suppress the number of items in a group
+setStartCellEditing(BBjNumber row!, +BBjString colId$, +BBjNumber key!) +
Start Cell Editing
- + void -setShowSelectionCheckbox(BBjNumber x!) -
When true, selection box will be show on the first column -When false, no checkbox will be displayed
+setStartCellEditing(BBjNumber row!, +BBjString colId$, +BBjString char$) +
Start Cell Editing
- + void -setTheme(BBjString theme$)  +setTheme(BBjString theme$) +
Set the grid theme
+ - + void setVisibleColumn(BBjString columnId!) -
set visible column +
Set visible column Ensures the column is visible, scrolling the table if needed.
- + void setVisibleRow(BBjNumber index!, BBjString position!) -
set visible row +
Set visible row Ensures the row index is visible by vertically scrolling the grid.
- + void showDeveloperConsole()
experimental function that shows the developer console (only in GUI, for BUI it's a NOOP)
+ +void +startNextCellEditing() +
Start next Cell Editing
+ + + +void +startPreviousCellEditing() +
Start previous Cell Editing
+ + + +void +stopEditing() +
Stop editing and discard changes
+ + + +void +stopEditing(BBjNumber cancel!) +
Stop Editing
+ +
  • @@ -540,244 +767,290 @@

    Methods inherited from class java.lang.Object

    Field Detail

    - + -
      +
      • -

        LicenseKey$

        -
        public static BBjString LicenseKey$
        -
      • -
      +

      SelectedRowsMap!

      +
      public java.util.HashMap SelectedRowsMap!
      +
      A map which keeps tracking selected and deselected rows
    - -
      -
    • + -

      Constructor Detail

      - +
        +
      • +

        LicenseKey$

        +
        public static BBjString LicenseKey$
        +
        Ag Grid enterprise key
        +
      • +
      +
      -
        +
        • -

          BBjGridExWidget

          -
          public BBjGridExWidget(BBjWindow wnd!,
          -BBjInt id!,
          -BBjInt x!,
          -BBjInt y!,
          -BBjInt w!,
          -BBjInt h!)
          -
          The constructor that creates the widget on wnd!
          +

          SelectionMode!

          +
          public BBjNumber SelectionMode!
          +
          set the selection mode of the grid
          -
          Parameters:
          -
          BBjWindow - wnd!: parent window
          -
          BBjInt - id: the control ID
          -
          BBjInt - x: x-location
          -
          BBjInt - y: y-location
          -
          BBjInt - w: width
          -
          BBjInt - h: height
          +
          See Also:
          +
          GRID_SELECT_ROW(), +GRID_SELECT_CELL()
        - -
      - -
        -
      • - - -

        Method Detail

        - +
        • -

          redraw

          -
          public void redraw(java.lang.Boolean f_init!)
          -
          -
          Parameters:
          -
          Boolean - f_init!: if TRUE the control is rendered for the first time so this method has to perform initial rendering
          -
          +

          MultipleSelection!

          +
          public BBjNumber MultipleSelection!
          +
          Allow selection of multiple cells or rows +multiple: 1 allows multiple selection, 0 denies
        - +
        • -

          setShowGroupChildCount

          -
          public void setShowGroupChildCount(BBjNumber status!)
          -
          Optinally Suppress the number of items in a group
          -
          -
          Parameters:
          -
          BBjNumber - status!: 0 to enable , 1 to disable
          -
          +

          ShowSelectionCheckbox!

          +
          public BBjNumber ShowSelectionCheckbox!
          +
          When true, selection box will be show on the first column +When false, no checkbox will be displayed
        - +
        • -

          setGroupSelectsChildren

          -
          public void setGroupSelectsChildren(BBjNumber x!)
          -
          When true, selecting a group will have the impact of selecting all its children -When false, then the group is selectable independently of the child nodes
          +

          ShowGroupSelectionCheckbox!

          +
          public BBjNumber ShowGroupSelectionCheckbox!
          +
          When true, selection box will be show on group column +When false, no checkbox will be displayed
        - +
        • -

          setShowSelectionCheckbox

          -
          public void setShowSelectionCheckbox(BBjNumber x!)
          -
          When true, selection box will be show on the first column -When false, no checkbox will be displayed
          +

          GroupSelectsChildren!

          +
          public BBjNumber GroupSelectsChildren!
          +
          When true, selecting a group will have the impact of selecting all its children +When false, then the group is selectable independently of the child nodes
        - +
        • -

          setSelectedRow

          -
          public void setSelectedRow(BBjNumber x!)
          -
          set the selected row
          +

          Editable!

          +
          public BBjNumber Editable!
          +
          Enable / Disable cell editing for the whole grid +1 = enable editing +0 = disable edition + +This option can be overridden from the column attributes directly + +ex: + + +dr! = new DataRow() +dr!.setFieldAttribute("DOUBLE", "EDITABLE", "1") +
        - +
        • -

          setSelectedRows

          -
          public void setSelectedRows(BBjVector x!)
          -
          set the selected row indices
          +

          SingleClickEdit!

          +
          public BBjNumber SingleClickEdit!
          +
          Enable / Disable cell editing for the whole grid +1 = enable editing +0 = disable edition
        - +
        • -

          selectAll

          -
          public void selectAll()
          -
          select all rows
          +

          DefaultType$

          +
          public BBjString DefaultType$
          +
          Set the default cell editor type +default to GRID_TYPE_BASIC_STRING + +This option is used only in case the grid failed to detect the field's type
          +
          +
          See Also:
          +
          BBjGridExWidget.GRID_TYPE_BASIC_STRING, +BBjGridExWidget.GRID_TYPE_BASIC_TEXT, +BBjGridExWidget.GRID_TYPE_BASIC_NUMBER, +BBjGridExWidget.GRID_TYPE_BASIC_BOOLEAN, +BBjGridExWidget.GRID_TYPE_BASIC_DATE, +BBjGridExWidget.GRID_TYPE_BASIC_TIMESTAMP, +BBjGridExWidget.GRID_TYPE_BASIC_IMAGE, +BBjGridExWidget.GRID_TYPE_BASIC_IMAGE_FILTERABLE
          +
        - +
        • -

          selectAll

          -
          public void selectAll(BBjNumber x!)
          -
          select all rows
          +

          EditType$

          +
          public BBjString EditType$
          +
          Define the edit behavior
          -
          Parameters:
          -
          BBJNumber - x!: 0 select all , 1 select all filtered
          +
          See Also:
          +
          BBjGridExWidget.GRID_EDITTYPE_ROW, +BBjGridExWidget.GRID_EDITTYPE_CELL
        - +
        • -

          deselectAll

          -
          public void deselectAll()
          -
          deselect all rows
          +

          GroupEdit!

          +
          public BBjNumber GroupEdit!
          +
          Set to true to enable Group Editing, otherwise by default, row groups cannot be edited.
        - +
        • -

          deselectAll

          -
          public void deselectAll(BBjNumber x!)
          -
          deselect all rows
          +

          EnterKeyBehavior$

          +
          public BBjString EnterKeyBehavior$
          +
          Enter Key Behavior
          -
          Parameters:
          -
          BBJNumber - x!: 0 deselect all , 1 deselect all filtered
          +
          See Also:
          +
          BBjGridExWidget.GRID_ENTER_NEXT_CELL, +BBjGridExWidget.GRID_ENTER_STOP_EDITING
        - +
        • -

          expandAll

          -
          public void expandAll()
          -
          Expand all groups.
          +

          EnableFilter!

          +
          public BBjNumber EnableFilter!
          +
          Allow filters in the grid +1 = enable +0 = disable
        - +
        • -

          collapseAll

          -
          public void collapseAll()
          -
          collapse all groups.
          +

          EnableFloatingFilter!

          +
          public BBjNumber EnableFloatingFilter!
          +
          Allow floating filters in the grid +1 = enable +0 = disable
        - +
        • -

          setVisibleRow

          -
          public void setVisibleRow(BBjNumber index!,
          -BBjString position!)
          -
          set visible row - -Ensures the row index is visible by vertically scrolling the grid. -The valid values for positions are {'top', 'middle', 'bottom'}. -If top, middle or bottom, the grid will scroll the row to place the row at top, middle or bottom
          -
          -
          Parameters:
          -
          BBjNumber - index!: the row index
          -
          BBjString - position!: the scrolling poistion
          -
          See Also:
          -
          GRID_ROWPOS_TOP(), -GRID_ROWPOS_MIDDLE(), -GRID_ROWPOS_BOTTOM()
          -
          +

          GroupColumnLabel$

          +
          public BBjString GroupColumnLabel$
          +
          set the label for the group column if the grid is a tree-grid +defaults to "Group"
        - +
        • -

          setVisibleColumn

          -
          public void setVisibleColumn(BBjString columnId!)
          -
          set visible column - -Ensures the column is visible, scrolling the table if needed.
          +

          ShowGroupChildCount!

          +
          public BBjNumber ShowGroupChildCount!
          +
          Enable/disable Suppress the number of items in a group +1 = enable +0 = disable
          +
        • +
        + + + +
          +
        • +

          AttributesRecord!

          +
          public DataRow AttributesRecord!
          +
        • +
        +
      • +
      + +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          BBjGridExWidget

          +
          public BBjGridExWidget(BBjWindow wnd!,
          +BBjInt id!,
          +BBjInt x!,
          +BBjInt y!,
          +BBjInt w!,
          +BBjInt h!)
          +
          The constructor that creates the widget on wnd!
          Parameters:
          -
          BBJString - columnid!: the column id
          +
          BBjWindow - wnd!: parent window
          +
          BBjInt - id: the control ID
          +
          BBjInt - x: x-location
          +
          BBjInt - y: y-location
          +
          BBjInt - w: width
          +
          BBjInt - h: height
        - +
      • +
      + +
        +
      • + + +

        Method Detail

        +
        • -

          onNativeEvent

          -
          public void onNativeEvent(BBjNativeJavaScriptEvent ev!)
          -
          Event Handler for Native JavaScript Event (from the Grid) -Determines and dispatches the actual event
          +

          redraw

          +
          public void redraw(java.lang.Boolean f_init!)
          Parameters:
          -
          BBjNativeJavaScriptEvent - ev!: the js event
          +
          Boolean - f_init!: if TRUE trem /** + +control is rendered for the first time so this method has to perform initial rendering
        @@ -796,15 +1069,19 @@

        onLoad

      - +
      • -

        showDeveloperConsole

        -
        public void showDeveloperConsole()
        -
        experimental function that shows the developer console -(only in GUI, for BUI it's a NOOP)
        +

        onNativeEvent

        +
        public void onNativeEvent(BBjNativeJavaScriptEvent ev!)
        +
        Event Handler for Native JavaScript Event (from the Grid) +Determines and dispatches the actual event
        +
        +
        Parameters:
        +
        BBjNativeJavaScriptEvent - ev!: the js event
        +
      @@ -875,16 +1152,6 @@

      setData

      BBjString ParentNodeId$)
    - - - -
      -
    • -

      clearColumnDefinitions

      -
      public void clearColumnDefinitions()
      -
      clear all columns
      -
    • -
    @@ -957,34 +1224,14 @@

    addColumn

- - - -
    -
  • -

    pinColumn

    -
    public void pinColumn(BBjString Field$,
    -BBjString pin$)
    -
    pin a column of the grid to the left or the right margin
    -
    -
    Parameters:
    -
    BBjString - field$: the field name of the column
    -
    BBjString - pin$: "right" or "left"
    -
    -
  • -
- +
  • -

    setFitToGrid

    -
    public void setFitToGrid(BBjNumber fit!)
    -
    set the grid to scroll horizontally or fit into the client area
    -
    -
    Parameters:
    -
    BBjNumber - fit!: 1 = fit all columns into the width
    -
    +

    clearColumnDefinitions

    +
    public void clearColumnDefinitions()
    +
    clear all columns
@@ -1019,19 +1266,37 @@

setColumnBackColor

-
+
  • -

    setColumnWidth

    -
    public void setColumnWidth(BBjString Field$,
    -BBjNumber w!)
    -
    set the width of a column
    +

    setColumnMask

    +
    public void setColumnMask(BBjString Field$,
    +BBjString mask$)
    +
    set the background color of a column
    Parameters:
    BBjString - Field$: the field name of the column
    -
    BBjNumber - width!: the column width
    +
    BBjString - mask$: the (date or numeric) mask, BBj style, for display and editing
    +
    +
  • +
+ + + +
    +
  • +

    setColumnMask

    +
    public void setColumnMask(BBjString Field$,
    +BBjString renderer_mask$,
    +BBjString editor_mask$)
    +
    set the background color of a column
    +
    +
    Parameters:
    +
    BBjString - Field$: the field name of the column
    +
    BBjString - renderer_mask$: the (date or numeric) mask, BBj style, for display
    +
    BBjString - editor_mask$: the (date or numeric) mask, BBj style, for editing
@@ -1057,72 +1322,268 @@

setColumnAlignment

- +
  • -

    moveColumn

    -
    public void moveColumn(BBjString Field$,
    -BBjNumber toIndex!)
    +

    setColumnState

    +
    public void setColumnState(BBjGridExWidgetColumnState state!)
    +
    Apply columns state
    +
    +
    Parameters:
    +
    BBjGridExWidgetColumnState - state! : the state object
    +
- +
  • -

    setSelectionMode

    -
    public void setSelectionMode(BBjNumber mode)
    -
    set the selection mode of the grid
    +

    getColumnState

    +
    public BBjGridExWidgetColumnState getColumnState()
    +
    Get Column state
    +
  • +
+ + + +
    +
  • +

    setGroupSelectsChildren

    +
    public void setGroupSelectsChildren(BBjNumber x!)
    +
    When true, selecting a group will have the impact of selecting all its children +When false, then the group is selectable independently of the child nodes
    Parameters:
    -
    BBjNumber - mode: the selection mode, one of
    +
    BBJNumber - x!: 1 enable , 0 disable
    +
    +
  • +
+ + + +
    +
  • +

    setTheme

    +
    public void setTheme(BBjString theme$)
    +
    Set the grid theme
    +
    +
    Parameters:
    +
    BBjString - theme$
    See Also:
    -
    GRID_SELECT_ROW(), -GRID_SELECT_CELL()
    +
    BBjGridExWidget.getThemes()
    +
    +
  • +
+ + + +
    +
  • +

    getThemes

    +
    public BBjVector getThemes()
    +
    Get themes + +Get the grid supported themes
    +
  • +
+ + + +
    +
  • +

    selectAll

    +
    public void selectAll()
    +
    select all rows
    +
  • +
+ + + +
    +
  • +

    selectAll

    +
    public void selectAll(BBjNumber x!)
    +
    select all rows
    +
    +
    Parameters:
    +
    BBJNumber - x!: 0 select all , 1 select all filtered
    +
    +
  • +
+ + + +
    +
  • +

    deselectAll

    +
    public void deselectAll()
    +
    deselect all rows
    +
  • +
+ + + +
    +
  • +

    deselectAll

    +
    public void deselectAll(BBjNumber x!)
    +
    deselect all rows
    +
    +
    Parameters:
    +
    BBJNumber - x!: 0 deselect all , 1 deselect all filtered
    +
    +
  • +
+ + + +
    +
  • +

    setSelectedRow

    +
    public void setSelectedRow(BBjNumber x!)
    +
    Select a row
    +
    +
    Parameters:
    +
    BBJNumber - x!: the row index to select
- +
  • -

    setMultipleSelection

    -
    public void setMultipleSelection(BBjNumber multiple)
    -
    Allow selection of multiple cells or rows
    +

    setSelectedRows

    +
    public void setSelectedRows(BBjVector x!)
    +
    Select verctor of rows
    Parameters:
    -
    BBjNumber - multiple: 1 allows multiple selection, 0 denies
    +
    BBJNumber - x!: vector of row indices to select
- +
  • -

    setEnableFilter

    -
    public void setEnableFilter(BBjNumber enable)
    -
    Allow filters in the grid
    +

    expandAll

    +
    public void expandAll()
    +
    Expand all groups.
    +
  • +
+ + + +
    +
  • +

    collapseAll

    +
    public void collapseAll()
    +
    collapse all groups.
    +
  • +
+ + + +
    +
  • +

    setVisibleRow

    +
    public void setVisibleRow(BBjNumber index!,
    +BBjString position!)
    +
    Set visible row + +Ensures the row index is visible by vertically scrolling the grid. +The valid values for positions are {'top', 'middle', 'bottom'}. +If top, middle or bottom, the grid will scroll the row to place the row at top, middle or bottom
    Parameters:
    -
    BBjNumber - enable: 1 shows the auto filter widgets in the toolbar
    +
    BBjNumber - index!: the row index
    +
    BBjString - position!: the scrolling poistion
    +
    See Also:
    +
    GRID_ROWPOS_TOP(), +GRID_ROWPOS_MIDDLE(), +GRID_ROWPOS_BOTTOM()
- +
  • -

    setEnableFloatingFilter

    -
    public void setEnableFloatingFilter(BBjNumber enable)
    -
    Allow floating filters in the grid
    +

    setVisibleColumn

    +
    public void setVisibleColumn(BBjString columnId!)
    +
    Set visible column + +Ensures the column is visible, scrolling the table if needed.
    +
    +
    Parameters:
    +
    BBJString - columnid!: the column id
    +
    +
  • +
+ + + +
    +
  • +

    pinColumn

    +
    public void pinColumn(BBjString Field$,
    +BBjString pin$)
    +
    pin a column of the grid to the left or the right margin
    +
    +
    Parameters:
    +
    BBjString - field$: the field name of the column
    +
    BBjString - pin$: "right" or "left"
    +
    +
  • +
+ + + +
    +
  • +

    setFitToGrid

    +
    public void setFitToGrid(BBjNumber fit!)
    +
    set the grid to scroll horizontally or fit into the client area
    +
    +
    Parameters:
    +
    BBjNumber - fit!: 1 = fit all columns into the width
    +
    +
  • +
+ + + +
    +
  • +

    setColumnWidth

    +
    public void setColumnWidth(BBjString Field$,
    +BBjNumber w!)
    +
    set the width of a column
    +
    +
    Parameters:
    +
    BBjString - Field$: the field name of the column
    +
    BBjNumber - width!: the column width
    +
    +
  • +
+ + + +
    +
  • +

    moveColumn

    +
    public void moveColumn(BBjString Field$,
    +BBjNumber toIndex!)
    +
    Change column position
    Parameters:
    -
    BBjNumber - enable: 1 shows the floating filter widgets in the toolbar
    +
    BBjString - Field$: the field name of the column
    +
    BBjNumber - toIndex!: the new column position/index
@@ -1136,7 +1597,7 @@

setQuickFilter

Perform throw columns search
Parameters:
-
BBjNumber - filter
+
BBjNumber - filter : filter as a string
@@ -1150,63 +1611,123 @@

setQuickFilter

Perform throw columns search
Parameters:
-
BBjNumber - filter
+
BBjNumber - filter : filter as number
- +
  • -

    setGroupColumnLabel

    -
    public void setGroupColumnLabel(BBjString label$)
    -
    set the label for the group column if the grid is a tree-grid -defaults to "Group"
    +

    moveToNextCell

    +
    public void moveToNextCell()
    +
    Start Next Cell Editing
    +
  • +
+ + + +
    +
  • +

    moveToPreviousCell

    +
    public void moveToPreviousCell()
    +
    Move to previous cell
    +
  • +
+ + + +
    +
  • +

    setStartCellEditing

    +
    public void setStartCellEditing(BBjNumber row!,
    +BBjString colId$)
    +
    Start Cell Editing
    Parameters:
    -
    label$ - - the label
    +
    BBjNumber - row!: The row number
    +
    BBjString - colId!: The column ID
- +
  • -

    getGroupColumnLabel

    -
    public BBjString getGroupColumnLabel()
    -
    get the label for the group column if the grid is a tree-grid
    +

    setStartCellEditing

    +
    public void setStartCellEditing(BBjNumber row!,
    +BBjString colId$,
    +BBjString char$)
    +
    Start Cell Editing
    +
    +
    Parameters:
    +
    BBjNumber - row!: The row number
    +
    BBjString - colId$: The column ID
    +
    BBjNumber - char$: key chars to press on editors when editors support it
    +
- +
  • -

    getColumnState

    -
    public BBjGridExWidgetColumnState getColumnState()
    +

    setStartCellEditing

    +
    public void setStartCellEditing(BBjNumber row!,
    +BBjString colId$,
    +BBjNumber key!)
    +
    Start Cell Editing
    +
    +
    Parameters:
    +
    BBjNumber - row!: The row number
    +
    BBjString - colId$: The column ID
    +
    BBjNumber - key!: key codes to press on editors when editors support it
    +
- +
  • -

    setColumnState

    -
    public void setColumnState(BBjGridExWidgetColumnState state!)
    +

    startNextCellEditing

    +
    public void startNextCellEditing()
    +
    Start next Cell Editing
    +
  • +
+ + + +
    +
  • +

    startPreviousCellEditing

    +
    public void startPreviousCellEditing()
    +
    Start previous Cell Editing
    +
  • +
+ + + +
    +
  • +

    stopEditing

    +
    public void stopEditing()
    +
    Stop editing and discard changes
- +
  • -

    getSelectedRowsInfo

    -
    public BBjVector getSelectedRowsInfo()
    +

    stopEditing

    +
    public void stopEditing(BBjNumber cancel!)
    +
    Stop Editing
    -
    Returns:
    -
    Hashmap with the selected row indexes and items
    +
    Parameters:
    +
    BBjNumber - cancel!: 1 = discard changes , 0 = accept changes
@@ -1223,16 +1744,16 @@

getSelectedRowInfo

- +
  • -

    getSelectedRows

    -
    public BBjVector getSelectedRows()
    +

    isEditing

    +
    public BBjNUmber isEditing()
    Returns:
    -
    BBjVector with the selected row indexes and items
    +
    one if ag grid is in the editing mode , 0 otherwise
@@ -1249,22 +1770,28 @@

getSelectedRow

- +
  • -

    setTheme

    -
    public void setTheme(BBjString theme$)
    +

    getSelectedRows

    +
    public BBjVector getSelectedRows()
    +
    +
    Returns:
    +
    BBjVector with the selected row indexes and items
    +
- +
  • -

    getThemes

    -
    public BBjVector getThemes()
    +

    showDeveloperConsole

    +
    public void showDeveloperConsole()
    +
    experimental function that shows the developer console +(only in GUI, for BUI it's a NOOP)
@@ -1354,6 +1881,58 @@

ON_GRID_DOUBLE_CLICK

+
+ + +
    +
  • +

    ON_GRID_CELL_EDITING_STARTED

    +
    public static BBjNumber ON_GRID_CELL_EDITING_STARTED()
    +
    +
    Returns:
    +
    constant value to define cell editing start event
    +
    +
  • +
+ + + +
    +
  • +

    ON_GRID_CELL_EDITING_STOPPED

    +
    public static BBjNumber ON_GRID_CELL_EDITING_STOPPED()
    +
    +
    Returns:
    +
    constant value to define cell editing stop event
    +
    +
  • +
+ + + +
    +
  • +

    ON_GRID_ROW_EDITING_STARTED

    +
    public static BBjNumber ON_GRID_ROW_EDITING_STARTED()
    +
    +
    Returns:
    +
    constant value to define row editing start event
    +
    +
  • +
+ + + +
    +
  • +

    ON_GRID_ROW_EDITING_STOPPED

    +
    public static BBjNumber ON_GRID_ROW_EDITING_STOPPED()
    +
    +
    Returns:
    +
    constant value to define row editing stop event
    +
    +
  • +
@@ -1383,7 +1962,7 @@

GRID_ROWPOS_MIDDLE

-
    +
    • GRID_ROWPOS_BOTTOM

      public static BBjString GRID_ROWPOS_BOTTOM()
      @@ -1393,6 +1972,162 @@

      GRID_ROWPOS_BOTTOM

    + + + +
      +
    • +

      GRID_EDITTYPE_ROW

      +
      public static BBjString GRID_EDITTYPE_ROW()
      +
      +
      Returns:
      +
      constant value to define editing mode "row"
      +
      +
    • +
    + + + +
      +
    • +

      GRID_EDITTYPE_CELL

      +
      public static BBjString GRID_EDITTYPE_CELL()
      +
      +
      Returns:
      +
      constant value to define editing mode "cell"
      +
      +
    • +
    + + + +
      +
    • +

      GRID_TYPE_BASIC_STRING

      +
      public static BBjString GRID_TYPE_BASIC_STRING()
      +
      +
      Returns:
      +
      constant value to define string column types
      +
      +
    • +
    + + + +
      +
    • +

      GRID_TYPE_BASIC_TEXT

      +
      public static BBjString GRID_TYPE_BASIC_TEXT()
      +
      +
      Returns:
      +
      constant value to define text column types
      +
      +
    • +
    + + + +
      +
    • +

      GRID_TYPE_BASIC_NUMBER

      +
      public static BBjString GRID_TYPE_BASIC_NUMBER()
      +
      +
      Returns:
      +
      constant value to define number column types
      +
      +
    • +
    + + + +
      +
    • +

      GRID_TYPE_BASIC_BOOLEAN

      +
      public static BBjString GRID_TYPE_BASIC_BOOLEAN()
      +
      +
      Returns:
      +
      constant value to define boolean column types
      +
      +
    • +
    + + + +
      +
    • +

      GRID_TYPE_BASIC_DATE

      +
      public static BBjString GRID_TYPE_BASIC_DATE()
      +
      +
      Returns:
      +
      constant value to define date column types
      +
      +
    • +
    + + + +
      +
    • +

      GRID_TYPE_BASIC_TIMESTAMP

      +
      public static BBjString GRID_TYPE_BASIC_TIMESTAMP()
      +
      +
      Returns:
      +
      constant value to define timestamp column types
      +
      +
    • +
    + + + +
      +
    • +

      GRID_TYPE_BASIC_IMAGE

      +
      public static BBjString GRID_TYPE_BASIC_IMAGE()
      +
      +
      Returns:
      +
      constant value to define image column types
      +
      +
    • +
    + + + +
      +
    • +

      GRID_TYPE_BASIC_IMAGE_FILTERABLE

      +
      public static BBjString GRID_TYPE_BASIC_IMAGE_FILTERABLE()
      +
      +
      Returns:
      +
      constant value to define filterable image column types
      +
      +
    • +
    + + + +
      +
    • +

      GRID_ENTER_NEXT_CELL

      +
      public static BBjString GRID_ENTER_NEXT_CELL()
      +
      +
      Returns:
      +
      constant value to define enter key behavior (Move to next cell)
      +
      +
    • +
    + + + +
      +
    • +

      GRID_ENTER_STOP_EDITING

      +
      public static BBjString GRID_ENTER_STOP_EDITING()
      +
      +
      Returns:
      +
      constant value to define enter key behavior (Stop editing)
      +
      +
    • +
diff --git a/docs/javadoc/BBjGridExWidgetColumnState.html b/docs/javadoc/BBjGridExWidgetColumnState.html index 5d198354..09f708ba 100644 --- a/docs/javadoc/BBjGridExWidgetColumnState.html +++ b/docs/javadoc/BBjGridExWidgetColumnState.html @@ -1,10 +1,10 @@ - + - + BBjGridExWidgetColumnState - + diff --git a/docs/javadoc/BBjGridExWidgetDoubleClickRowEvent.html b/docs/javadoc/BBjGridExWidgetDoubleClickRowEvent.html index f2a918a5..94ca0342 100644 --- a/docs/javadoc/BBjGridExWidgetDoubleClickRowEvent.html +++ b/docs/javadoc/BBjGridExWidgetDoubleClickRowEvent.html @@ -1,10 +1,10 @@ - + - + BBjGridExWidgetDoubleClickRowEvent - + diff --git a/docs/javadoc/BBjGridExWidgetRow.html b/docs/javadoc/BBjGridExWidgetRow.html index 28226ea6..e5724851 100644 --- a/docs/javadoc/BBjGridExWidgetRow.html +++ b/docs/javadoc/BBjGridExWidgetRow.html @@ -1,10 +1,10 @@ - + - + BBjGridExWidgetRow - + diff --git a/docs/javadoc/BBjGridExWidgetSelectRowEvent.html b/docs/javadoc/BBjGridExWidgetSelectRowEvent.html index e9ce07e6..d296dbf6 100644 --- a/docs/javadoc/BBjGridExWidgetSelectRowEvent.html +++ b/docs/javadoc/BBjGridExWidgetSelectRowEvent.html @@ -1,10 +1,10 @@ - + - + BBjGridExWidgetSelectRowEvent - + @@ -48,7 +48,7 @@ diff --git a/docs/javadoc/constant-values.html b/docs/javadoc/constant-values.html index 5581ce7f..15abdd8c 100644 --- a/docs/javadoc/constant-values.html +++ b/docs/javadoc/constant-values.html @@ -1,10 +1,10 @@ - + - + Constant Field Values - + diff --git a/docs/javadoc/deprecated-list.html b/docs/javadoc/deprecated-list.html index b58913a8..cc6da5af 100644 --- a/docs/javadoc/deprecated-list.html +++ b/docs/javadoc/deprecated-list.html @@ -1,10 +1,10 @@ - + - + Deprecated List - + diff --git a/docs/javadoc/help-doc.html b/docs/javadoc/help-doc.html index e6a595ed..eba5ebc9 100644 --- a/docs/javadoc/help-doc.html +++ b/docs/javadoc/help-doc.html @@ -1,10 +1,10 @@ - + - + API Help - + diff --git a/docs/javadoc/index-all.html b/docs/javadoc/index-all.html index 5cacfbc0..887b90af 100644 --- a/docs/javadoc/index-all.html +++ b/docs/javadoc/index-all.html @@ -1,10 +1,10 @@ - + - + Index - + @@ -67,7 +67,7 @@
-
A B C D E G I L M N O P R S T  +
A B C D E G I L M N O P R S T V 

A

@@ -90,6 +90,8 @@

A

asDataRow() - Method in class BBjGridExWidgetRow
 
+
AttributesRecord! - Variable in class BBjGridExWidget
+
 
@@ -98,7 +100,7 @@

B

BBjGridExWidget - Class in <Unnamed>
-
A sample BBj Widget Implementation
+
A Grid Widget Plugin for BBj
BBjGridExWidget(BBjWindow, BBjInt, BBjInt, BBjInt, BBjInt, BBjInt) - Constructor for class BBjGridExWidget
@@ -120,6 +122,14 @@

B

 
BBjGridExWidgetSelectRowEvent() - Constructor for class BBjGridExWidgetSelectRowEvent
 
+
BBjGridWidgetCellEditingEvent - Class in <Unnamed>
+
 
+
BBjGridWidgetCellEditingEvent() - Constructor for class BBjGridWidgetCellEditingEvent
+
 
+
BBjGridWidgetRowEditingEvent - Class in <Unnamed>
+
 
+
BBjGridWidgetRowEditingEvent() - Constructor for class BBjGridWidgetRowEditingEvent
+
 
@@ -138,6 +148,8 @@

C

collapse all groups.
+
Column$ - Variable in class BBjGridWidgetCellEditingEvent
+
 
@@ -146,6 +158,13 @@

D

Data! - Variable in class BBjGridExWidgetRow
 
+
DefaultType$ - Variable in class BBjGridExWidget
+
+
Set the default cell editor type +default to GRID_TYPE_BASIC_STRING + +This option is used only in case the grid failed to detect the field's type
+
deselectAll() - Method in class BBjGridExWidget
deselect all rows
@@ -160,6 +179,39 @@

D

E

+
Editable! - Variable in class BBjGridExWidget
+
+
Enable / Disable cell editing for the whole grid +1 = enable editing +0 = disable edition + +This option can be overridden from the column attributes directly + +ex: + + +dr!
+
+
EditType$ - Variable in class BBjGridExWidget
+
+
Define the edit behavior
+
+
EnableFilter! - Variable in class BBjGridExWidget
+
+
Allow filters in the grid +1 = enable +0 = disable
+
+
EnableFloatingFilter! - Variable in class BBjGridExWidget
+
+
Allow floating filters in the grid +1 = enable +0 = disable
+
+
EnterKeyBehavior$ - Variable in class BBjGridExWidget
+
+
Enter Key Behavior
+
expandAll() - Method in class BBjGridExWidget
Expand all groups.
@@ -171,14 +223,12 @@

E

G

getColumnState() - Method in class BBjGridExWidget
-
 
-
getDeselectedRowCount() - Method in class BBjGridExWidgetSelectRowEvent
-
Get the number of deselected rows by the last event
+
Get Column state
-
getGroupColumnLabel() - Method in class BBjGridExWidget
+
getDeselectedRowCount() - Method in class BBjGridExWidgetSelectRowEvent
-
get the label for the group column if the grid is a tree-grid
+
Get the number of deselected rows by the last event
getNewDeselectedRows() - Method in class BBjGridExWidgetSelectRowEvent
@@ -202,16 +252,26 @@

G

 
getSelectedRows() - Method in class BBjGridExWidget
 
-
getSelectedRowsInfo() - Method in class BBjGridExWidget
-
 
getThemes() - Method in class BBjGridExWidget
-
 
+
+
Get themes + +Get the grid supported themes
+
GRID_ALIGN_CENTER() - Static method in class BBjGridExWidget
 
GRID_ALIGN_LEFT() - Static method in class BBjGridExWidget
 
GRID_ALIGN_RIGHT() - Static method in class BBjGridExWidget
 
+
GRID_EDITTYPE_CELL() - Static method in class BBjGridExWidget
+
 
+
GRID_EDITTYPE_ROW() - Static method in class BBjGridExWidget
+
 
+
GRID_ENTER_NEXT_CELL() - Static method in class BBjGridExWidget
+
 
+
GRID_ENTER_STOP_EDITING() - Static method in class BBjGridExWidget
+
 
GRID_ROWPOS_BOTTOM() - Static method in class BBjGridExWidget
 
GRID_ROWPOS_MIDDLE() - Static method in class BBjGridExWidget
@@ -222,6 +282,36 @@

G

 
GRID_SELECT_ROW() - Static method in class BBjGridExWidget
 
+
GRID_TYPE_BASIC_BOOLEAN() - Static method in class BBjGridExWidget
+
 
+
GRID_TYPE_BASIC_DATE() - Static method in class BBjGridExWidget
+
 
+
GRID_TYPE_BASIC_IMAGE() - Static method in class BBjGridExWidget
+
 
+
GRID_TYPE_BASIC_IMAGE_FILTERABLE() - Static method in class BBjGridExWidget
+
 
+
GRID_TYPE_BASIC_NUMBER() - Static method in class BBjGridExWidget
+
 
+
GRID_TYPE_BASIC_STRING() - Static method in class BBjGridExWidget
+
 
+
GRID_TYPE_BASIC_TEXT() - Static method in class BBjGridExWidget
+
 
+
GRID_TYPE_BASIC_TIMESTAMP() - Static method in class BBjGridExWidget
+
 
+
GroupColumnLabel$ - Variable in class BBjGridExWidget
+
+
set the label for the group column if the grid is a tree-grid +defaults to "Group"
+
+
GroupEdit! - Variable in class BBjGridExWidget
+
+
Set to true to enable Group Editing, otherwise by default, row groups cannot be edited.
+
+
GroupSelectsChildren! - Variable in class BBjGridExWidget
+
+
When true, selecting a group will have the impact of selecting all its children +When false, then the group is selectable independently of the child nodes
+
@@ -230,6 +320,8 @@

I

Id! - Variable in class BBjGridExWidgetRow
 
+
isEditing() - Method in class BBjGridExWidget
+
 
IsSelected! - Variable in class BBjGridExWidgetRow
 
@@ -239,7 +331,9 @@

I

L

LicenseKey$ - Static variable in class BBjGridExWidget
-
 
+
+
Ag Grid enterprise key
+
@@ -247,7 +341,22 @@

L

M

moveColumn(BBjString, BBjNumber) - Method in class BBjGridExWidget
-
 
+
+
Change column position
+
+
moveToNextCell() - Method in class BBjGridExWidget
+
+
Start Next Cell Editing
+
+
moveToPreviousCell() - Method in class BBjGridExWidget
+
+
Move to previous cell
+
+
MultipleSelection! - Variable in class BBjGridExWidget
+
+
Allow selection of multiple cells or rows +multiple: 1 allows multiple selection, 0 denies
+
@@ -264,8 +373,16 @@

N

O

+
ON_GRID_CELL_EDITING_STARTED() - Static method in class BBjGridExWidget
+
 
+
ON_GRID_CELL_EDITING_STOPPED() - Static method in class BBjGridExWidget
+
 
ON_GRID_DOUBLE_CLICK() - Static method in class BBjGridExWidget
 
+
ON_GRID_ROW_EDITING_STARTED() - Static method in class BBjGridExWidget
+
 
+
ON_GRID_ROW_EDITING_STOPPED() - Static method in class BBjGridExWidget
+
 
ON_GRID_SELECT_ROW() - Static method in class BBjGridExWidget
 
onLoad(BBjEvent) - Method in class BBjGridExWidget
@@ -300,6 +417,10 @@

R

 
Row! - Variable in class BBjGridExWidgetDoubleClickRowEvent
 
+
Row! - Variable in class BBjGridWidgetCellEditingEvent
+
 
+
Row! - Variable in class BBjGridWidgetRowEditingEvent
+
 
@@ -316,6 +437,14 @@

S

SelectedRows! - Variable in class BBjGridExWidgetSelectRowEvent
 
+
SelectedRowsMap! - Variable in class BBjGridExWidget
+
+
A map which keeps tracking selected and deselected rows
+
+
SelectionMode! - Variable in class BBjGridExWidget
+
+
set the selection mode of the grid
+
setColumnAlignment(BBjString, BBjNumber) - Method in class BBjGridExWidget
set the alignment of a column
@@ -328,8 +457,18 @@

S

set the font color of a column
+
setColumnMask(BBjString, BBjString) - Method in class BBjGridExWidget
+
+
set the background color of a column
+
+
setColumnMask(BBjString, BBjString, BBjString) - Method in class BBjGridExWidget
+
+
set the background color of a column
+
setColumnState(BBjGridExWidgetColumnState) - Method in class BBjGridExWidget
-
 
+
+
Apply columns state
+
setColumnWidth(BBjString, BBjNumber) - Method in class BBjGridExWidget
set the width of a column
@@ -350,32 +489,15 @@

S

 
setData(DataTree, BBjString, BBjString) - Method in class BBjGridExWidget
 
-
setEnableFilter(BBjNumber) - Method in class BBjGridExWidget
-
-
Allow filters in the grid
-
-
setEnableFloatingFilter(BBjNumber) - Method in class BBjGridExWidget
-
-
Allow floating filters in the grid
-
setFitToGrid(BBjNumber) - Method in class BBjGridExWidget
set the grid to scroll horizontally or fit into the client area
-
setGroupColumnLabel(BBjString) - Method in class BBjGridExWidget
-
-
set the label for the group column if the grid is a tree-grid -defaults to "Group"
-
setGroupSelectsChildren(BBjNumber) - Method in class BBjGridExWidget
When true, selecting a group will have the impact of selecting all its children When false, then the group is selectable independently of the child nodes
-
setMultipleSelection(BBjNumber) - Method in class BBjGridExWidget
-
-
Allow selection of multiple cells or rows
-
setQuickFilter(BBjNumber) - Method in class BBjGridExWidget
Perform throw columns search
@@ -386,36 +508,37 @@

S

setSelectedRow(BBjNumber) - Method in class BBjGridExWidget
-
set the selected row
+
Select a row
setSelectedRows(BBjVector) - Method in class BBjGridExWidget
-
set the selected row indices
+
Select verctor of rows
-
setSelectionMode(BBjNumber) - Method in class BBjGridExWidget
+
setStartCellEditing(BBjNumber, BBjString) - Method in class BBjGridExWidget
-
set the selection mode of the grid
+
Start Cell Editing
-
setShowGroupChildCount(BBjNumber) - Method in class BBjGridExWidget
+
setStartCellEditing(BBjNumber, BBjString, BBjString) - Method in class BBjGridExWidget
-
Optinally Suppress the number of items in a group
+
Start Cell Editing
-
setShowSelectionCheckbox(BBjNumber) - Method in class BBjGridExWidget
+
setStartCellEditing(BBjNumber, BBjString, BBjNumber) - Method in class BBjGridExWidget
-
When true, selection box will be show on the first column -When false, no checkbox will be displayed
+
Start Cell Editing
setTheme(BBjString) - Method in class BBjGridExWidget
-
 
+
+
Set the grid theme
+
setVisibleColumn(BBjString) - Method in class BBjGridExWidget
-
set visible column +
Set visible column Ensures the column is visible, scrolling the table if needed.
setVisibleRow(BBjNumber, BBjString) - Method in class BBjGridExWidget
-
set visible row +
Set visible row Ensures the row index is visible by vertically scrolling the grid.
@@ -424,6 +547,44 @@

S

experimental function that shows the developer console (only in GUI, for BUI it's a NOOP)
+
ShowGroupChildCount! - Variable in class BBjGridExWidget
+
+
Enable/disable Suppress the number of items in a group +1 = enable +0 = disable
+
+
ShowGroupSelectionCheckbox! - Variable in class BBjGridExWidget
+
+
When true, selection box will be show on group column +When false, no checkbox will be displayed
+
+
ShowSelectionCheckbox! - Variable in class BBjGridExWidget
+
+
When true, selection box will be show on the first column +When false, no checkbox will be displayed
+
+
SingleClickEdit! - Variable in class BBjGridExWidget
+
+
Enable / Disable cell editing for the whole grid +1 = enable editing +0 = disable edition
+
+
startNextCellEditing() - Method in class BBjGridExWidget
+
+
Start next Cell Editing
+
+
startPreviousCellEditing() - Method in class BBjGridExWidget
+
+
Start previous Cell Editing
+
+
stopEditing() - Method in class BBjGridExWidget
+
+
Stop editing and discard changes
+
+
stopEditing(BBjNumber) - Method in class BBjGridExWidget
+
+
Stop Editing
+
String$ - Variable in class BBjGridExWidgetColumnState
 
@@ -435,7 +596,15 @@

T

toString() - Method in class BBjGridExWidgetRow
 
-A B C D E G I L M N O P R S T 
+ + + +

V

+
+
Value$ - Variable in class BBjGridWidgetCellEditingEvent
+
 
+
+A B C D E G I L M N O P R S T V 
diff --git a/docs/javadoc/index.html b/docs/javadoc/index.html index a674b7d3..48138d95 100644 --- a/docs/javadoc/index.html +++ b/docs/javadoc/index.html @@ -1,8 +1,8 @@ - + - + Generated Documentation (Untitled) @@ -79,6 +79,8 @@

Class Hierarchy

  • BBjGridExWidgetDoubleClickRowEvent
  • BBjGridExWidgetRow
  • BBjGridExWidgetSelectRowEvent
  • +
  • BBjGridWidgetCellEditingEvent
  • +
  • BBjGridWidgetRowEditingEvent
  • BBjWidget
  • diff --git a/docs/javadoc/package-summary.html b/docs/javadoc/package-summary.html index e1dc3f90..46fc7f54 100644 --- a/docs/javadoc/package-summary.html +++ b/docs/javadoc/package-summary.html @@ -1,9 +1,9 @@ - + - - + + @@ -72,7 +72,7 @@

    Package <Unnamed>

    BBjGridExWidget -
    A sample BBj Widget Implementation
    +
    A Grid Widget Plugin for BBj
    @@ -91,6 +91,14 @@

    Package <Unnamed>

    BBjGridExWidgetSelectRowEvent   + +BBjGridWidgetCellEditingEvent +  + + +BBjGridWidgetRowEditingEvent +  + diff --git a/docs/javadoc/package-tree.html b/docs/javadoc/package-tree.html index d1bf8b48..0467595e 100644 --- a/docs/javadoc/package-tree.html +++ b/docs/javadoc/package-tree.html @@ -1,10 +1,10 @@ - + - + Class Hierarchy - + @@ -79,6 +79,8 @@

    Class Hierarchy

  • BBjGridExWidgetDoubleClickRowEvent
  • BBjGridExWidgetRow
  • BBjGridExWidgetSelectRowEvent
  • +
  • BBjGridWidgetCellEditingEvent
  • +
  • BBjGridWidgetRowEditingEvent
  • BBjWidget