Permalink
Commits on Aug 16, 2016
  1. PIVOT-990: Fix the RepositionCallback logic in TerraMenuPopupSkin so …

    …that
    
    a menu whose width or height is greater than the display width or height
    will be positioned at 0 (X or Y as appropriate, or both), and whose
    containing Border will be sized to the limiting display dimension.  This
    allows the contained Panorama to automatically insert scroll arrows so
    the menu that has overflowed can be scrolled into view.
    
    This is a merge of revision 1756534 from "trunk" to "branches/2.0.x".
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1756535 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Aug 16, 2016
Commits on Aug 15, 2016
  1. PIVOT-948: Add an example program that both illustrates how to use da…

    …ta binding
    
    (in this case, "selected item binding" with a ListButton), but that also serves
    as a check on the fix for this issue.  Having an unselected item used to cause
    the bind mapping not to be called during a "store" operation.  Now it is called
    always (if set), and the mapping is responsible for translating between the
    unselected state/index and the underlying stored value.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1756437 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Aug 15, 2016
Commits on Aug 12, 2016
  1. PIVOT-986: When viewing hidden files in one of the browsers, dim

    the icon and the file name so it is clear that the file/directory
    is hidden.
    
    Put a "Show hidden files" checkbox into the FileBrowserWithCharsetTest
    program so we can test this functionality in the regular file
    browser as well as the VFS Browser tested earlier.
    
    Merging FileBrowser parts of r1735282 from trunk to branches/2.0.x.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1756228 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Aug 12, 2016
  2. PIVOT-986: Provide a property for the FileBrowser and VFSBrowser classes

    to allow viewing of hidden files.
    
    There is already a STYLE in the skins of these classes that is nicely
    analogous, so make a new style in the skins called "showHiddenFiles",
    provide getter and setter methods and then "do the math" inside the
    skins to take out the HIDDEN_FILE_FILTER if this flag is set, while
    still using it when the flag is false.
    
    Provide a sort-of pass-through style in the SheetSkins to set the
    style in the component skin (for convenience).  Again this is based
    on the way the "hideDisabledFiles" style works (exactly).
    
    That's it, really.  Except add a simple test program in VFSBrowserTest
    (for the VFSBrowser, obviously) to prove that the code works.  I need
    to find a similar suitable place to test the regular FileBrowser case,
    though, which will be a separate submission.
    
    The FileBrowser parts of this change will be crossed to the 2.0.x
    branch in due course.
    
    Merging the FileBrowser parts of r1735181 to branches/2.0.x from trunk.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1756227 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Aug 12, 2016
Commits on Jun 28, 2016
  1. PIVOT-891: Add double/triple click support in TextPane the same way i…

    …t is
    
    supported (now) in TextArea.
    
    Double click selects the word immediately under/around the mouse pointer,
    and triple click selects the line (paragraph) that is under the mouse.
    
    Essentially we just duplicated the code from TextArea into TextPane with
    appropriate (small) modifications for the difference in APIs.
    
    Had to port over the "getRowOffset" and "getRowLength" methods also (which
    were not part of the original change in "trunk" because they were added by
    earlier changes).
    
    Otherwise, this is a merge of revision 1750549 from "trunk" to "branches/2.0.x".
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1750550 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Jun 28, 2016
Commits on Jun 8, 2016
  1. PIVOT-989: Use the correct Charset in StringSerializer.writeObject().…

    … The "getBytes()"
    
    call was not specifying any Charset, thus getting the platform default (which on Windows
    is usually Win-1252), which is usually not the same as the UTF-8 default which is used
    in this class.  So, use the given Charset.
    
    Also, in "trunk", use the StandardCharsets.UTF_8 value, instead of searching by name.
    Note: this part of the change will not be propagated to "2.0.x" because it still needs
    to compile under Java 6.
    
    Update the StringSerializerTest with a specific test of this, and include a byte dump
    so we can actually examine the bytes to make sure (the console output, especially on
    Windows, is not helpful).
    
    This is a merge of revision 1747445 from "trunk" to "branches/2.0.x", but with the
    StandardCharsets stuff changed because it is not supported in Java 6.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1747449 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Jun 8, 2016
