Commit Graph

770 Commits

Author SHA1 Message Date
shaper b095417bd9 Need to pass the internal session along for update(Object).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@778 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-06-17 21:30:10 +00:00
shaper 5451957b54 Renamed getToolTipPosition() to the more generally-useful fitRectInRect()
and moved to SwingUtil.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@777 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-06-14 07:55:11 +00:00
mdb f3c7bf71a0 Use TermUtil for vt100 escape codes and also to obtain the size of our
terminal window (if possible) which will be used to decide where to wrap
our log output.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@776 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-06-06 20:53:30 +00:00
mdb 6ae292ba71 Moved hacky terminal fiddling code into a separate class.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@775 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-06-06 20:52:36 +00:00
ray 2db5f69858 Forgot import
git-svn-id: https://samskivert.googlecode.com/svn/trunk@774 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-06-05 23:15:26 +00:00
ray f48554dde0 added setDocumentValidator and the DocumentValidator interface which
can be used to restrict text in a text field or other document.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@773 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-06-05 22:54:53 +00:00
mdb 27a5717048 Not to crash if we're passed a null message.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@772 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-31 22:19:07 +00:00
mdb 970049d402 Need to do the right thing for first log line wrap width as well.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@771 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-31 21:19:58 +00:00
mdb b031977805 Fixed bugs pointed out by Mr. Greenwell: milliseconds field need only be 3
wide, use GAP rather than prefix that may contain formatting codes to
obtain wrapped line width.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@770 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-31 21:15:27 +00:00
mdb cf76f2dce5 Only use vt100 escape codes if they're enabled via -Dlog_vt100=true.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@769 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-31 21:06:26 +00:00
mdb 751b963199 Fancied up the default log provider. It now wraps log lines at 132 columns
and uses VT100 escape codes to highlight module names, warning log
messages and debug log messages.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@768 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-31 20:45:26 +00:00
mdb c583d4a81d Allow the setting of module-specific log levels via system properties.
This is done like so:

% java -Dlog_level:module=debug ...


git-svn-id: https://samskivert.googlecode.com/svn/trunk@767 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-31 20:44:41 +00:00
mdb 1c409ee735 Added time stamp and log level info to default log output.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@766 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-31 18:47:05 +00:00
mdb 8279009ded Added support for long integer preferences.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@765 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-31 17:08:40 +00:00
ray 1d41ce55a5 replaced unused long[] version of shuffle with an Object[] version.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@764 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-29 18:00:04 +00:00
shaper 51eb070a53 Fixed shuffling to properly account for the offset when shuffling with a
non-zero offset.  Added a few rudimentary tests.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@763 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-29 00:08:17 +00:00
shaper 9c33c3da0f Added byte[] and long[] variants of shuffle().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@762 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-28 22:32:14 +00:00
mdb eb88c5a4ef Made interval manager use a synchronized int map in which to store its
interval wrappers; fixed up javadocs.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@761 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-24 21:32:29 +00:00
mdb c172c41a15 Fixed potential failure to freak out if a synchronized int map was created
with a null source map.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@760 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-24 21:31:56 +00:00
mdb ebebcbf530 Added savedoc target for saving rebuild javadocs.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@759 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-24 20:33:10 +00:00
ray 7bfa6234ef updated documentation so that we don't get anyone excited about
nonexistant features


