4.5.45 (Apr 2011)

New features

  • New methods for getting row index and column index from CellScriptObject in TestAPI (See 10946)
  • New method for getting CellScriptObject from ColumnScriptObject in TestAPI (See 10947)
  • Automatic pop-up and highlighting of menu items (See 10948)


Defects Resolved (Java)

10666The stylesheet attributes of Pane were excluded by DisplayService.cloneUiElement().
10876Mixed code issue with signed and unsigned Jar for java 1.6.19 or later
10903Text Area does not scroll with not editable using keyboard
10945Automatic resizing of a dialog does not work correctly.
10946FR : TestAPI : The addition of the function which gets a row index and a column index from CellScriptObject.
10947FR : TestAPI : The functional addition for getting CellScriptObject from ColumnScriptObjects.
10948FR : The functional addition for an automatic pop-up & highlight of a menu bar
10949A disabled image is NOT updated.
10961Exception while using nested iterators
10962Compatibility : The selection item of <comboBox/> has an issue of a highlight.
10985RadioButton default renderer misconfigured

 

10876   New repackaging Script to solve problems with mixed code exceptions due to signed and unsigned Jar for java 1.6.19 or later

In the past, some of our customers have run into problems signing the plugin jars in their Nexaweb projects.  They had to manually unpackage, rearrange, package and then sign the jar.  With this release, we are providing an ant script that automates that process.  Below are the steps to automatically sign your plugin jars. In the future we hope to make this even easier.

Prerequisites:
1.) install ant and make sure ANT_HOME is correctly set
2.) make sure that ant-contrib-0.3.jar is in your ant lib directory
3.) make sure your JAVA_HOME is pointing to a jdk

Run the script:
1.) Download build.xml
2.) Copy the build.xml file and your certificate keys file to your nexaweb project directory
3.) Modify build.xml so that "keystore.alias", "keystore.file" and "keystore.password" have the appropriate values for your keystore
4.) Stop Studio
5.) Go to your project folder and run build.xml as an ant script
6.) Sign the rest of your jar files as you would normally
 

10946 & 10947   New TestAPI features for cells and columns  

Added two methods that can get the row index and the column index from a CellScriptObect:

CellScriptObject.getRowIndex()
CellScriptObject.getColumnIndex()

Also a method to get the cells in a ColumnScript object:

ColumnScriptObject.getCells()

Example: If you had a test script and wanted to print the row and column indexes of all the selected cells in a table, here is one way of doing it using CellScriptObject.getRowIndex() and CellScriptObject.getColumnIndex():

    int COLUMN_INDEX=0;
    ApplicationScriptObject appScriptObject = (ApplicationScriptObject) getTestScriptService().getApplicationScriptObject();
    TableScriptObject tableScriptObject = (TableScriptObject)appScriptObject.findObjectById( "tb1" );        
    ColumnScriptObject col=(ColumnScriptObject)tableScriptObject.getColumnAt(COLUMN_INDEX);
   
    //10947 - get cells in a column
    Vector cellsByColumn=col.getCells();
       
    for(int i=0;i<cellsByColumn.size();i++){
        CellScriptObject cell=(CellScriptObject)cellsByColumn.get(i);
  
        //10946 - get row and column index of a cell
        System.out.println("cellsByColumn Cell RowIndex " + cell.getRowIndex());
        System.out.println("cellsByColumn Cell ColumnIndex " + cell.getColumnIndex());
    }

10948Automatic pop-up and highlighting of menu items

Menus and MenuItems can now be manipulated programatically using these methods:
 

Open popup Menu programatically using:

menu.setAttribute("popupVisible", "true");
 

set highlighted menuItem using:

menuItem.setAttribute("highlighted","true");