mdb
5ec20fe9d9
Oops, we meant for that to be static.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1531 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-25 00:08:34 +00:00
mdb
b12839560b
A utility for creating a VelocityEngine that's all set up to be used from
...
within a tool in a sensible manner (loading templates from the classpath,
not logging boatloads of informational messages, not complaining about a
non-existent "macro library").
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1530 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-25 00:07:16 +00:00
mdb
7ede7ff62e
Having the context path around always will help us to avoid ever hard
...
coding it.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1529 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-19 17:36:47 +00:00
mdb
2618f83f52
No more JAVA_LIBS; added requirement for commons-logging which is now
...
needed by commons-digester.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1528 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-17 23:11:21 +00:00
ray
b2de8370a1
While poking around I noticed that the remove implementation had a minor
...
inefficiency in that if the first record in a chain did not match it ended
up checking it once more prior to moving on to the next record in the chain.
Cleaned up to be similar to HashIntMap's remove implementation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1527 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-11 22:14:09 +00:00
ray
1da24589d8
- Added the ability to only display a subset of fields.
...
- Renamed the methods for manipulating specific elements of the list
of objects being edited to have the suffix "Datum" instead of "Data".
- Added addDatum() and another version of removeDatum().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1526 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-06 01:58:33 +00:00
andrzej
b5e23513ab
Re-fixed typo, oh.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1525 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-02 23:59:45 +00:00
andrzej
83c2e6908a
Added getTextColor and getAlternateColor methods to Label.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1524 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-02 23:30:51 +00:00
mdb
1d0f058a49
Cope with a null list in ListUtil.size().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1523 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-11-02 23:07:16 +00:00
ray
6513222d5a
Throw a NullPointerException if anyone tries to do anything with null
...
elements in the list. I do this because null elements are incompatible
with the implementation details of these utility methods. There were only
two related pieces of code in all our projects that used the behavior
of indexOf(null) and those now use the new indexOfNull() method.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1522 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-25 18:51:01 +00:00
samskivert@gmail.com
a2d3877796
Upon further thought- nobody should be calling SortableArrayList.contains()
...
with null elements anyway because SortableArrayList just plain does
not support nulls. That's fine, Collections have the option of suporting
null elements, but let's just have the underlying implementation
(ListUtil) throw a NPE if needed.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1521 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-25 18:42:38 +00:00
ray
42f7a5b962
A slightly more subtle version of contains() so that it does the
...
right thing if null is passed in.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1520 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-08-25 06:55:08 +00:00
mdb
de5c77ca81
Some cleanups.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1519 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:54:21 +00:00
mdb
c244c9b430
We're going to need to use object equality here.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1518 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:44:28 +00:00
mdb
121e104c5b
We want to use equals() here, as Ray points out.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1517 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:41:05 +00:00
mdb
268226626e
More ...Equal() -> ...() and ...() to ...Ref().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1516 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:35:39 +00:00
mdb
7d14559875
ListUtil.containsEqual() -> ListUtil.contains()
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1515 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:26:30 +00:00
mdb
34de8180e2
ListUtil.contains() -> ListUtil.containsRef()
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1514 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-23 17:21:21 +00:00
mdb
2e7b253b90
Return the action listener added in case the caller later wants to remove it.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1513 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-22 23:52:54 +00:00
mdb
33d50bd4e5
Fixed a bunch of deprecated usages.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1512 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-22 17:27:53 +00:00
ray
4de3c378a3
Harmless casts to make compiling in jdk1.5 happy.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1511 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-10-13 00:17:39 +00:00
samskivert@gmail.com
962ebeec53
Modified implementation of equals() so that it's quicker when the two
...
references point to the same object.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1510 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-30 23:49:36 +00:00
ray
d2875aea5a
Arrgh!! If it's a popup that is being removed, don't remove ALL popups.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1509 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-29 23:03:26 +00:00
ray
130f67aa04
Added some new constructors.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1508 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-29 02:19:36 +00:00
ray
6a0f89d645
Added lookupUsersByEmail() to look up all user records for users that
...
match the specified email address.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1507 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-25 01:52:17 +00:00
mdb
b34c1a3265
Let's get crazy convenient!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1506 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-23 16:55:11 +00:00
mdb
4ef11efe20
A very handy method.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1505 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-23 16:53:03 +00:00
mdb
35f9b6cc1d
A no-op ResultListener, useful on certain occasions.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1504 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-21 02:34:11 +00:00
ray
50f0b75408
If our source component is removed in the middle of a drag, reset the
...
cursor and cancel the drag.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1503 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-10 17:52:42 +00:00
ray
742216d9de
A utility ResultListener that is silent on success, but logs as requested
...
on failure.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1502 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-09-06 00:03:15 +00:00
mdb
e6f2c77898
We need to handle the regular arguments as well.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1501 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-28 16:05:25 +00:00
mdb
7f2fcb59fc
Fixed concurrent modification exception.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1500 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-28 02:21:58 +00:00
ray
2f1630d738
Added some examples to the percent method documentation to show how it formats.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1499 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-25 00:39:57 +00:00
ray
e8cc8b5f4b
Boy howdy, NumberFormat has a way to format percentages. Use that, specify
...
to always show at least two digits after the decimal point.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1498 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2008-08-25 06:46:32 +00:00
mdb
bd31773569
Ignore case when checking remote commands.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1497 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-23 06:24:07 +00:00
mdb
1f98a87829
Created a simple remote control interface; refactored the code that
...
connects to the music server and subscribes to the DJObject.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1496 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-23 06:19:40 +00:00
samskivert@gmail.com
d61977538d
Use a SimpleDateFormat so we get the milliseconds in the first call
...
timestamp.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1495 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-20 18:03:25 +00:00
mdb
0c863cefad
Record and report the time of the first call.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1494 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-20 17:59:34 +00:00
mdb
89a6c009e8
Use some sort of username to avoid collisions when logging into the
...
server.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1493 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-18 17:07:30 +00:00
mdb
9a503af8de
Various updated to happify things in Java Web Start.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1492 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-18 05:33:28 +00:00
mdb
c3d2f61d28
Added nay votes; any songs with nay votes are not added when the album
...
containing those songs is added to the playlist.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1491 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-18 05:19:19 +00:00
mdb
8bf1531d4b
Implemented pausing, fixed up some fiddly bits.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1490 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-18 04:46:09 +00:00
mdb
7a2a5bed25
The Big Fat RoboDJ revamp. Rewrote the server using Presents; rewrote the
...
chooser to interface using distributed objects; implemented 90% of the
music importing process (just need to upload the data to the server and
stuff the new music records in the database).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1489 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-18 04:23:00 +00:00
mdb
32ce5c7048
Migrated a comment on registering protocol handlers into the place where
...
we actually register protocol handlers.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1488 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-17 00:50:47 +00:00
ray
a06c6e26d5
It's an ObserverList! It's a ResultListener! It multiplexes results to many
...
ResultListeners and still has time to keep your code clean!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1487 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-14 03:18:17 +00:00
ray
47257c70d6
fillInStackTrace() is called when any Throwable is constructed.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1486 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-14 02:41:44 +00:00
mdb
f14d5d05c8
When logging stack traces, don't log the message separately and then have
...
the exception repeat it, just start logging the exception on the first log
line. It's compact and it allows lgrep to properly filter out whole stack
traces.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1485 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-13 21:24:28 +00:00
mdb
6a8f69cb12
A handy class for tracking repeated calls to methods that should not be
...
called repeatedly.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1484 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-13 21:14:48 +00:00
ray
6cf9708e1d
Allow sorting of java.util.ArrayList.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1483 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-12 02:38:22 +00:00
ray
512f99a5ef
Added an rsort() that uses the new Comparators.REVERSE_COMPARABLE
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1482 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-08-12 02:38:02 +00:00