Commits on Apr 22, 2016
  1. PIVOT-987: Address the different handling of script return values

    from attributes versus elements.
    
    The script return value was being ignored in AttributeInvocationHandler
    and the default values were always being used.  But in the similar
    code in ElementInvocationHandler the script result was being used
    and the defaults only used if the script method returns nothing.
    
    Bring the code for attributes in line with that for elements.
    
    This is a merge of revision r1740570 from trunk to branches/2.0.x.
    
    Note: the merge includes the minor change also from trunk that
    changes the return value in the Boolean case from "false" to
    Boolean.FALSE.  I believe this was found by a "lint" check of
    the code.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1740574 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Apr 22, 2016
Commits on Feb 12, 2016
  1. PIVOT-985 (again): Since we supported the British spelling variation …

    …of these
    
    two colors, it seems only right to support this variation for the "gray" value
    as well (meaning "grey").  So, add that in the same way as the other two.
    
    This is a merge of revision 1730108 from "trunk" to "branches/2.0.x".
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1730110 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Feb 12, 2016
  2. PIVOT-985: Fix the ColorUtilities.decodeColor method to deal with the…

    … two
    
    "standard" Java color names that didn't actually work:  "darkgray" and
    "lightgray" because their static field names are mixed case (as in
    "darkGray") which wouldn't match our search using the lower case string.
    
    Put in special cases for these two, plus support for the British
    spellings (as in "darkgrey" and "lightgrey").
    
    Modify one of the tutorials to test this functionality (changing "red"
    to "lightGray").
    
    Note: the other issue PIVOT-984 about supporting X11/CSS3 color names
    could supercede this small fix, but I felt it was worth getting this
    into the 2.0.4 branch, since the new colors wouldn't happen until 2.1.
    
    This is a merge of revision 1730100 from "trunk" to "branches/2.0.x".
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1730103 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Feb 12, 2016
Commits on Feb 9, 2016
  1. Further refinement of the DataBindingTest program: implement the "sto…

    …re" via a new button
    
    in the GUI, and update the "context" display of the values after the store operation.
    
    This is a merge of revision 1729493 from trunk to branches/2.0.x with the Java 7 changes
    reverted out.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1729503 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Feb 9, 2016
  2. Clean up the DataBindingTest so that it actually works now. This actu…

    …ally
    
    only involved simplifying the renderers to only implement the "toString(Object)"
    methods.
    
    But, make the values more interesting, and add explanatory stuff to the GUI
    so it is more understandable what is actually happening.
    
    This is a merge of revision 1729480 from trunk to branches/2.0.x with the
    HyperlinkButton changed to just a Label, and the Java 7 changes reverted.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1729501 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Feb 9, 2016
Commits on Feb 3, 2016
  1. PIVOT-965: Fix an issue with Java 8 (Nashorn script engine) and the way

    we deal with included scripts.  The problem is that in creating the new
    serializer for the included script, the script engine ends up creating a
    new "nashorn.global" context, which does not include any previous defined
    variables or functions.  This new context persists as the current "global"
    context after the included script has been read.  Then when attempting to
    look up any variables/functions defined before the "include" they won't be
    found.
    
    The "solution" (or workaround) is to detect when the new global context is
    being established and copy the old definitions into it.  Now, that sort of
    begs the question as to:
    * Is this the right place to do this?
    * What about the situation when "inline" is false for the included script?
    * What about multiple includes?
    * What about nested includes?
    
    These are still unanswered questions needing more research.  So, for now,
    just add the workaround (and some of the debug code still there, but
    commented out).
    
    This is a merge of revision 1728247 from trunk to branches/2.0.x.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1728248 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Feb 3, 2016
Commits on Feb 1, 2016
  1. PIVOT-983: A similar bug was fixed in the VFS File Browser. The issue

    is that the "getRowAt" method of TableView returns -1 if the given
    y position is past the end of the data length.  Trying to get row -1
    from an ArrayList gives this IllegalArgumentException.  The solution
    implemented in the previous fix was simply to check for the -1 row
    value and exit early in that case.  So, port that fix to the regular
    File Browser.
    
    This is a merge of revision 1727931 from trunk to branches/2.0.x.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1727932 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Feb 1, 2016
