Michael Bayne
c0a244cb8d
Hold onto your hats kids, it's the biggest little refactor this side of the
...
Pecos. I'll sort out the per-project niggling bits in just a moment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4209 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-23 18:12:45 +00:00
Ray Greenwell
79c6427c21
StringBuffer -> StringBuilder.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4191 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-13 22:42:20 +00:00
Ray Greenwell
26c928fc45
Use the valueOf factory methods pretty much everywhere.
...
These are the preferred way to get instances of Boolean, Byte,
Short, Character, Integer, Long, Float, and Double object.
It's always made sense for Boolean objects, and with 1.5 these factory
methods were blessed as the proper way to get instances unless one
absolutely needed a distinct object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4145 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-24 01:24:24 +00:00
Michael Bayne
9e02d7a1ad
JORA refactor.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4043 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 21:27:31 +00:00
Michael Bayne
5a2583470c
Brought code in line with changes to Samskivert. I have not started to
...
genericize Narya data structures, nor make the existing code type safe. That's
going to be an extremely large project.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4007 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 08:59:30 +00:00
Michael Bayne
d94866f3cf
Pass empty postamble.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3964 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-19 19:46:36 +00:00
Michael Bayne
2841e90659
Load our initial configuration data synchronously. See comments for
...
explanation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3925 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-08 22:16:01 +00:00
Michael Bayne
679133091b
Use shorter columns so that we don't blow past the 1000 byte key limit on
...
databases configured to use utf8 encoding for their strings.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3899 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-01 22:08:40 +00:00
Michael Bayne
6d9d71256f
Actually, the distributed object event name is the normal DObject field name
...
(inStudlyFormat), it's just the constant that we use to reference that field in
code that's upper case. So we need to convert those as well. And I moved that
code into a documented method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3884 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-23 19:01:15 +00:00
Michael Bayne
ff098a9394
Dooh, unStudlyName() returns an uppercase string (in spite of what it said in
...
its method documentation). And I was doing the wrong thing with event names
which were already unstudlied (but are also uppercase).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3883 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-23 18:52:59 +00:00
Michael Bayne
105f0c5470
Whoops, needed to finish the re-refactor.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3873 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-20 23:55:32 +00:00
Michael Bayne
971b0bd079
Boolean.parseBoolean() was apparently introduced in 1.5. Yay for orthogonality.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3872 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-20 23:43:57 +00:00
Michael Bayne
a4fff6494f
Define the schema in code, fixed up some bugs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3871 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-20 22:41:59 +00:00
Michael Bayne
9d9bebd092
Created a database backed implementation of the runtime config services.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3870 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-20 21:59:54 +00:00
Michael Bayne
b33ae477ac
Started refactorying the config object registry so that we can make a
...
database-backed implementation to replace the Java preferences backed version.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3869 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-20 19:39:38 +00:00
Ray Greenwell
852620bea4
Regenerated marshallers with new response-tracking code.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3793 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 02:12:57 +00:00
Michael Bayne
596d2a4708
blank() -> isBlank().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3749 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 04:00:16 +00:00
Ray Greenwell
5fe4dc5a37
Allow editing of a field with a pulldown (combobox).
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3707 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-21 07:37:55 +00:00
Ray Greenwell
51acbb09f4
Only set the value if it's changed.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3706 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-21 07:36:09 +00:00
Elizabeth Fong
732a6512c5
refactored method for client to subscribe to runtime configs from yoweb into narya, since it uses no yohoho-specific code
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3618 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-23 01:33:43 +00:00
Ray Greenwell
0308123c0b
Fixed alignment of boolean configs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3585 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-04 01:04:58 +00:00
Ray Greenwell
27e9719c8b
Include a spacer to the right of the checkbox so that errant clicks on
...
that side don't cause the box to toggle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3477 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-13 17:07:53 +00:00
Michael Bayne
c0430e3131
Revamped the config object editor system to make it easier to create
...
custom editors for simple data types. Added a checkbox editor for boolean
fields. Also switched the layout to the side as one is likely to
accumulate many objects and allowed an object to be specified as the
default.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3452 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-01 00:03:58 +00:00
Michael Bayne
44f2a29f4f
Regenerated with updated copyright information.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3365 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-22 18:56:52 +00:00
Michael Bayne
afabea71ad
Big fat Bernie javadoc cleanup.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3310 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-24 23:08:21 +00:00
Michael Bayne
55a0ab91f7
Regenerated our DObject derivations in the new world order.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3288 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-28 03:51:29 +00:00
Michael Bayne
9386fabeee
Use the new DObject.changeAttribute() instead of hand-constructing an
...
AttributeChangedEvent which is no longer allowed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3286 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-28 03:49:23 +00:00
Ray Greenwell
e7ef1e3e61
Support long[] values.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3265 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-09 01:34:50 +00:00
Michael Bayne
a04e23e025
Regenerated our marshaller and dispatcher classes with the new Java-based
...
generator. It handles inner classes slightly differently and prepends a
project-specific header to the generated classes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3239 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-25 04:47:40 +00:00
Michael Bayne
8451c39797
Added missing copyright headers to the .dobj files.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3218 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-17 23:16:56 +00:00
Ray Greenwell
e7fe6c017d
Some method names in ObjectEditorTable changed names.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3204 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-06 01:59:24 +00:00
Ray Greenwell
998e38c7c2
Fixed typo in comment.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3199 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-04 00:38:12 +00:00
Michael Bayne
bb5fdbb8c0
We need to refetch our reference to the DSet if the whole thing changes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3172 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-26 21:05:27 +00:00
Michael Bayne
aa3b2be4b6
Handle DSet fields being updated wholesale.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3127 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-29 04:04:20 +00:00
Michael Bayne
1f8c4578b7
LGPLed the library. Hello world.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:12:55 +00:00
Michael Bayne
19abac5be1
Handle shorts. Maybe later we'll add support for pants.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3052 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-09 03:52:04 +00:00
Ray Greenwell
136da4e780
Gracefully deal with DSet modifications, rather than brutishly recreating
...
the entire table.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3026 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-15 17:58:38 +00:00
Ray Greenwell
1e5ff6dd92
Broke out textual parsing into another method to ease subclassing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3025 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-15 03:25:19 +00:00
Ray Greenwell
87bbff083f
Guts exported to ObjectEditorTable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3024 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-14 01:09:23 +00:00
Ray Greenwell
d25c7adba6
added getSelectedEntry.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3020 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-03 19:11:18 +00:00
Ray Greenwell
c8f519fc85
Rolled SettedObject right into DObject, because it's just too useful.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3019 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-03 18:15:03 +00:00
Ray Greenwell
2d90dd40a1
A special field editor that may be used to display or edit DSets.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3018 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-03 17:15:38 +00:00
Eric Lundberg
c50dbe8b72
Allow the field editor to edit arrays of floats. The sword runtime config
...
currently uses them but it wasn't actually possible to edit them. (Not
that I'm messing with the values or the sword code, I just noticed it was
seemingly borked.)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2989 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-05 23:44:28 +00:00
Michael Bayne
8a54e85914
Switched to a safe subscriber.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2983 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 14:55:50 +00:00
Michael Bayne
1a4bdbc5c2
Distributed objects go in the data package, not client. While I was in
...
here, I went ahead and cleaned up the custom field editor handling per
Ray's earlier suggestion.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2981 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 12:00:39 +00:00
Eric Lundberg
92b716d790
seems to work like a champ.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2979 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-05 02:40:18 +00:00
Eric Lundberg
20541d11dc
Added code to support serializing and deserializing of Streamable objects
...
in the prefs. Thus we can now have DSets of arbitrary data types in our
run time config objects, with swanky custom UI no less.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2978 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-04 02:50:30 +00:00
Eric Lundberg
4e7ea75efa
Changed to use the custom ui if it is available from the configObject.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2977 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-04 02:43:48 +00:00
Eric Lundberg
97207fca74
Initial checkin of the new base config object for run time configs.
...
Allows derived config objects to provide custom editing UI.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2976 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-04 02:42:31 +00:00
Michael Bayne
9ccff79f52
Regenerated.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2973 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:51:51 +00:00