Commit Graph

1547 Commits

Author SHA1 Message Date
andrzej 8ce30ccd5a Added some extra checks for lingering icons.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1599 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-25 02:21:12 +00:00
eric 017dac2108 Added method that gets the type of column.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1598 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-25 00:06:55 +00:00
mdb 1f500e7272 Allow extra headers to be provided.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1597 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-24 19:53:20 +00:00
mdb 35ea2896d9 Removed old sendmail based mail delivery which it seems no one was using
anymore anyhow. The preferred method is to use javax.mail and deliver to
the local SMTP server over a socket.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1596 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-24 19:15:45 +00:00
mdb 6fb74e6610 Allow an application to add things to the context before passing it on to
the logic.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1595 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-24 04:40:30 +00:00
mdb d465332202 Call it servlet 2.3 so as not to mislead.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1594 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-23 17:16:01 +00:00
mdb 26d7a7d02e Added truncate() and makeLinear() to StringTool and delineate() to
StringUtil.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1593 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-22 06:44:56 +00:00
ray 97cddd5493 Allow flexibility about which button is used for dragging.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1592 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-17 21:36:19 +00:00
eric 2d45af601f - Added changeColumn, which allows you to change a column's definition.
Can be used to change the name of a column as well (I.e., the definition
  is the same except you give it a new name.)
--This   line, and those below, will be ignored--

M    src/java/com/samskivert/jdbc/JDBCUtil.java


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1591 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-17 19:44:45 +00:00
mdb 14036f3060 Added isLaidOut().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1590 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-14 02:59:06 +00:00
mdb 6c4480c762 Don't put "null" into the text area.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1589 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-11 23:26:24 +00:00
ray 48be8ab71a Added fixedTextarea().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1588 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-11 18:58:06 +00:00
ray 066260a3cb Added some notes about which append to use when you have multiple consumers.
Moved redundant code into a method where it can be shared.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1587 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-09 22:40:43 +00:00
mdb 10430edeec Documentation improvements.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1586 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-08 18:56:51 +00:00
ray 7f5640db80 Altered so that document events are never fired while the document contains
an invalid value. This was made extra hairy by the fact that the
FilterBypass installed on a Document implements replace() by simply
calling remove() and then insert(). That's fine and dandy and saves lots of
code, I'm sure, but the each of them fires an event, resulting in two events
when a replace() happens.

I Created a special Document that suppresses 'remove' events from firing.
Not a problem, because I've also structured the filter such that removes()
end up being implemented as a replace() (due to the filtering and
processing that we do to ensure that valid, properly formatted integers
are always displayed) so the 'insert' event will take care of all our needs.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1585 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-03 00:54:57 +00:00
mdb 3efec4861b Only report when we actually do something.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1584 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-02-02 02:13:50 +00:00
ray e6220d7a87 Reworked so that the field *always* displays a valid value.
Previously invalid values were allowed because the user could be on their
way to typing valid value. The field installed itself as a FocusListener
and checked the value when focus was lost. This wasn't ideal, as a user
could enter what they thought was a valid value and then click a button and
the action of them clicking the button would instantly change the displayed
value with no chance for them to see that it changed from they had last
entered.