Commits on Dec 1, 2015
  1. Add a demo program to illustrate how to use ScaleDecorator for zooming

    in and out of an image.
    
    This is a merge of revision 1717360 from "trunk" to "branches/2.0.x".
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1717363 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Dec 1, 2015
Commits on Nov 3, 2015
  1. PIVOT-965: Fix another place where the "nashorn.global" object has to be

    searched in order to find script variables defined when using Java 8.
    
    The trick is that now script variables are a part of the Nashorn global
    space, which is a sub-object of the regular namespace.  So, the additional
    steps which are necessary in the case that a variable is not found would
    be to then get the "nashorn.global" object, and if it exists transform
    it into a "Bindings" (if possible) and then search for the value there.
    
    Note: this fixes the particular case reported by user, but I'm pretty
    sure there are other places that needs this same treatment.
    
    This is a merge of revision 1712175 from trunk to branches/2.0.x.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1712190 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Nov 3, 2015
Commits on Nov 2, 2015
  1. PIVOT-964: update SvgSalamander jar to latest stable, took the jar un…

    …der sources from their latest tag 1.0.39
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1712161 13f79535-47bb-0310-9956-ffa450edef68
    Sandro Martini committed Nov 2, 2015
  2. trim-whitespace

    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1712159 13f79535-47bb-0310-9956-ffa450edef68
    Sandro Martini committed Nov 2, 2015
Commits on Sep 15, 2015
  1. Code cleanup: After the last change to copy some more of the resources

    into place so tutorials and tests can run directly, that broke the .jar
    packaging (caught by the Jenkins jar signing task) because there are
    now lots of duplicate files.  So, exclude these files in the "ant-bin"
    subdirectories from the .jar packaging (they come from the source
    directories instead).
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703292 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 15, 2015
  2. PIVOT-951: Update the test program to specifically test for double click

    (i.e., count == 2) and to display a different message for counts beyond
    that.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703278 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 15, 2015
  3. Code cleanup: Reorganize the "build.xml" so that the tests are compil…

    …ed after
    
    everything else, in case there are new methods that the tests depend on that
    won't compile until the core/wtk .jar files are built.
    
    Add a copy of .bxml, .json and .png files in both the tests and tutorials
    directories, so you can just change to the xxxx/ant-bin directory and run
    tests with "java org.apache.pivot....." (that is the class name of the
    test or tutorial).  All the resources will be in place to do that now.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703276 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 15, 2015
  4. PIVOT-972: Update the Calculator tutorial to work around a "javac" bug

    where an interface method called on an enum constant is not found by the
    compiler.  Cast the enum value to the interface, and then it works.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703273 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 15, 2015
  5. PIVOT-972: Fix some more bugs with the calculator tutorial:

    * Implement the difference between "Clear" and "All Clear".
    * Highlight the current operator button (by changing border color).
    * When two operators are pressed in a row, just change operators,
      don't do the prior operation.
    * Fix backspace not to do it twice, and to work properly when clearing
      the last digit.
    
    This is a merge of revision 1688484 from trunk to branches/2.0.x.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703267 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 15, 2015
  6. PIVOT-972: Fix a bug with percent calculations in the Calculator tuto…

    …rial application.
    
    This is a merge of revision 1688306 from trunk to branches/2.0.x.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703266 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 15, 2015
  7. PIVOT-972: Add a small tutorial application: a simple calculator app,…

    … to demonstrate
    
    keyboard mappings and action mappings.
    
    This is the first cut of the app, which works, except for some issues:
    * The "Settings" button does nothing.
    * There are issues with the result overflowing the display sometimes.
    * Arithmetic errors are not trapped and handled gracefully.
    * No shortcut key for the "+/-" button.
    * Would like to "push" the buttons when the corresponding keys are pressed.
    * No help is available.
    * There may be a problem with "Clear" when an operator is pending.
    * There is no check on the input size, which can easily overflow the display area.
    * Backspace after an operator is chosen may not work correctly.
    * The native window should be sized nicely to just fit the form.
    * Needs Javadoc in the code.
    
    Add another "famfamfam" icon for use here, and update the NOTICE file.
    
    Add several Keyboard.KeyCode values that are used here for available virtual keys.
    
    This is a merge of revision 1687874 from trunk to branches/2.0.x with one change
    so that Calculator.java will compile with Java 6.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703265 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 15, 2015
  8. Adding a new calculator directory to Pivot tutorials.

    This is a merge of revision 1687873 from trunk to branches/2.0.x.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703262 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 15, 2015
