Commit Graph

1396 Commits

Author SHA1 Message Date
ray af82a7e181 'enum' is a keyword in jdk 1.5
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1447 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-06-12 23:17:02 +00:00
ray 46d157a3ae Noticed a copy-paste error that resulted in a small inefficiency, then
noticed that there were tabs in here... fixed the "bug" and reformatted the
file with spaces.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1446 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-06-12 01:00:51 +00:00
mdb c1e578c274 Located and added getDaysBetween().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1445 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-06-09 09:40:04 +00:00
ray 4a203b0720 Format our values with a NumberFormat (gives us commas).
Don't transform the text when focus is lost unless it needs to change.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1444 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-06-08 21:15:18 +00:00
mdb c4c240020d Fixed a bug with sizeToContents() where subsequent columns were not
allowed to be thinner than previous columns. No wonder it never worked
right. Dooh!


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1443 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-06-08 01:25:14 +00:00
ray 7df6f7787e Added getFields(clazz) and getObjectEquivalentOf(clazz).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1442 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-06-03 15:55:52 +00:00
mdb 409f4e8df8 Allow some of our configuration info to come from more convenient sources.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1441 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-06-01 08:34:24 +00:00
eric 1d62c33ee0 Reordered two functions.
Added two metafunctions to create table columns and table indexes.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1440 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-28 01:54:47 +00:00
ray d7645dd586 Cope with having our text set to "".
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1439 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-27 22:57:47 +00:00
eric 7cb5081692 Add the metadata acquisition of index info.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1438 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-27 02:04:34 +00:00
eric e724e61aee Cleaned up the comment about non unique macs, fixed up the checking to
avoid the basically duplicate test for the - and : versions.  Added
another non-unique mac.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1437 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-26 21:15:36 +00:00
ray 147cea484c A component that can be added to a hierarchy that won't add its sub-components
until it is visible.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1435 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-21 20:57:12 +00:00
ray 507929ecc9 Modified the way the controlled panel is monitored. It should work
the same as before, but will count as being displayed even if in a non-showing
tab.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1434 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-21 20:53:08 +00:00
ray 827cf9c2a5 Cleaned up... forgot to check this in..
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1433 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-18 19:08:45 +00:00
mdb 4faf6ab519 Added some handy methods for introspecting on databases.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1432 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-17 15:58:45 +00:00
ray 92e145286e A table cell renderer that formats integers.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1430 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-13 21:58:07 +00:00
mdb 9c272fbe11 Strip all the crap from the MySQL JDBC transient error messages.
Incidentally, calling StringUtil.split(...)[0] is indeed safe.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1429 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-11 05:43:15 +00:00
mdb 8e06f56306 Enhanced logging when we fail to resolve a site resource bundle.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1428 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-11 03:14:03 +00:00
ray 02b1326e4a added getMinIndexes
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1426 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-05-06 22:01:25 +00:00
ray 129b2604e3 git-svn-id: https://samskivert.googlecode.com/svn/trunk@1423 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2004-05-01 01:40:34 +00:00
mdb 3ef365ba4c Cope gracefully with nulls.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1422 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-04-30 02:38:10 +00:00
mdb 91c9fcba06 git-svn-id: https://samskivert.googlecode.com/svn/trunk@1421 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2004-04-30 01:50:16 +00:00
mdb 21b4f70b61 Two massive steps toward making Java servlets do the right thing with
non-English languages. UTF-8 is my friend.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1418 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-04-26 08:47:59 +00:00
mdb c091f63098 Welcome to hell. Yes, after hours of wrangling with MySQL and every
version of their JDBC drivers under the sun and poring over hundreds of
web pages, it appears that this is the "solution" to storing multibyte
characters in the database.

This means that *every single string* that might contain multibyte
characters has to be jiggered before being entered in the database and
unjiggered upon removal. And if we accidentally forget, things will appear
to be fine until we deploy to one of our multibyte foreign partners at
which point they'll see gibberish. Yay!

