|
From: <fb...@us...> - 2003-07-14 21:02:33
|
Update of /cvsroot/jgb/jgb/src/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv31851/src/examples
Modified Files:
webbrowser.xml
Log Message:
* src/java/tests/jgb/handlers/swing/TestConstraintsTagHandler.java:
Started implementing new constraints-handling code. Started making
constraints be saved in a Map instead of last defined. The map is
associative with the current object. So constraints are attached to
their parent objects, but are used for children of said parent.
* src/java/core/jgb/handlers/swing/ConstraintsTagHandler.java:
Implemented tests.
* src/java/core/jgb/handlers/swing/AbstractControlTagHandler.java,
src/java/tests/jgb/handlers/swing/TestAbstractControlTagHandler.java,
src/java/tests/jgb/handlers/swing/TestControlTagHandler.java,
src/java/tests/jgb/handlers/swing/TestGlueTagHandler.java,
src/java/tests/jgb/handlers/swing/TestStrutTagHandler.java:
Had to modify tests to take into account new Constraints object
and way of doing things.
* src/examples/webbrowser.xml:
Works, but not exactly right. Problem with constraints that are not
properly associated. All controls are so small as to be useless...
Added a "Dump" menu item to use XMLEncoder to dump the frame.
* src/java/examples/jgb/examples/WebBrowserEventManager.java:
Modified to implement the dump() method required by the register
call of the dump menu item.
* src/java/core/jgb/builder/utils/Constraints.java:
Created implementation that is a data holder for two pieces of
information: value and class. No tests for such a simple class.
Index: webbrowser.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/examples/webbrowser.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** webbrowser.xml 14 Jul 2003 18:56:45 -0000 1.6
--- webbrowser.xml 14 Jul 2003 21:02:30 -0000 1.7
***************
*** 41,44 ****
--- 41,49 ----
<menuBar id="menu">
<menu id="menu.file" text="File" mnemonic="f">
+ <item id="menu.file.dump" text="Dump" mnemonic="d">
+ <register class="java.awt.event.ActionListener"
+ event="actionPerformed" manager="eventManager"
+ method="dump"/>
+ </item>
<item id="menu.file.quit" text="Quit" accelerator="Ctrl+Q"
mnemonic="q">
***************
*** 89,93 ****
</constraints>
<scrollable>
- <constraints reset="true"/>
<control id="view" class="javax.swing.JEditorPane">
<property name="editable">
--- 94,97 ----
|