git-svn-id: https://samskivert.googlecode.com/svn/trunk@758 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-23 23:43:17 +00:00
ray 404ac11173 Ripped out the guts of IntervalManager and replaced them with Java 1.4's
java.util.Timer. We might as well use the standard stuff, and why not:
it's got a snazzy priority heap for scheduling.
However, we still like the flexibility of IntervalManager's static methods
and the Interval interface (Timer's helper, TimerTask, is a class. Boo.).
Note: I ripped out so many guts that we no longer have the ability to
use a pool of helper threads for expiring Intervals. We never used it
anyway. If we desire it in the future, it'd be easy enough to put back in.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@757 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-23 23:37:50 +00:00
ray fd6775b3d9 Added tests to test the growing and shrinking the hashtable.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@756 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-23 23:29:38 +00:00
ray ea1c96d2d7 Grow and shrink the hash so that our performance stays near O(1).
(Altered Serializable compatability).
Reformatted tabs into 8 spaces.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@755 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-23 23:24:08 +00:00
mdb 18cf7f6763 Numerous changes to bring things back into sync with the modern Narya
state of affairs.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@754 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-21 04:45:10 +00:00
mdb dc4ef96d4e Documentation edits.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@753 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-20 20:41:47 +00:00
shaper e3262f83fb Initial version of Swing component that displays a Label. Doesn't yet
properly resize itself to suit the height of the label text post-layout.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@752 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-20 18:07:36 +00:00
shaper ac0df9d4f5 Added getAlignment() and fixed javadoc typo. Added copyright header.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@751 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-20 18:07:03 +00:00
shaper d9b4a819c0 Added copyright header.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@750 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-20 18:06:07 +00:00
mdb 1939c9050e Made addAll() more efficient if it is called with another ArrayIntSet as
its argument.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@749 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 22:42:15 +00:00
mdb d88837ba3e Beefed up unit test.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@748 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 22:15:19 +00:00
mdb 0f91263c38 Switched to more efficient Ray-go-rithm for computing in-place
intersection.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@747 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 22:15:08 +00:00
mdb ca062718c6 Added ability to remove observers as a part of application.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@746 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 22:13:28 +00:00
mdb 92abb3dbc6 We love the unit tests bay-bee!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@745 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 22:00:07 +00:00
mdb efa2f3c227 Created a helper class for implementing the Observer pattern.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@744 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 21:45:49 +00:00
mdb 6cf08df992 Implemented clone.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@743 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 20:53:54 +00:00
mdb a9cca659a4 Implemented retainAll().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@742 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 20:50:31 +00:00
mdb a88624fc81 Log our errors more nicely if rollback fails.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@741 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 03:55:27 +00:00
mdb 3ef788632f Modified the default off-axis policy to CONSTRAIN, a new policy type that
causes widgets that are wider than the container in the off-axis to be
squeezed to fit but widgets that are smaller to be left alone. It is not a
valid on-axis policy.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@740 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 02:02:38 +00:00
mdb e2976aa0b4 Don't allow the empty string to be set in a label because the Java stuff
freaks out when asked to do things with the empty string. Instead fake it
and use a single space.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@739 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-16 00:01:08 +00:00
mdb e79e8c258f TextLayout.getBounds() returns for its bounds a rectangle that "contains
all of the pixels the TextLayout can draw." This turns out to mean that
x+width and y+height are actually rendered upon, unlike every other
fucking AWT thing that returns its bounds where x+width-1 is occupied but
not x+width. It's the fucking drawRect()/fillRect() fiasco all over
again. Anyway, we up our bounds by a pixel so that we behave like every
other normal Euclid fearing user interface construct.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@738 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-15 03:45:38 +00:00
shaper a7a2e2c229 Added centerComponent().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@737 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-13 17:40:15 +00:00
mdb d9df82fd3f Let the caller know if we refused to update for lack of change.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@736 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-11 20:32:46 +00:00
mdb 12b519a5b8 Don't attempt to update a user record if none of their fields were
modified.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@735 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-11 20:31:59 +00:00
mdb 6839412758 Added method to determine if any field has been modified.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@734 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-11 20:29:27 +00:00
mdb 4dc46a6340 We're back to having the UserManager create the UserRepository but now it
does so in a way that can be overridden by derived classes.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@733 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-11 19:20:15 +00:00
mdb c4d313b2d3 Added support for joining data from multiple tables into a single object
(previously there was support for using indexes in other tables but not
for obtaining data from them).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@732 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-11 19:19:47 +00:00
mdb d63dfe8ecf Added rehostLocation() though I ended up deciding not to use it.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@731 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-09 05:01:09 +00:00
mdb 5c90869971 Complain if we're not able to load the velocity properties.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@730 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-08 23:06:06 +00:00
shaper 0b6a52388d Set the user authentication cookie age to the default (end of browser
session) for non-persistent logins.  Expanded imports.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@729 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-05-08 00:25:54 +00:00