Commit Graph

22 Commits

Author SHA1 Message Date
mdb da6439a7bb Implemented a class for selecting among a mutually exclusive set of
buttons.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@644 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-03-10 05:10:37 +00:00
mdb 3900a7da7f A class for doing quick sorts.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@580 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-19 03:37:32 +00:00
mdb 3af18399cd Implemented an efficient integer set class that uses a sorted array of
integers to maintain its contents.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@559 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-03 07:10:16 +00:00
mdb 1b26bab85b Use Arrays.equals() instead of rolling our own.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@558 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-02-03 07:09:50 +00:00
mdb 2fb0906dda Made joinEscaped() handle null array elements by converting them to the
empty string.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@550 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-30 18:21:15 +00:00
mdb a7eef89a75 Added StringUtil.joinEscaped() and a unit test for said.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@549 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-30 18:11:27 +00:00
mdb b72c8e0bd5 Added simple test driver for ConfigUtil.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@543 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:19:13 +00:00
mdb 6d7308fb2b Copy the contents of the rsrc directory into the classpath.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@542 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-01-29 23:18:53 +00:00
mdb 9fd65f6091 git-svn-id: https://samskivert.googlecode.com/svn/trunk@530 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2001-12-20 02:00:12 +00:00
mdb d6dc2e1822 Created a lightweight class for managing text formatted to fit in a
particular dimension (either horizontal or vertical).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@525 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-19 07:02:50 +00:00
mdb 2b69011649 Implemented a class (and a unit test) that can quickly locate the nearest
coordinate-having object to a specified coordinate from a set of such
objects. It does so using an efficient algorithm so that we can do things
like highlight the object nearest the mouse cursor.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@516 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-15 03:19:03 +00:00
mdb ae224c6252 Modified TestUtil not to prepend 'rsrc' to test resource file paths
because it's silly. Prepend your own damned 'rsrc' if you want to look in
that directory.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@510 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-12-13 01:31:23 +00:00
mdb 14fea2a593 Created unit test for HashIntMap.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@472 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-26 19:34:31 +00:00
mdb b52216a91d Created SetFieldRule which allows the XML Digester to set public fields on
objects with automatic conversion from a string to the appropriate field
type (currently supports int, Integer, String, int[] and String[]).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@454 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:45:52 +00:00
mdb f6a1538b4f Require that JUnit forks so that we don't end up with wacky conflicts
between xerces.jar loaded by ant and our own copies of an XML parser
implementation.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@452 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:44:24 +00:00
mdb c69f170765 SiteResourceLoader no longer automatically falls back to the servlet
context, so we have to simulate that ourselves.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@441 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:57:18 +00:00
mdb 95a4918665 Don't find anything with Test in it, just anything that ends with Test.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@440 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:56:59 +00:00
mdb 5f85b12298 Created a version of ListUtil that works with arrays of ints.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@424 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 02:13:29 +00:00
mdb 3148bf5c76 Added a version of getResourceAsStream() that takes the site identifier
for when the site has already been identified.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@422 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 18:08:01 +00:00
mdb c5fdf91de8 Created a testing framework for the samskivert library based on JUnit and
ant. The test drivers are located in a separate hierarchy and are built
and invoked as a single ant target.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@419 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:13:25 +00:00
mdb 820c633b73 Created site resource loader which loads resources based on the site
identified from an http request. Also created a unit test driver for the
loader.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@418 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:12:31 +00:00
mdb 804f98de22 Created a configuration management object that provides access to typed
config values retrieved from properties files that live in the classpath.
Also modified build system to copy properties files from the classpath
into the target directory so that they are properly available.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@165 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-12 02:44:34 +00:00