Now it does clever highlighting to let you edit the field while always
keeping the value between the minimum and the maximum.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1583 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-29 21:23:53 +00:00
mdb fbe4de5323 Added decompose to break a composed compound message back into individual
strings and restore any previously escaped instances of the separator
character.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1582 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-28 04:18:09 +00:00
mdb f07c9f1ac3 git-svn-id: https://samskivert.googlecode.com/svn/trunk@1581 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2005-01-25 22:33:55 +00:00
eric 811d8700de Added method to get the number of tasks on the queue.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1580 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-25 20:13:15 +00:00
mdb 2db3780ccf Allow arbitrary objects as values.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1579 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-25 05:41:47 +00:00
mdb 573ce7859b Added the ability to clear a unit profile.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1578 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-24 17:15:40 +00:00
mdb bd11a19d15 Track and report the time units spend waiting on the queue; track the
total elapsed time and report the average time in our profiles.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1577 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-24 17:13:07 +00:00
mdb d3108041ce Added increment().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1576 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-19 21:47:33 +00:00
eric 549ed08a6b Added support for exists(key) in the I18nTool.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1575 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-19 21:13:18 +00:00
mdb 7429fcf836 git-svn-id: https://samskivert.googlecode.com/svn/trunk@1574 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2005-01-14 18:03:30 +00:00
mdb e2b90d6f7b Added some other date formatting conveniences.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1573 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-14 18:00:58 +00:00
mdb 4f13eb8571 More documentation cleanup.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1572 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-14 16:05:19 +00:00
mdb 233fc6db0a Javadoc fixes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1571 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-14 15:54:33 +00:00
ray 8faf57a446 Small optimization: reduced access to our volatile variable _task.
Also, realized that there was potential for a runaway task if two threads
called schedule() and cancel() simultaneously and the planets are aligned.
Cancel any de-fanged task in case it is a runaway.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1570 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-13 02:12:39 +00:00
ray c8ef17c7cc Added clarifying method header documentation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1569 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-11 23:49:38 +00:00
ray c20d6f2108 Output UTF8 encoded strings.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1568 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-08 23:46:31 +00:00
ray a100b234ab Lazy-create the Runnable that expires us on the RunQueue.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1567 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-07 22:51:04 +00:00
eric a6eb8ef8d7 Moved Ray's safeJigger into JDBCUtil so it can be shared with the world.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1566 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-07 03:14:04 +00:00
mdb 78582d3cbc samskivert is a standalone third party library. It doesn't magically
integrate with our build environment any more than the Apache libraries
do.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1565 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-06 01:07:46 +00:00
ray a91f9d008c Don't choke if the specified password is null (because we're automatically
logging someone in).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1564 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-05 23:58:23 +00:00
ray 687afd6f59 Fixed NPE with creating new accounts.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1563 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-05 23:27:43 +00:00
ray 877d063b5b Allow us to set up a java.libraries location like the threerings project does.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1562 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-05 22:54:16 +00:00
ray b21c25a09f Removed debugging line.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1561 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-03 19:41:04 +00:00
ray cfb86a99e6 Create a special Runnable for posting to the RunQueue, rather than checking
to see if we're on the RunQueue twice each firing.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1560 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-01-03 19:40:19 +00:00
ray 3aa4be39a3 TimerTask is already Runnable.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1559 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-23 21:16:26 +00:00
ray 3bdf982c8a We don't need to synchronize if we just catch the one non-critical NPE that
might happen once in a blue moon if we don't.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1558 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-23 18:57:01 +00:00
ray 51e29bf09e Edited comments.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1557 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-23 01:33:51 +00:00
ray c8cdfbeab1 I read some of Chapter 17, but started to go cross-eyed. I did get to
the part about volatile variables, and that led me to this simpler
implementation.

Interval is no longer Runnable (good because it won't tempt people to post
the interval themselves), and I got rid of the less-than-sweet _fired
and _expired variables. The trade off? schedule() and cancel() are
synchronized, not a big deal, and the task needs to check if it is
being run on the dispatch thread, which shouldn't be a big deal.
The major plus is that the code is easier to understand.
The same amount of objects are created, and we don't do anything silly
like create a new object every time the interval fires.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1556 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 23:56:54 +00:00
ray ccd1e2a278 Added a note about one known weakness that arises from the wonderful complexity of asynchronous execution.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1555 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 19:53:39 +00:00
ray 77f9c0fa11 The great Interval revamp. Cleaner, better, easier to use.
There may be chapter 17 issues, but I'm fairly certain that if there are we can iron those out without changing the API.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1554 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 19:18:23 +00:00
ray 15bff32e71 Changed RunQueue to be called BasicRunQueue.
RunQueue is now an interface that is very simple- it serially runs Runnables.
Removed Invoker.ResultReceiver, the invoker now takes a RunQueue.
The method to post a Runnable to RunQueue is called postRunnable(), rather
than the legacy postUnit(). postUnit() is the method name of the Invoker
to post Invoker.Unit objects, and I just figured it was better to keep those
distinct, since an Invoker.Unit is also a Runnable, it could be very easy
to post an Invoker.Unit to the wrong thing if not careful.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1553 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 19:17:06 +00:00
ray f9b876998d Bye bye, useless redundant code.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1552 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-22 00:01:19 +00:00
mdb a495745c67 Yay! Yet another change to the password system. This time we're switching
entirely from old-and-busted crypt() to the new hotness MD5. This allows
us to interoperate cleanly with our soon-to-be new forum system which MD5
encodes a user's password before it ever leaves the web browser. Those
security conscious little devils.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1551 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-18 02:33:10 +00:00
mdb 37858624b8 Further magic to support loading Velocity templates from the file system
during webapp development.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1550 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-12-18 01:01:44 +00:00