Commits on Sep 14, 2015
  1. PIVOT-978: Fix Calendar control to only allow valid years.

    Two changes:
    1. Add two static methods to CalendarDate to get the min and max supported
       years for dates.
    2. Then, set the Spinner data for the year spinner in the Calendar control
       to have these values as the bounds.  Have to change the code to use
       getSelectedItem instead of getSelectedIndex, because the index no longer
       starts at zero, to get/set the year value from the Spinner.
    
    There is still a small problem: when you try to display January 1583, it
    needs to reach back to 1582 to get the start of the week, and then you will
    get the exception.  Other than that, everything seems fine.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703071 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 14, 2015
  2. Code cleanup: Cleanup and add some Javadoc to ListView.java.

    Some typos were noticed in the current version, and more were
    found by inspecting the code.  Added some @throws and some
    other information.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1703029 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Sep 14, 2015
Commits on Jul 21, 2015
  1. PIVOT-975: Build problems with Java 1.8.0_45

    First, enable Java 1.8 as a valid Java version number.
    
    Then, there are errors related to LocalManifestAdapter being a second
    class within the LocalManifest.java file.  It should be moved to its
    own source file.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1692157 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Jul 21, 2015
Commits on Jul 20, 2015
  1. PIVOT-974: Fix BXMLSerializer to correctly deal with the new Java 8 N…

    …ashorn
    
    script engine by doing two things:
    1) Accessing global variables needs to be done through the "nashorn.global" object.
    2) The "nashorn:mozilla_compat.js" script needs to be loaded first before any
       other scripts are executed.
    
    This change implements these two fixes.
    
    This is a merge of revision 1691618 from trunk to branches/2.0.x.
    
    Since we build 2.0.x with Java 6, strictly speaking this change wouldn't be
    necessary there, except that a lot of users will be running (not building)
    on Java 8 now, since Java 7 is EOL, so this change will actually be necessary
    for the 2.0.5 release.
    
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1692012 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Jul 20, 2015
Commits on Jul 13, 2015
  1. PIVOT-949: merge from trunk for second part of the fix (enhancement, …

    …add the ability to specify a bxml file as src even from a script variable)
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1690662 13f79535-47bb-0310-9956-ffa450edef68
    Sandro Martini committed Jul 13, 2015
Commits on Jul 9, 2015
  1. PIVOT-949: merge from trunk for first part of the fix (add the fallba…

    …ck, but without Java 7 specific features here)
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1690105 13f79535-47bb-0310-9956-ffa450edef68
    Sandro Martini committed Jul 9, 2015
Commits on Jul 1, 2015
  1. update Servlet API to that provided with latest Tomcat-6.0.x (6.0.44)…

    …, or Servlet-2.5, not a specific requirement but useful to refresh this dependency
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1688646 13f79535-47bb-0310-9956-ffa450edef68
    Sandro Martini committed Jul 1, 2015
  2. PIVOT-964: trim-whitespace, and update SvgSalamander jar to latest st…

    …able, but built by me from their sources using latest tag 1.0.38 (and a small fix in one class there to fix a class not found compiler error).
    
    Note that with this now all seems to work :-) .
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1688643 13f79535-47bb-0310-9956-ffa450edef68
    Sandro Martini committed Jul 1, 2015
  3. PIVOT-964: Finish to correct compile errors due to merging Java 7 cha…

    …nges into the Java 6 branch, by keeping spinnerdata as array (to show even a case for array to list in Pivot collections)
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1688631 13f79535-47bb-0310-9956-ffa450edef68
    Sandro Martini committed Jul 1, 2015
  4. PIVOT-964: Correct compile errors due to merging Java 7 changes into …

    …the Java 6 branch.
    
    git-svn-id: https://svn.apache.org/repos/asf/pivot/branches/2.0.x@1688550 13f79535-47bb-0310-9956-ffa450edef68
    Roger Lee Whitcomb committed Jul 1, 2015