Too bad the Chinese didn't invent programming, then all this shit would
just work.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1417 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-04-26 02:43:35 +00:00
ray f3af4018c3 A silly little class to draw icons with an alpha level. I was going to make
this an anonymous inner class for something else, but I figured it could be
useful somewhere else in the future...


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1416 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-04-23 16:46:37 +00:00
ray 887a8d7512 git-svn-id: https://samskivert.googlecode.com/svn/trunk@1415 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2004-03-15 18:13:15 +00:00
mdb 7ca51ded20 Added makeCompactGrid().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1414 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-03-13 16:07:53 +00:00
ray 72ec095af1 No reason to call String.valueOf if we're already testing for null,
because null protection is all that valueOf gives us.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1413 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-03-06 20:05:41 +00:00
mdb 5cd72faa35 Allow arbitrary object arrays to be passed to join() and its variants.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1412 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-03-06 04:37:44 +00:00
ray f810581fa4 Comment changes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1411 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-03-04 18:41:39 +00:00
eric 4c5150aac5 Added function unhexlate which takes a hex string and returns the byte
array that was used to make it.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1410 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-03-04 02:40:23 +00:00
mdb 7cd5e55a82 Allow translation arguments to be objects which are then converted into
strings.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1409 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-03-03 11:44:09 +00:00
eric 0ce0747432 Added the slightly borked nvidia with built in LAN.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1408 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 20:19:06 +00:00
mdb 93910b134a Some random i18n related modifications; fixed use of deprecated method.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1407 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 13:22:25 +00:00
mdb 474a8bc4fd Yessir, more import pruning.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1406 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 13:21:41 +00:00
mdb 6a0867f9aa More import pruning.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1405 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 13:21:08 +00:00
mdb 527c8815c1 Removed vestigial imports (and even spelled vestigial correctly for what
is perhaps the first time ever).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1404 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 13:20:44 +00:00
mdb 5a0622df74 Some random utility routines that have been lying around unchecked in for
the amazing many months.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1403 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 13:19:49 +00:00
mdb 82b85e0519 Avoid choking on null strings.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1402 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 13:18:39 +00:00
mdb fdf00b9f7e Removed vestigal imports.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1401 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 13:17:41 +00:00
mdb 8ea25c31c1 Removed vestigal imports, fixed static reference.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1400 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 13:17:13 +00:00
mdb 37c4d465d2 Canned the long unsupported webmacro stuff.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1399 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-25 13:11:47 +00:00
mdb c176b45bab Added shuffle support. When this whole business is rewritten to use
distributed objects, all this bad hackery will blissfully go away.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1398 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-24 12:40:24 +00:00
eric 2ab41e9698 Ok, well this never seemed like it was a problem as everything seems to
return upper case, but lets just force it to uppercase anyway in case the
wacky tools we are using change in the future.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1395 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-09 19:59:47 +00:00
eric 0d3d3375d3 Fixed a long line and added another bogus mac address.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1394 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-02-09 18:36:48 +00:00
mdb 97085dec45 This needs to match zero or more characters because length checking is
done elsewhere and if we use this regular expression to validate text
input fields, it will refuse to allow the user to delete the last
character.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1393 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-01-31 13:03:39 +00:00
mdb 52cdc61d55 Check maximum length as well, make the constraints public so that we can
eyeball them from elsewhere.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1392 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-01-31 06:41:47 +00:00
mdb 9557daee21 While we're adding handy classes, let's add a username wrapper as well
that enforces our name requirements.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1391 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-01-31 06:38:05 +00:00
mdb d16b0c0a3d Make it possible to create an account with an already encrypted password.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1390 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-01-31 06:24:01 +00:00
mdb e704a51391 Added versions of checkedUpdate() that simply issue a warning rather than
throwing an exception so that we can report funny business without
sticking a fork in things when it's not necessary.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1389 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2004-01-29 01:10:46 +00:00