You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(103) |
Aug
(2) |
Sep
(186) |
Oct
(218) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
|
Feb
|
Mar
(1) |
Apr
(229) |
May
(1) |
Jun
(422) |
Jul
(25) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(5) |
|
From: <fb...@us...> - 2003-12-22 22:51:29
|
Update of /cvsroot/jgb/jgb/src/java/core/jgb/handlers/swing
In directory sc8-pr-cvs1:/tmp/cvs-serv30866/src/java/core/jgb/handlers/swing
Modified Files:
ItemTagHandler.java
Log Message:
* src/java/tests/jgb/handlers/swing/TestItemTagHandler.java:
Added a new test that verifies that it is possible to nest item
elements.
* src/java/core/jgb/handlers/swing/ItemTagHandler.java:
Implemented tests.
Index: ItemTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/core/jgb/handlers/swing/ItemTagHandler.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ItemTagHandler.java 27 Jun 2003 16:45:49 -0000 1.10
--- ItemTagHandler.java 22 Dec 2003 22:51:25 -0000 1.11
***************
*** 23,26 ****
--- 23,27 ----
import org.xml.sax.SAXException;
+ import java.awt.Container;
import javax.swing.*;
import java.util.Map;
***************
*** 94,99 ****
}
! JMenu menu = (JMenu)getCurrentControl();
! menu.add(item);
pushCurrentObject((String)atts.get(ATTR_ID), item);
--- 95,100 ----
}
! Container parent = (Container)getCurrentControl();
! parent.add(item);
pushCurrentObject((String)atts.get(ATTR_ID), item);
|
|
From: <fb...@us...> - 2003-12-22 22:51:28
|
Update of /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing
In directory sc8-pr-cvs1:/tmp/cvs-serv30866/src/java/tests/jgb/handlers/swing
Modified Files:
TestItemTagHandler.java
Log Message:
* src/java/tests/jgb/handlers/swing/TestItemTagHandler.java:
Added a new test that verifies that it is possible to nest item
elements.
* src/java/core/jgb/handlers/swing/ItemTagHandler.java:
Implemented tests.
Index: TestItemTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing/TestItemTagHandler.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** TestItemTagHandler.java 27 Jun 2003 16:45:50 -0000 1.8
--- TestItemTagHandler.java 22 Dec 2003 22:51:25 -0000 1.9
***************
*** 168,171 ****
--- 168,180 ----
}
+ public void testAllowsNestedItemElements() throws Exception {
+ stackManager.pushCurrentObject(new JMenuItem());
+ int oldStackSize = stackManager.size();
+
+ handler.startElement("item", context, atts);
+
+ assertEquals(oldStackSize + 1, stackManager.size());
+ }
+
protected TagHandler createHandler() {
return new ItemTagHandler();
|
|
From: <fb...@us...> - 2003-12-22 21:45:42
|
Update of /cvsroot/jgb/jgb/src/dtd
In directory sc8-pr-cvs1:/tmp/cvs-serv18135/src/dtd
Modified Files:
dtd.xml
Log Message:
* src/dtd/dtd.xml:
Removed the reference to the mdash entity, which is undefined in XML.
Index: dtd.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/dtd/dtd.xml,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** dtd.xml 22 Dec 2003 21:38:25 -0000 1.29
--- dtd.xml 22 Dec 2003 21:45:38 -0000 1.30
***************
*** 2118,2122 ****
<<tag refelement="item"/> <attr refattr="item.text"/>="Status Bar" <attr refattr="item.type"/>="check" <attr refattr="item.selected"/>="true"/>
<<tag refelement="separator"/>/>
! <!-- Add a nested menu item to the menu — allowing selection of the sort order -->
<<tag refelement="item"/> <attr refattr="item.text"/>="Sort By" <attr refattr="item.mnemonic"/>="s">
<<tag refelement="item"/> <attr refattr="item.text"/>="Name" <attr refattr="item.mnemonic"/>="n" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F5" <attr refattr="item.selected"/>="true"/>
--- 2118,2122 ----
<<tag refelement="item"/> <attr refattr="item.text"/>="Status Bar" <attr refattr="item.type"/>="check" <attr refattr="item.selected"/>="true"/>
<<tag refelement="separator"/>/>
! <!-- Add a nested menu item to the menu, allowing selection of the sort order -->
<<tag refelement="item"/> <attr refattr="item.text"/>="Sort By" <attr refattr="item.mnemonic"/>="s">
<<tag refelement="item"/> <attr refattr="item.text"/>="Name" <attr refattr="item.mnemonic"/>="n" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F5" <attr refattr="item.selected"/>="true"/>
|
|
From: <fb...@us...> - 2003-12-22 21:42:10
|
Update of /cvsroot/jgb/jgb/src/xdocs/template In directory sc8-pr-cvs1:/tmp/cvs-serv17423 Modified Files: referer-tracking.php Log Message: * src/xdocs/template/referer-tracking.php: Changed the insert delayed statement into a plain insert statement. This is to correct a bug with MySQL. This is in response to an E-Mail from SourceForge.net that asked me to change it. Index: referer-tracking.php =================================================================== RCS file: /cvsroot/jgb/jgb/src/xdocs/template/referer-tracking.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** referer-tracking.php 17 Jun 2003 18:46:29 -0000 1.4 --- referer-tracking.php 22 Dec 2003 21:42:07 -0000 1.5 *************** *** 21,25 **** /* Performing SQL query */ ! $query = "insert delayed into referers(target, referer, ip) values " . "('" . $request_uri . "', '" . $referer . "', '" . $ip . "')"; $result = @mysql_query($query) --- 21,25 ---- /* Performing SQL query */ ! $query = "insert into referers(target, referer, ip) values " . "('" . $request_uri . "', '" . $referer . "', '" . $ip . "')"; $result = @mysql_query($query) |
|
From: <fb...@us...> - 2003-12-22 21:38:28
|
Update of /cvsroot/jgb/jgb/src/dtd
In directory sc8-pr-cvs1:/tmp/cvs-serv16960
Modified Files:
dtd.xml
Log Message:
* src/dtd/dtd.xml:
Updated the item element's example to better reflect sample usage.
Index: dtd.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/dtd/dtd.xml,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** dtd.xml 14 Jul 2003 18:55:10 -0000 1.28
--- dtd.xml 22 Dec 2003 21:38:25 -0000 1.29
***************
*** 2118,2126 ****
<<tag refelement="item"/> <attr refattr="item.text"/>="Status Bar" <attr refattr="item.type"/>="check" <attr refattr="item.selected"/>="true"/>
<<tag refelement="separator"/>/>
<<tag refelement="item"/> <attr refattr="item.text"/>="Sort By" <attr refattr="item.mnemonic"/>="s">
! <<tag refelement="item"/> <attr refattr="item.text"/>="Name" <attr refattr="item.mnemonic"/>="n" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F5" <attr refattr="item.selected"/>="true"/>
! <<tag refelement="item"/> <attr refattr="item.text"/>="Size" <attr refattr="item.mnemonic"/>="s" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F6"/>
! <<tag refelement="item"/> <attr refattr="item.text"/>="Date" <attr refattr="item.mnemonic"/>="d" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F7"/>
! <<tag refelement="item"/> <attr refattr="item.text"/>="Author" <attr refattr="item.mnemonic"/>="a" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F8"/>
</item>
</menu>
--- 2118,2127 ----
<<tag refelement="item"/> <attr refattr="item.text"/>="Status Bar" <attr refattr="item.type"/>="check" <attr refattr="item.selected"/>="true"/>
<<tag refelement="separator"/>/>
+ <!-- Add a nested menu item to the menu — allowing selection of the sort order -->
<<tag refelement="item"/> <attr refattr="item.text"/>="Sort By" <attr refattr="item.mnemonic"/>="s">
! <<tag refelement="item"/> <attr refattr="item.text"/>="Name" <attr refattr="item.mnemonic"/>="n" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F5" <attr refattr="item.selected"/>="true"/>
! <<tag refelement="item"/> <attr refattr="item.text"/>="Size" <attr refattr="item.mnemonic"/>="s" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F6"/>
! <<tag refelement="item"/> <attr refattr="item.text"/>="Date" <attr refattr="item.mnemonic"/>="d" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F7"/>
! <<tag refelement="item"/> <attr refattr="item.text"/>="Author" <attr refattr="item.mnemonic"/>="a" <attr refattr="item.group"/>="sortBy" <attr refattr="item.type"/>="radio" <attr refattr="item.accelerator"/>="Ctrl+Shift+F8"/>
</item>
</menu>
|
|
From: <fb...@us...> - 2003-07-18 01:42:33
|
Update of /cvsroot/jgb/jgb
In directory sc8-pr-cvs1:/tmp/cvs-serv1853
Modified Files:
build.xml
Log Message:
* build.xml:
Added a copy task to dist so that the license information is available
at the root of the distribution folder.
Index: build.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/build.xml,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -d -r1.115 -r1.116
*** build.xml 14 Jul 2003 19:17:15 -0000 1.115
--- build.xml 18 Jul 2003 01:42:30 -0000 1.116
***************
*** 190,193 ****
--- 190,197 ----
<target name="dist" depends="init,jar" description="Builds the distribution files">
+ <!-- Copy the license information to the root of the distribution -->
+ <copy file="src/xdocs/html/license/license.txt"
+ tofile="dist/LICENSE.txt"/>
+
<!-- Need to recompile, but with clover this time. We'll test the
system again, and generate the current and historical trend
|
|
From: <fb...@us...> - 2003-07-15 00:57:07
|
Update of /cvsroot/jgb/jgb/clover_history
In directory sc8-pr-cvs1:/tmp/cvs-serv7329/clover_history
Added Files:
clover-20030714205651.xml
Log Message:
* clover_history/clover-20030714205651.xml:
Added a new Clover historical data point.
--- NEW FILE: clover-20030714205651.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<coverage clover="1.2" generated="1058230612496">
<project timestamp="1058230582703">
<metrics packages="5" files="54" classes="57" loc="4896" ncloc="2321" methods="223" elements="1568" statements="1009" conditionals="336" coveredmethods="214" coveredelements="1502" coveredstatements="965" coveredconditionals="323"/>
<package name="jgb.builder">
<metrics files="6" classes="6" loc="881" ncloc="281" methods="21" elements="171" statements="118" conditionals="32" coveredmethods="21" coveredelements="170" coveredstatements="117" coveredconditionals="32"/>
<file name="D:\java\jgb\src\java\core\jgb\builder\Builder.java">
<class name="Builder">
<metrics methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="105" ncloc="18" methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\TagHandler.java">
<class name="TagHandler">
<metrics methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="347" ncloc="29" methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\JgbEntityResolver.java">
<class name="JgbEntityResolver">
<metrics methods="3" elements="19" statements="12" conditionals="4" coveredmethods="3" coveredelements="19" coveredstatements="12" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="61" ncloc="33" methods="3" elements="19" statements="12" conditionals="4" coveredmethods="3" coveredelements="19" coveredstatements="12" coveredconditionals="4"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\TagHandlerFactory.java">
<class name="TagHandlerFactory">
<metrics methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="40" ncloc="4" methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\DefaultBuilder.java">
<class name="DefaultBuilder">
<metrics methods="18" elements="152" statements="106" conditionals="28" coveredmethods="18" coveredelements="151" coveredstatements="105" coveredconditionals="28"/>
</class>
<metrics classes="1" loc="303" ncloc="193" methods="18" elements="152" statements="106" conditionals="28" coveredmethods="18" coveredelements="151" coveredstatements="105" coveredconditionals="28"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\WindowContext.java">
<class name="WindowContext">
<metrics methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="25" ncloc="4" methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</file>
</package>
<package name="jgb">
<metrics files="2" classes="2" loc="332" ncloc="169" methods="13" elements="102" statements="67" conditionals="22" coveredmethods="13" coveredelements="101" coveredstatements="66" coveredconditionals="22"/>
<file name="D:\java\jgb\src\java\core\jgb\BuildWindowFromXmlFile.java">
<class name="BuildWindowFromXmlFile">
<metrics methods="3" elements="51" statements="32" conditionals="16" coveredmethods="3" coveredelements="51" coveredstatements="32" coveredconditionals="16"/>
</class>
<metrics classes="1" loc="167" ncloc="72" methods="3" elements="51" statements="32" conditionals="16" coveredmethods="3" coveredelements="51" coveredstatements="32" coveredconditionals="16"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\ValidateFile.java">
<class name="ValidateFile">
<metrics methods="10" elements="51" statements="35" conditionals="6" coveredmethods="10" coveredelements="50" coveredstatements="34" coveredconditionals="6"/>
</class>
<metrics classes="1" loc="165" ncloc="97" methods="10" elements="51" statements="35" conditionals="6" coveredmethods="10" coveredelements="50" coveredstatements="34" coveredconditionals="6"/>
</file>
</package>
<package name="jgb.factories.swing">
<metrics files="1" classes="1" loc="100" ncloc="41" methods="4" elements="26" statements="18" conditionals="4" coveredmethods="4" coveredelements="25" coveredstatements="17" coveredconditionals="4"/>
<file name="D:\java\jgb\src\java\core\jgb\factories\swing\PackageTagHandlerFactory.java">
<class name="PackageTagHandlerFactory">
<metrics methods="4" elements="26" statements="18" conditionals="4" coveredmethods="4" coveredelements="25" coveredstatements="17" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="100" ncloc="41" methods="4" elements="26" statements="18" conditionals="4" coveredmethods="4" coveredelements="25" coveredstatements="17" coveredconditionals="4"/>
</file>
</package>
<package name="jgb.builder.utils">
<metrics files="7" classes="9" loc="612" ncloc="360" methods="55" elements="264" statements="153" conditionals="56" coveredmethods="53" coveredelements="251" coveredstatements="144" coveredconditionals="54"/>
<file name="D:\java\jgb\src\java\core\jgb\builder\utils\ConstructorCall.java">
<class name="ConstructorCall">
<metrics methods="3" elements="35" statements="22" conditionals="10" coveredmethods="3" coveredelements="34" coveredstatements="21" coveredconditionals="10"/>
</class>
<metrics classes="1" loc="77" ncloc="42" methods="3" elements="35" statements="22" conditionals="10" coveredmethods="3" coveredelements="34" coveredstatements="21" coveredconditionals="10"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\utils\KeyStrokeParser.java">
<class name="KeyStrokeParser">
<metrics methods="1" elements="32" statements="19" conditionals="12" coveredmethods="1" coveredelements="30" coveredstatements="18" coveredconditionals="11"/>
</class>
<metrics classes="1" loc="73" ncloc="31" methods="1" elements="32" statements="19" conditionals="12" coveredmethods="1" coveredelements="30" coveredstatements="18" coveredconditionals="11"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\utils\AttributesMapAdapter.java">
<class name="AttributesMapAdapter">
<metrics methods="14" elements="34" statements="18" conditionals="2" coveredmethods="14" coveredelements="34" coveredstatements="18" coveredconditionals="2"/>
</class>
<class name="AttributesMapAdapter.MapEntry">
<metrics methods="6" elements="19" statements="11" conditionals="2" coveredmethods="6" coveredelements="19" coveredstatements="11" coveredconditionals="2"/>
</class>
<metrics classes="2" loc="134" ncloc="85" methods="20" elements="53" statements="29" conditionals="4" coveredmethods="20" coveredelements="53" coveredstatements="29" coveredconditionals="4"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\utils\ParametersAccumulator.java">
<class name="ParametersAccumulator">
<metrics methods="7" elements="34" statements="19" conditionals="8" coveredmethods="6" coveredelements="30" coveredstatements="17" coveredconditionals="7"/>
</class>
<metrics classes="1" loc="80" ncloc="44" methods="7" elements="34" statements="19" conditionals="8" coveredmethods="6" coveredelements="30" coveredstatements="17" coveredconditionals="7"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\utils\Constraints.java">
<class name="Constraints">
<metrics methods="4" elements="9" statements="5" conditionals="0" coveredmethods="3" coveredelements="7" coveredstatements="4" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="24" ncloc="18" methods="4" elements="9" statements="5" conditionals="0" coveredmethods="3" coveredelements="7" coveredstatements="4" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\utils\CurrentObjectsStackManager.java">
<class name="CurrentObjectsStackManager">
<metrics methods="8" elements="25" statements="13" conditionals="4" coveredmethods="8" coveredelements="25" coveredstatements="13" coveredconditionals="4"/>
</class>
<class name="CurrentObjectsStackManager.CurrentObject">
<metrics methods="3" elements="7" statements="4" conditionals="0" coveredmethods="3" coveredelements="7" coveredstatements="4" coveredconditionals="0"/>
</class>
<metrics classes="2" loc="90" ncloc="52" methods="11" elements="32" statements="17" conditionals="4" coveredmethods="11" coveredelements="32" coveredstatements="17" coveredconditionals="4"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\builder\utils\MethodCall.java">
<class name="MethodCall">
<metrics methods="9" elements="69" statements="42" conditionals="18" coveredmethods="9" coveredelements="65" coveredstatements="38" coveredconditionals="18"/>
</class>
<metrics classes="1" loc="134" ncloc="88" methods="9" elements="69" statements="42" conditionals="18" coveredmethods="9" coveredelements="65" coveredstatements="38" coveredconditionals="18"/>
</file>
</package>
<package name="jgb.handlers.swing">
<metrics files="38" classes="39" loc="2971" ncloc="1470" methods="130" elements="1005" statements="653" conditionals="222" coveredmethods="123" coveredelements="955" coveredstatements="621" coveredconditionals="211"/>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ControlsTagHandler.java">
<class name="ControlsTagHandler">
<metrics methods="2" elements="22" statements="14" conditionals="6" coveredmethods="2" coveredelements="22" coveredstatements="14" coveredconditionals="6"/>
</class>
<metrics classes="1" loc="61" ncloc="31" methods="2" elements="22" statements="14" conditionals="6" coveredmethods="2" coveredelements="22" coveredstatements="14" coveredconditionals="6"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\SeparatorTagHandler.java">
<class name="SeparatorTagHandler">
<metrics methods="3" elements="13" statements="8" conditionals="2" coveredmethods="3" coveredelements="13" coveredstatements="8" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="51" ncloc="21" methods="3" elements="13" statements="8" conditionals="2" coveredmethods="3" coveredelements="13" coveredstatements="8" coveredconditionals="2"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\RadioTagHandler.java">
<class name="RadioTagHandler">
<metrics methods="3" elements="32" statements="19" conditionals="10" coveredmethods="2" coveredelements="30" coveredstatements="18" coveredconditionals="10"/>
</class>
<metrics classes="1" loc="71" ncloc="37" methods="3" elements="32" statements="19" conditionals="10" coveredmethods="2" coveredelements="30" coveredstatements="18" coveredconditionals="10"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ReturnTagHandler.java">
<class name="ReturnTagHandler">
<metrics methods="2" elements="6" statements="4" conditionals="0" coveredmethods="2" coveredelements="6" coveredstatements="4" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="45" ncloc="16" methods="2" elements="6" statements="4" conditionals="0" coveredmethods="2" coveredelements="6" coveredstatements="4" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\RegisterTagHandler.java">
<class name="RegisterTagHandler">
<metrics methods="2" elements="29" statements="25" conditionals="2" coveredmethods="2" coveredelements="29" coveredstatements="25" coveredconditionals="2"/>
</class>
<class name="RegisterTagHandler.EventReflector">
<metrics methods="2" elements="11" statements="7" conditionals="2" coveredmethods="2" coveredelements="11" coveredstatements="7" coveredconditionals="2"/>
</class>
<metrics classes="2" loc="122" ncloc="90" methods="4" elements="40" statements="32" conditionals="4" coveredmethods="4" coveredelements="40" coveredstatements="32" coveredconditionals="4"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\MethodCallTagHandler.java">
<class name="MethodCallTagHandler">
<metrics methods="7" elements="35" statements="26" conditionals="2" coveredmethods="7" coveredelements="33" coveredstatements="24" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="95" ncloc="56" methods="7" elements="35" statements="26" conditionals="2" coveredmethods="7" coveredelements="33" coveredstatements="24" coveredconditionals="2"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\SheetTagHandler.java">
<class name="SheetTagHandler">
<metrics methods="3" elements="24" statements="13" conditionals="8" coveredmethods="3" coveredelements="24" coveredstatements="13" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="56" ncloc="29" methods="3" elements="24" statements="13" conditionals="8" coveredmethods="3" coveredelements="24" coveredstatements="13" coveredconditionals="8"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\PropertyTagHandler.java">
<class name="PropertyTagHandler">
<metrics methods="3" elements="23" statements="18" conditionals="2" coveredmethods="3" coveredelements="23" coveredstatements="18" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="73" ncloc="34" methods="3" elements="23" statements="18" conditionals="2" coveredmethods="3" coveredelements="23" coveredstatements="18" coveredconditionals="2"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\WindowsTagHandler.java">
<class name="WindowsTagHandler">
<metrics methods="2" elements="2" statements="0" conditionals="0" coveredmethods="2" coveredelements="2" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="38" ncloc="9" methods="2" elements="2" statements="0" conditionals="0" coveredmethods="2" coveredelements="2" coveredstatements="0" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ItemTagHandler.java">
<class name="ItemTagHandler">
<metrics methods="3" elements="52" statements="29" conditionals="20" coveredmethods="2" coveredelements="49" coveredstatements="28" coveredconditionals="19"/>
</class>
<metrics classes="1" loc="110" ncloc="59" methods="3" elements="52" statements="29" conditionals="20" coveredmethods="2" coveredelements="49" coveredstatements="28" coveredconditionals="19"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\AbstractValueTagHandler.java">
<class name="AbstractValueTagHandler">
<metrics methods="1" elements="3" statements="2" conditionals="0" coveredmethods="1" coveredelements="3" coveredstatements="2" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="33" ncloc="7" methods="1" elements="3" statements="2" conditionals="0" coveredmethods="1" coveredelements="3" coveredstatements="2" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\StrutTagHandler.java">
<class name="StrutTagHandler">
<metrics methods="3" elements="27" statements="18" conditionals="6" coveredmethods="3" coveredelements="27" coveredstatements="18" coveredconditionals="6"/>
</class>
<metrics classes="1" loc="76" ncloc="36" methods="3" elements="27" statements="18" conditionals="6" coveredmethods="3" coveredelements="27" coveredstatements="18" coveredconditionals="6"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\WindowTagHandler.java">
<class name="WindowTagHandler">
<metrics methods="2" elements="22" statements="14" conditionals="6" coveredmethods="2" coveredelements="20" coveredstatements="14" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="78" ncloc="31" methods="2" elements="22" statements="14" conditionals="6" coveredmethods="2" coveredelements="20" coveredstatements="14" coveredconditionals="4"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ButtonTagHandler.java">
<class name="ButtonTagHandler">
<metrics methods="3" elements="24" statements="13" conditionals="8" coveredmethods="2" coveredelements="22" coveredstatements="12" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="59" ncloc="29" methods="3" elements="24" statements="13" conditionals="8" coveredmethods="2" coveredelements="22" coveredstatements="12" coveredconditionals="8"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\AbstractControlTagHandler.java">
<class name="AbstractControlTagHandler">
<metrics methods="8" elements="55" statements="31" conditionals="16" coveredmethods="8" coveredelements="52" coveredstatements="30" coveredconditionals="14"/>
</class>
<metrics classes="1" loc="200" ncloc="72" methods="8" elements="55" statements="31" conditionals="16" coveredmethods="8" coveredelements="52" coveredstatements="30" coveredconditionals="14"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ScrollableTagHandler.java">
<class name="ScrollableTagHandler">
<metrics methods="3" elements="14" statements="9" conditionals="2" coveredmethods="3" coveredelements="14" coveredstatements="9" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="32" ncloc="23" methods="3" elements="14" statements="9" conditionals="2" coveredmethods="3" coveredelements="14" coveredstatements="9" coveredconditionals="2"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\MenuBarTagHandler.java">
<class name="MenuBarTagHandler">
<metrics methods="3" elements="13" statements="8" conditionals="2" coveredmethods="3" coveredelements="13" coveredstatements="8" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="57" ncloc="21" methods="3" elements="13" statements="8" conditionals="2" coveredmethods="3" coveredelements="13" coveredstatements="8" coveredconditionals="2"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ComboTagHandler.java">
<class name="ComboTagHandler">
<metrics methods="3" elements="37" statements="22" conditionals="12" coveredmethods="2" coveredelements="34" coveredstatements="21" coveredconditionals="11"/>
</class>
<metrics classes="1" loc="79" ncloc="44" methods="3" elements="37" statements="22" conditionals="12" coveredmethods="2" coveredelements="34" coveredstatements="21" coveredconditionals="11"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ControlTagHandler.java">
<class name="ControlTagHandler">
<metrics methods="4" elements="29" statements="19" conditionals="6" coveredmethods="4" coveredelements="27" coveredstatements="18" coveredconditionals="5"/>
</class>
<metrics classes="1" loc="76" ncloc="40" methods="4" elements="29" statements="19" conditionals="6" coveredmethods="4" coveredelements="27" coveredstatements="18" coveredconditionals="5"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ParameterTagHandler.java">
<class name="ParameterTagHandler">
<metrics methods="2" elements="12" statements="8" conditionals="2" coveredmethods="2" coveredelements="12" coveredstatements="8" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="56" ncloc="21" methods="2" elements="12" statements="8" conditionals="2" coveredmethods="2" coveredelements="12" coveredstatements="8" coveredconditionals="2"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\TabTagHandler.java">
<class name="TabTagHandler">
<metrics methods="1" elements="12" statements="9" conditionals="2" coveredmethods="1" coveredelements="12" coveredstatements="9" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="49" ncloc="21" methods="1" elements="12" statements="9" conditionals="2" coveredmethods="1" coveredelements="12" coveredstatements="9" coveredconditionals="2"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\GridbagTagHandler.java">
<class name="GridbagTagHandler">
<metrics methods="5" elements="84" statements="63" conditionals="16" coveredmethods="5" coveredelements="71" coveredstatements="51" coveredconditionals="15"/>
</class>
<metrics classes="1" loc="165" ncloc="122" methods="5" elements="84" statements="63" conditionals="16" coveredmethods="5" coveredelements="71" coveredstatements="51" coveredconditionals="15"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ValueTagHandler.java">
<class name="ValueTagHandler">
<metrics methods="2" elements="41" statements="21" conditionals="18" coveredmethods="2" coveredelements="39" coveredstatements="20" coveredconditionals="17"/>
</class>
<metrics classes="1" loc="117" ncloc="43" methods="2" elements="41" statements="21" conditionals="18" coveredmethods="2" coveredelements="39" coveredstatements="20" coveredconditionals="17"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ConstantTagHandler.java">
<class name="ConstantTagHandler">
<metrics methods="5" elements="32" statements="23" conditionals="4" coveredmethods="5" coveredelements="32" coveredstatements="23" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="98" ncloc="49" methods="5" elements="32" statements="23" conditionals="4" coveredmethods="5" coveredelements="32" coveredstatements="23" coveredconditionals="4"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ConstraintsTagHandler.java">
<class name="ConstraintsTagHandler">
<metrics methods="3" elements="34" statements="21" conditionals="10" coveredmethods="3" coveredelements="30" coveredstatements="19" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="84" ncloc="47" methods="3" elements="34" statements="21" conditionals="10" coveredmethods="3" coveredelements="30" coveredstatements="19" coveredconditionals="8"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\NullTagHandler.java">
<class name="NullTagHandler">
<metrics methods="2" elements="7" statements="5" conditionals="0" coveredmethods="2" coveredelements="7" coveredstatements="5" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="42" ncloc="17" methods="2" elements="7" statements="5" conditionals="0" coveredmethods="2" coveredelements="7" coveredstatements="5" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\AbstractTagHandler.java">
<class name="AbstractTagHandler">
<metrics methods="16" elements="72" statements="48" conditionals="8" coveredmethods="16" coveredelements="69" coveredstatements="45" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="211" ncloc="111" methods="16" elements="72" statements="48" conditionals="8" coveredmethods="16" coveredelements="69" coveredstatements="45" coveredconditionals="8"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\CheckTagHandler.java">
<class name="CheckTagHandler">
<metrics methods="3" elements="29" statements="16" conditionals="10" coveredmethods="2" coveredelements="27" coveredstatements="15" coveredconditionals="10"/>
</class>
<metrics classes="1" loc="66" ncloc="33" methods="3" elements="29" statements="16" conditionals="10" coveredmethods="2" coveredelements="27" coveredstatements="15" coveredconditionals="10"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\MenuTagHandler.java">
<class name="MenuTagHandler">
<metrics methods="3" elements="16" statements="9" conditionals="4" coveredmethods="3" coveredelements="16" coveredstatements="9" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="53" ncloc="23" methods="3" elements="16" statements="9" conditionals="4" coveredmethods="3" coveredelements="16" coveredstatements="9" coveredconditionals="4"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\LayoutTagHandler.java">
<class name="LayoutTagHandler">
<metrics methods="3" elements="15" statements="12" conditionals="0" coveredmethods="3" coveredelements="15" coveredstatements="12" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="61" ncloc="28" methods="3" elements="15" statements="12" conditionals="0" coveredmethods="3" coveredelements="15" coveredstatements="12" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ObjectTagHandler.java">
<class name="ObjectTagHandler">
<metrics methods="3" elements="14" statements="11" conditionals="0" coveredmethods="3" coveredelements="13" coveredstatements="10" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="59" ncloc="26" methods="3" elements="14" statements="11" conditionals="0" coveredmethods="3" coveredelements="13" coveredstatements="10" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\PanelTagHandler.java">
<class name="PanelTagHandler">
<metrics methods="4" elements="52" statements="40" conditionals="8" coveredmethods="4" coveredelements="50" coveredstatements="38" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="137" ncloc="81" methods="4" elements="52" statements="40" conditionals="8" coveredmethods="4" coveredelements="50" coveredstatements="38" coveredconditionals="8"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\LabelTagHandler.java">
<class name="LabelTagHandler">
<metrics methods="3" elements="24" statements="13" conditionals="8" coveredmethods="2" coveredelements="22" coveredstatements="12" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="58" ncloc="29" methods="3" elements="24" statements="13" conditionals="8" coveredmethods="2" coveredelements="22" coveredstatements="12" coveredconditionals="8"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\TextfieldTagHandler.java">
<class name="TextfieldTagHandler">
<metrics methods="3" elements="43" statements="24" conditionals="16" coveredmethods="2" coveredelements="41" coveredstatements="23" coveredconditionals="16"/>
</class>
<metrics classes="1" loc="86" ncloc="47" methods="3" elements="43" statements="24" conditionals="16" coveredmethods="2" coveredelements="41" coveredstatements="23" coveredconditionals="16"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\RefTagHandler.java">
<class name="RefTagHandler">
<metrics methods="2" elements="6" statements="4" conditionals="0" coveredmethods="2" coveredelements="6" coveredstatements="4" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="43" ncloc="14" methods="2" elements="6" statements="4" conditionals="0" coveredmethods="2" coveredelements="6" coveredstatements="4" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\ConstructorTagHandler.java">
<class name="ConstructorTagHandler">
<metrics methods="2" elements="14" statements="12" conditionals="0" coveredmethods="2" coveredelements="14" coveredstatements="12" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="57" ncloc="25" methods="2" elements="14" statements="12" conditionals="0" coveredmethods="2" coveredelements="14" coveredstatements="12" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\BorderTagHandler.java">
<class name="BorderTagHandler">
<metrics methods="3" elements="7" statements="4" conditionals="0" coveredmethods="3" coveredelements="7" coveredstatements="4" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="43" ncloc="17" methods="3" elements="7" statements="4" conditionals="0" coveredmethods="3" coveredelements="7" coveredstatements="4" coveredconditionals="0"/>
</file>
<file name="D:\java\jgb\src\java\core\jgb\handlers\swing\GlueTagHandler.java">
<class name="GlueTagHandler">
<metrics methods="3" elements="18" statements="11" conditionals="4" coveredmethods="3" coveredelements="18" coveredstatements="11" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="74" ncloc="31" methods="3" elements="18" statements="11" conditionals="4" coveredmethods="3" coveredelements="18" coveredstatements="11" coveredconditionals="4"/>
</file>
</package>
</project>
</coverage>
|
|
From: <fb...@us...> - 2003-07-15 00:52:57
|
Update of /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing
In directory sc8-pr-cvs1:/tmp/cvs-serv6753
Modified Files:
TestAbstractControlTagHandler.java
Log Message:
* src/java/tests/jgb/handlers/swing/TestAbstractControlTagHandler.java:
Added new test that confirms overall workings of new constraints
tag handler.
Index: TestAbstractControlTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing/TestAbstractControlTagHandler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TestAbstractControlTagHandler.java 14 Jul 2003 21:02:31 -0000 1.4
--- TestAbstractControlTagHandler.java 15 Jul 2003 00:52:49 -0000 1.5
***************
*** 49,53 ****
super.setUp();
! abstractHandler = (AbstractControlTagHandler) handler;
abstractHandler.tagContext = context;
--- 49,53 ----
super.setUp();
! abstractHandler = (AbstractControlTagHandler)handler;
abstractHandler.tagContext = context;
***************
*** 145,148 ****
--- 145,218 ----
assertEquals("appended period to prefix name", "java.awt.Frame",
abstractHandler.calcControlClassName("Frame"));
+ }
+
+ public void testMultipleConstraintsDoNotInfluenceEachOther() throws SAXException {
+ final TagHandler constraintsHandler = new ConstraintsTagHandler();
+ final MockContainer parentContainer = new MockContainer();
+ final MockContainer[] mockContainers = new MockContainer[]{
+ new MockContainer(),
+ };
+
+ final Object[] mockConstraints = new Object[]{
+ BorderLayout.NORTH,
+ new GridBagConstraints(),
+ null
+ };
+
+ for (int i = 0; i < mockContainers.length; i++) {
+ MockContainer mockContainer = mockContainers[i];
+ if (null == mockConstraints[i]) {
+ mockContainer.setExpectedConstraintsNone();
+ } else {
+ mockContainer.setExpectedConstraints(mockConstraints[i]);
+ }
+ }
+
+ stackManager.pushCurrentObject(parentContainer);
+
+ constraintsHandler.startElement("constraints", context, atts);
+ context.put(TagHandler.PARAMETER_VALUE_KEY, mockConstraints[0]);
+ context.put(TagHandler.PARAMETER_CLASS_KEY, mockConstraints[0].getClass());
+ constraintsHandler.endElement("constraints", context);
+
+ final Map constraintsMap = (Map)context.get(TagHandler.CURRENT_CONSTRAINTS_KEY);
+ assertNotNull("Constraints map was created by constraints tag handler",
+ constraintsMap);
+ assertEquals("there is one item in map - the parentContainer's " +
+ "constraints",
+ 1, constraintsMap.size());
+ assertTrue("confirm parentContainer is the one item with constraints " +
+ "in the constraints map",
+ constraintsMap.containsKey(parentContainer));
+ assertEquals("saved value of constraints in constraints map",
+ mockConstraints[0],
+ ((Constraints)constraintsMap.get(parentContainer)).getValue());
+ parentContainer.verify();
+
+ stackManager.pushCurrentObject(mockContainers[0]);
+ constraintsHandler.startElement("constraints", context, atts);
+ context.put(TagHandler.PARAMETER_VALUE_KEY, mockConstraints[1]);
+ context.put(TagHandler.PARAMETER_CLASS_KEY, mockConstraints[1].getClass());
+ constraintsHandler.endElement("constraints", context);
+
+ assertEquals("one item added - constraints for mockContainer[0]",
+ 2, constraintsMap.size());
+ assertTrue("confirm constraints map contains key for mockContainer[0]",
+ constraintsMap.containsKey(mockContainers[0]));
+ assertEquals("saved value of constraints in constraints map",
+ mockConstraints[1],
+ ((Constraints)constraintsMap.get(mockContainers[0])).getValue());
+
+ atts.put("reset", "true");
+ constraintsHandler.startElement("constraints", context, atts);
+ context.put(TagHandler.PARAMETER_VALUE_KEY, mockConstraints[1]);
+ context.put(TagHandler.PARAMETER_CLASS_KEY, mockConstraints[1].getClass());
+ constraintsHandler.endElement("constraints", context);
+
+ assertEquals("no item added - one item removed. Constraints for " +
+ "mockContainers[0] was removed due to constraints reset",
+ 1, constraintsMap.size());
+ assertFalse("confirm constraints map does not contain key for mockContainer[0]",
+ constraintsMap.containsKey(mockContainers[0]));
}
|
Update of /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing
In directory sc8-pr-cvs1:/tmp/cvs-serv31851/src/java/tests/jgb/handlers/swing
Modified Files:
TestAbstractControlTagHandler.java
TestConstraintsTagHandler.java TestControlTagHandler.java
TestGlueTagHandler.java TestStrutTagHandler.java
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: TestAbstractControlTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing/TestAbstractControlTagHandler.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TestAbstractControlTagHandler.java 27 Jun 2003 16:45:50 -0000 1.3
--- TestAbstractControlTagHandler.java 14 Jul 2003 21:02:31 -0000 1.4
***************
*** 24,27 ****
--- 24,28 ----
import com.mockobjects.util.Verifier;
import jgb.builder.TagHandler;
+ import jgb.builder.utils.Constraints;
import jgb.handlers.TagHandlerAbstractTest;
import jgb.mocks.MockContainer;
***************
*** 32,35 ****
--- 33,37 ----
import java.util.Map;
import java.util.EmptyStackException;
+ import java.util.HashMap;
/**
***************
*** 47,51 ****
super.setUp();
! abstractHandler = (AbstractControlTagHandler)handler;
abstractHandler.tagContext = context;
--- 49,53 ----
super.setUp();
! abstractHandler = (AbstractControlTagHandler) handler;
abstractHandler.tagContext = context;
***************
*** 60,64 ****
GridBagConstraints gridbagConstraints = new GridBagConstraints();
! context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, gridbagConstraints);
JPanel panel = new JPanel();
--- 62,69 ----
GridBagConstraints gridbagConstraints = new GridBagConstraints();
! Map constraintsMap = new HashMap();
! constraintsMap.put(stackManager.getCurrentObject(), new Constraints(
! gridbagConstraints, gridbagConstraints.getClass()));
! context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, constraintsMap);
JPanel panel = new JPanel();
Index: TestConstraintsTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing/TestConstraintsTagHandler.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TestConstraintsTagHandler.java 27 Jun 2003 16:45:50 -0000 1.7
--- TestConstraintsTagHandler.java 14 Jul 2003 21:02:31 -0000 1.8
***************
*** 21,25 ****
--- 21,33 ----
import jgb.builder.TagHandler;
+ import jgb.builder.utils.Constraints;
import jgb.handlers.TagHandlerAbstractTest;
+ import jgb.mocks.MockContainer;
+ import org.xml.sax.SAXException;
+
+ import java.awt.*;
+ import java.util.Collections;
+ import java.util.HashMap;
+ import java.util.Map;
/**
***************
*** 27,51 ****
*/
public class TestConstraintsTagHandler extends TagHandlerAbstractTest {
public TestConstraintsTagHandler(String s) {
super(s);
}
public void testStartElement_NoOp() throws Exception {
! int oldContextSize = context.size();
handler.startElement("constraints", context, atts);
! assertEquals(oldContextSize, context.size());
}
public void testReset() throws Exception {
! atts.put("reset", "1");
!
! context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, "");
! int oldContextSize = context.size();
handler.startElement("constraints", context, atts);
handler.endElement("constraints", context);
- assertEquals(oldContextSize - 1, context.size());
! assertTrue(false == context.containsKey(TagHandler.CURRENT_CONSTRAINTS_KEY));
}
--- 35,72 ----
*/
public class TestConstraintsTagHandler extends TagHandlerAbstractTest {
+ private Map constraintsMap;
+
public TestConstraintsTagHandler(String s) {
super(s);
}
+ protected void setUp() throws Exception {
+ super.setUp();
+
+ stackManager.pushCurrentObject(new MockContainer());
+
+ constraintsMap = new HashMap();
+ context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, constraintsMap);
+ }
+
public void testStartElement_NoOp() throws Exception {
! final Map oldContext = Collections.unmodifiableMap(new HashMap(context));
handler.startElement("constraints", context, atts);
! assertEquals(oldContext, context);
}
public void testReset() throws Exception {
! atts.put("reset", "true");
! constraintsMap.put(
! stackManager.getCurrentObject(),
! new Constraints("CONSTRAINTS_01", String.class));
! assertTrue(context.containsKey(TagHandler.CURRENT_CONSTRAINTS_KEY));
! assertNotNull(context.get(TagHandler.CURRENT_CONSTRAINTS_KEY));
handler.startElement("constraints", context, atts);
handler.endElement("constraints", context);
! assertFalse("constraints were removed from the map",
! constraintsMap.containsKey(stackManager.getCurrentObject()));
}
***************
*** 54,63 ****
context.put(TagHandler.PARAMETER_VALUE_KEY, java.awt.BorderLayout.CENTER);
- int oldContextSize = context.size();
handler.endElement("constraints", context);
! assertEquals(oldContextSize - 2 + 1, context.size());
! assertEquals(java.awt.BorderLayout.CENTER,
! context.get(TagHandler.CURRENT_CONSTRAINTS_KEY));
}
--- 75,95 ----
context.put(TagHandler.PARAMETER_VALUE_KEY, java.awt.BorderLayout.CENTER);
handler.endElement("constraints", context);
! assertFalse("context was cleaned up - parameter class",
! context.containsKey(TagHandler.PARAMETER_CLASS_KEY));
! assertFalse("context was cleaned up - parameter value",
! context.containsKey(TagHandler.PARAMETER_VALUE_KEY));
!
! final Constraints currentConstraints =
! (Constraints) constraintsMap.get(stackManager.getCurrentObject());
! assertNotNull("constraints were saved in map, with current object as key",
! currentConstraints);
! assertEquals("constraint's value was saved in current constraints",
! java.awt.BorderLayout.CENTER,
! currentConstraints.getValue());
! assertEquals("constraint's class was saved in current constraints",
! java.awt.BorderLayout.CENTER.getClass(),
! currentConstraints.getValueClass());
}
Index: TestControlTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing/TestControlTagHandler.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** TestControlTagHandler.java 27 Jun 2003 16:45:50 -0000 1.12
--- TestControlTagHandler.java 14 Jul 2003 21:02:31 -0000 1.13
***************
*** 21,24 ****
--- 21,25 ----
import jgb.builder.TagHandler;
+ import jgb.builder.utils.Constraints;
import jgb.builder.utils.CurrentObjectsStackManager;
import jgb.handlers.TagHandlerAbstractTest;
***************
*** 27,30 ****
--- 28,34 ----
import javax.swing.*;
+ import java.awt.*;
+ import java.util.HashMap;
+ import java.util.Map;
/**
***************
*** 33,36 ****
--- 37,41 ----
public class TestControlTagHandler extends TagHandlerAbstractTest {
private JPanel panel;
+ private Map constraintsMap;
public TestControlTagHandler(String s) {
***************
*** 43,46 ****
--- 48,53 ----
panel = new JPanel();
stackManager.pushCurrentObject(panel);
+
+ constraintsMap = new HashMap();
}
***************
*** 52,56 ****
Object currentObject = stackManager.getCurrentObject();
! JButton button = (JButton)currentObject;
assertEquals(stackManager.getCurrentObjectId(), button.getName());
}
--- 59,63 ----
Object currentObject = stackManager.getCurrentObject();
! JButton button = (JButton) currentObject;
assertEquals(stackManager.getCurrentObjectId(), button.getName());
}
***************
*** 67,71 ****
assertTrue(objectsMap.containsKey("control0"));
! JButton button = (JButton)objectsMap.get("control0");
assertSame(button, stackManager.getCurrentObject());
--- 74,78 ----
assertTrue(objectsMap.containsKey("control0"));
! JButton button = (JButton) objectsMap.get("control0");
assertSame(button, stackManager.getCurrentObject());
***************
*** 92,96 ****
0, objectsMap.size());
! JButton button = (JButton)stackManager.getCurrentObject();
assertNotNull(button);
--- 99,103 ----
0, objectsMap.size());
! JButton button = (JButton) stackManager.getCurrentObject();
assertNotNull(button);
***************
*** 112,116 ****
assertTrue(context.containsKey(TagHandler.OBJECTS_MAP_KEY));
! JButton button = (JButton)stackManager.getCurrentObject();
assertNotNull(button);
assertSame(stackManager.getCurrentObject(), context.get(TagHandler.CURRENT_OBJECT_KEY));
--- 119,123 ----
assertTrue(context.containsKey(TagHandler.OBJECTS_MAP_KEY));
! JButton button = (JButton) stackManager.getCurrentObject();
assertNotNull(button);
assertSame(stackManager.getCurrentObject(), context.get(TagHandler.CURRENT_OBJECT_KEY));
***************
*** 122,126 ****
stackManager.pushCurrentObject(container);
! context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, java.awt.BorderLayout.NORTH);
atts.put("class", "JButton");
--- 129,135 ----
stackManager.pushCurrentObject(container);
! constraintsMap.put(container, new Constraints(
! BorderLayout.NORTH, BorderLayout.NORTH.getClass()));
! context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, constraintsMap);
atts.put("class", "JButton");
***************
*** 149,153 ****
handler.startElement("button", context, atts);
! JLabel refLabel = (JLabel)objectsMap.get("reflabel0");
assertSame(stackManager.getCurrentObject(), refLabel.getLabelFor());
}
--- 158,162 ----
handler.startElement("button", context, atts);
! JLabel refLabel = (JLabel) objectsMap.get("reflabel0");
assertSame(stackManager.getCurrentObject(), refLabel.getLabelFor());
}
Index: TestGlueTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing/TestGlueTagHandler.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TestGlueTagHandler.java 27 Jun 2003 16:45:50 -0000 1.7
--- TestGlueTagHandler.java 14 Jul 2003 21:02:31 -0000 1.8
***************
*** 21,24 ****
--- 21,25 ----
import jgb.builder.TagHandler;
+ import jgb.builder.utils.Constraints;
import jgb.handlers.TagHandlerAbstractTest;
import jgb.mocks.MockContainer;
***************
*** 27,30 ****
--- 28,33 ----
import javax.swing.*;
import java.awt.*;
+ import java.util.Map;
+ import java.util.HashMap;
import org.xml.sax.SAXException;
***************
*** 35,38 ****
--- 38,42 ----
public class TestGlueTagHandler extends TagHandlerAbstractTest {
private JPanel panel;
+ private Map constraintsMap;
public TestGlueTagHandler(String s) {
***************
*** 45,48 ****
--- 49,53 ----
panel = new JPanel();
stackManager.pushCurrentObject(panel);
+ constraintsMap = new HashMap();
}
***************
*** 60,64 ****
stackManager.getCurrentObject().getClass());
! Box.Filler filler = (Box.Filler)stackManager.getCurrentObject();
Dimension d = filler.getMaximumSize();
assertTrue("horizontal box: w=" + d.getWidth() + ", h=" + d.getHeight(),
--- 65,69 ----
stackManager.getCurrentObject().getClass());
! Box.Filler filler = (Box.Filler) stackManager.getCurrentObject();
Dimension d = filler.getMaximumSize();
assertTrue("horizontal box: w=" + d.getWidth() + ", h=" + d.getHeight(),
***************
*** 79,83 ****
stackManager.getCurrentObject().getClass());
! Box.Filler filler = (Box.Filler)stackManager.getCurrentObject();
Dimension d = filler.getMaximumSize();
assertTrue("vertical box: w=" + d.getWidth() + ", h=" + d.getHeight(),
--- 84,88 ----
stackManager.getCurrentObject().getClass());
! Box.Filler filler = (Box.Filler) stackManager.getCurrentObject();
Dimension d = filler.getMaximumSize();
assertTrue("vertical box: w=" + d.getWidth() + ", h=" + d.getHeight(),
***************
*** 90,96 ****
mockContainer.setExpectedConstraints(CONSTRAINTS);
- context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, CONSTRAINTS);
stackManager.pushCurrentObject(mockContainer);
atts.put("orientation", "horiz");
handler.startElement("glue", context, atts);
--- 95,105 ----
mockContainer.setExpectedConstraints(CONSTRAINTS);
stackManager.pushCurrentObject(mockContainer);
+ constraintsMap.put(
+ stackManager.getCurrentObject(),
+ new Constraints(CONSTRAINTS, CONSTRAINTS.getClass()));
+ context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, constraintsMap);
+
atts.put("orientation", "horiz");
handler.startElement("glue", context, atts);
***************
*** 140,144 ****
public void testDefaultPackageThrowsException() {
try {
! ((GlueTagHandler)handler).getDefaultPackagePrefix();
fail("Failed to throw IllegalStateException");
} catch (IllegalStateException success) {
--- 149,153 ----
public void testDefaultPackageThrowsException() {
try {
! ((GlueTagHandler) handler).getDefaultPackagePrefix();
fail("Failed to throw IllegalStateException");
} catch (IllegalStateException success) {
Index: TestStrutTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing/TestStrutTagHandler.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TestStrutTagHandler.java 27 Jun 2003 16:45:50 -0000 1.6
--- TestStrutTagHandler.java 14 Jul 2003 21:02:31 -0000 1.7
***************
*** 21,24 ****
--- 21,25 ----
import jgb.builder.TagHandler;
+ import jgb.builder.utils.Constraints;
import jgb.handlers.TagHandlerAbstractTest;
import jgb.mocks.MockContainer;
***************
*** 26,29 ****
--- 27,32 ----
import javax.swing.*;
import java.awt.*;
+ import java.util.HashMap;
+ import java.util.Map;
import org.xml.sax.SAXException;
***************
*** 34,37 ****
--- 37,41 ----
public class TestStrutTagHandler extends TagHandlerAbstractTest {
private MockContainer mockContainer;
+ private Map constraintsMap;
public TestStrutTagHandler(String s) {
***************
*** 44,47 ****
--- 48,52 ----
mockContainer = new MockContainer();
stackManager.pushCurrentObject(mockContainer);
+ constraintsMap = new HashMap();
}
***************
*** 56,60 ****
assertEquals(1, mockContainer.getComponentCount());
! Component comp = (Component)stackManager.getCurrentObject();
assertEquals("same class as a manual rigid area",
Box.createRigidArea(new Dimension(20, 12)).getClass(),
--- 61,65 ----
assertEquals(1, mockContainer.getComponentCount());
! Component comp = (Component) stackManager.getCurrentObject();
assertEquals("same class as a manual rigid area",
Box.createRigidArea(new Dimension(20, 12)).getClass(),
***************
*** 64,73 ****
size = comp.getMinimumSize();
! assertEquals(20, (int)size.getWidth());
! assertEquals(12, (int)size.getHeight());
size = comp.getMaximumSize();
! assertEquals(20, (int)size.getWidth());
! assertEquals(12, (int)size.getHeight());
}
--- 69,78 ----
size = comp.getMinimumSize();
! assertEquals(20, (int) size.getWidth());
! assertEquals(12, (int) size.getHeight());
size = comp.getMaximumSize();
! assertEquals(20, (int) size.getWidth());
! assertEquals(12, (int) size.getHeight());
}
***************
*** 78,82 ****
assertEquals(1, mockContainer.getComponentCount());
! Component comp = (Component)stackManager.getCurrentObject();
assertEquals("same class as horizontal strut",
Box.createHorizontalStrut(24).getClass(),
--- 83,87 ----
assertEquals(1, mockContainer.getComponentCount());
! Component comp = (Component) stackManager.getCurrentObject();
assertEquals("same class as horizontal strut",
Box.createHorizontalStrut(24).getClass(),
***************
*** 85,94 ****
Dimension size = null;
size = comp.getMinimumSize();
! assertEquals(24, (int)size.getWidth());
! assertEquals(0, (int)size.getHeight());
size = comp.getMaximumSize();
! assertEquals(24, (int)size.getWidth());
! assertEquals(32767, (int)size.getHeight());
}
--- 90,99 ----
Dimension size = null;
size = comp.getMinimumSize();
! assertEquals(24, (int) size.getWidth());
! assertEquals(0, (int) size.getHeight());
size = comp.getMaximumSize();
! assertEquals(24, (int) size.getWidth());
! assertEquals(32767, (int) size.getHeight());
}
***************
*** 99,103 ****
assertEquals(1, mockContainer.getComponentCount());
! Component comp = (Component)stackManager.getCurrentObject();
assertEquals("same class as vertical strut",
Box.createVerticalStrut(13).getClass(),
--- 104,108 ----
assertEquals(1, mockContainer.getComponentCount());
! Component comp = (Component) stackManager.getCurrentObject();
assertEquals("same class as vertical strut",
Box.createVerticalStrut(13).getClass(),
***************
*** 106,115 ****
Dimension size = null;
size = comp.getMinimumSize();
! assertEquals(0, (int)size.getWidth());
! assertEquals(13, (int)size.getHeight());
size = comp.getMaximumSize();
! assertEquals(32767, (int)size.getWidth());
! assertEquals(13, (int)size.getHeight());
}
--- 111,120 ----
Dimension size = null;
size = comp.getMinimumSize();
! assertEquals(0, (int) size.getWidth());
! assertEquals(13, (int) size.getHeight());
size = comp.getMaximumSize();
! assertEquals(32767, (int) size.getWidth());
! assertEquals(13, (int) size.getHeight());
}
***************
*** 119,124 ****
mockContainer.setExpectedConstraints(CONSTRAINTS);
atts.put("height", "2");
! context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, CONSTRAINTS);
handler.startElement("strut", context, atts);
--- 124,131 ----
mockContainer.setExpectedConstraints(CONSTRAINTS);
+ constraintsMap.put(stackManager.getCurrentObject(),
+ new Constraints(CONSTRAINTS, CONSTRAINTS.getClass()));
atts.put("height", "2");
! context.put(TagHandler.CURRENT_CONSTRAINTS_KEY, constraintsMap);
handler.startElement("strut", context, atts);
***************
*** 150,154 ****
public void testDefaultPackageThrowsException() {
try {
! ((StrutTagHandler)handler).getDefaultPackagePrefix();
fail("Failed to throw IllegalStateException");
} catch (IllegalStateException success) {
--- 157,161 ----
public void testDefaultPackageThrowsException() {
try {
! ((StrutTagHandler) handler).getDefaultPackagePrefix();
fail("Failed to throw IllegalStateException");
} catch (IllegalStateException success) {
|
|
From: <fb...@us...> - 2003-07-14 21:02:33
|
Update of /cvsroot/jgb/jgb/src/java/core/jgb/handlers/swing
In directory sc8-pr-cvs1:/tmp/cvs-serv31851/src/java/core/jgb/handlers/swing
Modified Files:
AbstractControlTagHandler.java ConstraintsTagHandler.java
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: AbstractControlTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/core/jgb/handlers/swing/AbstractControlTagHandler.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** AbstractControlTagHandler.java 27 Jun 2003 16:45:48 -0000 1.13
--- AbstractControlTagHandler.java 14 Jul 2003 21:02:30 -0000 1.14
***************
*** 21,27 ****
--- 21,29 ----
import jgb.builder.TagHandler;
+ import jgb.builder.utils.Constraints;
import java.awt.*;
import java.util.EmptyStackException;
+ import java.util.Map;
/**
***************
*** 92,103 ****
}
! Container parent = (Container)getCurrentControl();
Object constraints = getCurrentConstraints();
if (parent.getLayout() instanceof GridBagLayout) {
! GridBagLayout layout = (GridBagLayout)parent.getLayout();
! layout.setConstraints(component, (GridBagConstraints)constraints);
parent.add(component);
! } else {
parent.add(component, constraints);
}
--- 94,110 ----
}
! Container parent = (Container) getCurrentControl();
Object constraints = getCurrentConstraints();
if (parent.getLayout() instanceof GridBagLayout) {
! if (null != constraints) {
! GridBagLayout layout = (GridBagLayout) parent.getLayout();
! layout.setConstraints(component, (GridBagConstraints) constraints);
! }
!
parent.add(component);
! } else if (null != constraints) {
parent.add(component, constraints);
+ } else {
+ parent.add(component);
}
***************
*** 118,122 ****
*/
protected Component getCurrentControl() {
! return (Component)super.getCurrentObject();
}
--- 125,129 ----
*/
protected Component getCurrentControl() {
! return (Component) super.getCurrentObject();
}
***************
*** 143,147 ****
*/
protected Object getCurrentConstraints() {
! return tagContext.get(TagHandler.CURRENT_CONSTRAINTS_KEY);
}
--- 150,161 ----
*/
protected Object getCurrentConstraints() {
! Map constraintsMap = (Map) tagContext.get(TagHandler.CURRENT_CONSTRAINTS_KEY);
! if (null == constraintsMap) {
! return null;
! } else if (constraintsMap.containsKey(getCurrentObject())) {
! return ((Constraints) constraintsMap.get(getCurrentObject())).getValue();
! } else {
! return null;
! }
}
Index: ConstraintsTagHandler.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/core/jgb/handlers/swing/ConstraintsTagHandler.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** ConstraintsTagHandler.java 27 Jun 2003 16:45:49 -0000 1.9
--- ConstraintsTagHandler.java 14 Jul 2003 21:02:30 -0000 1.10
***************
*** 21,26 ****
--- 21,28 ----
import jgb.builder.TagHandler;
+ import jgb.builder.utils.Constraints;
import org.xml.sax.SAXException;
+ import java.util.HashMap;
import java.util.Map;
***************
*** 39,43 ****
protected void enterElement(Map atts) throws SAXException {
if (atts.containsKey(ATTR_RESET)) {
! tagContext.remove(TagHandler.CURRENT_CONSTRAINTS_KEY);
tagContext.put(EMPTY_KEY, "true");
}
--- 41,46 ----
protected void enterElement(Map atts) throws SAXException {
if (atts.containsKey(ATTR_RESET)) {
! final Map constraintsMap = getCurrentConstraints();
! constraintsMap.remove(getCurrentObject());
tagContext.put(EMPTY_KEY, "true");
}
***************
*** 45,57 ****
public void exitElement() throws SAXException {
if (tagContext.containsKey(EMPTY_KEY)) {
tagContext.remove(EMPTY_KEY);
} else {
! tagContext.put(TagHandler.CURRENT_CONSTRAINTS_KEY,
! tagContext.get(TagHandler.PARAMETER_VALUE_KEY));
}
tagContext.remove(TagHandler.PARAMETER_CLASS_KEY);
tagContext.remove(TagHandler.PARAMETER_VALUE_KEY);
}
}
--- 48,83 ----
public void exitElement() throws SAXException {
+ if (null == getCurrentObject()) {
+ throwParsingException("Parent object is null ! Cannot set constraints...");
+ }
+
+ final Map constraintsMap = getCurrentConstraints();
+
if (tagContext.containsKey(EMPTY_KEY)) {
+ constraintsMap.remove(getCurrentObject());
tagContext.remove(EMPTY_KEY);
} else {
! constraintsMap.put(getCurrentObject(), new Constraints(
! tagContext.get(TagHandler.PARAMETER_VALUE_KEY),
! (Class) tagContext.get(TagHandler.PARAMETER_CLASS_KEY)));
}
tagContext.remove(TagHandler.PARAMETER_CLASS_KEY);
tagContext.remove(TagHandler.PARAMETER_VALUE_KEY);
+ }
+
+ private Map getCurrentConstraints() throws SAXException {
+ final Map constraintsMap;
+ if (tagContext.containsKey(TagHandler.CURRENT_CONSTRAINTS_KEY)) {
+ constraintsMap = (Map) tagContext.get(TagHandler.CURRENT_CONSTRAINTS_KEY);
+ if (null == constraintsMap) {
+ throwParsingException("CURRENT_CONSTRAINTS_KEY was null ! " +
+ "Cannot continue setting constraints.");
+ }
+ } else {
+ constraintsMap = new HashMap();
+ tagContext.put(TagHandler.CURRENT_CONSTRAINTS_KEY, constraintsMap);
+ }
+ return constraintsMap;
}
}
|
|
From: <fb...@us...> - 2003-07-14 21:02:33
|
Update of /cvsroot/jgb/jgb/src/java/examples/jgb/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv31851/src/java/examples/jgb/examples
Modified Files:
WebBrowserEventManager.java
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: WebBrowserEventManager.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/examples/jgb/examples/WebBrowserEventManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** WebBrowserEventManager.java 6 Jun 2003 04:12:45 -0000 1.1
--- WebBrowserEventManager.java 14 Jul 2003 21:02:30 -0000 1.2
***************
*** 6,11 ****
--- 6,15 ----
import javax.swing.event.HyperlinkEvent;
import java.io.IOException;
+ import java.io.FileOutputStream;
+ import java.io.BufferedOutputStream;
+ import java.io.FileNotFoundException;
import java.net.URL;
import java.util.EventObject;
+ import java.beans.XMLEncoder;
public class WebBrowserEventManager {
***************
*** 35,38 ****
--- 39,55 ----
}
});
+ }
+
+ public void dump(EventObject event, WindowContext context) {
+ JComponent comp = (JComponent) context.getObject("webbrowser");
+ try {
+ XMLEncoder encoder = new XMLEncoder(
+ new BufferedOutputStream(new FileOutputStream("out.dump.xml")));
+ encoder.writeObject(comp);
+ encoder.flush();
+ encoder.close();
+ } catch (FileNotFoundException e) {
+ e.printStackTrace(); //To change body of catch statement use Options | File Templates.
+ }
}
|
|
From: <fb...@us...> - 2003-07-14 21:02:33
|
Update of /cvsroot/jgb/jgb/src/java/core/jgb/builder/utils
In directory sc8-pr-cvs1:/tmp/cvs-serv31851/src/java/core/jgb/builder/utils
Added Files:
Constraints.java
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.
--- NEW FILE: Constraints.java ---
package jgb.builder.utils;
public class Constraints {
private final Object value;
private final Class valueClass;
public Constraints(Object value) {
this(value, value.getClass());
}
public Constraints(Object value, Class valueClass) {
this.value = value;
this.valueClass = valueClass;
}
public Object getValue() {
return value;
}
public Class getValueClass() {
return valueClass;
}
}
|
|
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 ----
|
|
From: <fb...@us...> - 2003-07-14 19:17:18
|
Update of /cvsroot/jgb/jgb
In directory sc8-pr-cvs1:/tmp/cvs-serv11799
Modified Files:
build.xml
Log Message:
* build.xml:
Changed next release number.
Index: build.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/build.xml,v
retrieving revision 1.114
retrieving revision 1.115
diff -C2 -d -r1.114 -r1.115
*** build.xml 30 Jun 2003 01:30:36 -0000 1.114
--- build.xml 14 Jul 2003 19:17:15 -0000 1.115
***************
*** 23,27 ****
<property file="build.properties"/>
! <property name="project.version" value="0.6.5a"/>
<property name="javac.debug" value="true"/>
--- 23,27 ----
<property file="build.properties"/>
! <property name="project.version" value="0.6.6a-dev"/>
<property name="javac.debug" value="true"/>
|
|
From: <fb...@us...> - 2003-07-14 18:58:15
|
Update of /cvsroot/jgb/jgb/clover_history
In directory sc8-pr-cvs1:/tmp/cvs-serv7880/clover_history
Added Files:
clover-20030714143312.xml
Log Message:
* clover_history/clover-20030714143312.xml:
More Clover coverage data point.
--- NEW FILE: clover-20030714143312.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<coverage clover="1.2" generated="1058207594216">
<project timestamp="1058207551915">
<metrics packages="5" files="53" classes="56" loc="4831" ncloc="2267" methods="218" elements="1523" statements="983" conditionals="322" coveredmethods="210" coveredelements="1466" coveredstatements="943" coveredconditionals="313"/>
<package name="jgb.builder">
<metrics files="6" classes="6" loc="881" ncloc="281" methods="21" elements="171" statements="118" conditionals="32" coveredmethods="21" coveredelements="170" coveredstatements="117" coveredconditionals="32"/>
<file name="E:\java\jgb\src\java\core\jgb\builder\JgbEntityResolver.java">
<class name="JgbEntityResolver">
<metrics methods="3" elements="19" statements="12" conditionals="4" coveredmethods="3" coveredelements="19" coveredstatements="12" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="61" ncloc="33" methods="3" elements="19" statements="12" conditionals="4" coveredmethods="3" coveredelements="19" coveredstatements="12" coveredconditionals="4"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\TagHandler.java">
<class name="TagHandler">
<metrics methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="347" ncloc="29" methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\WindowContext.java">
<class name="WindowContext">
<metrics methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="25" ncloc="4" methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\Builder.java">
<class name="Builder">
<metrics methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="105" ncloc="18" methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\TagHandlerFactory.java">
<class name="TagHandlerFactory">
<metrics methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="40" ncloc="4" methods="0" elements="0" statements="0" conditionals="0" coveredmethods="0" coveredelements="0" coveredstatements="0" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\DefaultBuilder.java">
<class name="DefaultBuilder">
<metrics methods="18" elements="152" statements="106" conditionals="28" coveredmethods="18" coveredelements="151" coveredstatements="105" coveredconditionals="28"/>
</class>
<metrics classes="1" loc="303" ncloc="193" methods="18" elements="152" statements="106" conditionals="28" coveredmethods="18" coveredelements="151" coveredstatements="105" coveredconditionals="28"/>
</file>
</package>
<package name="jgb">
<metrics files="2" classes="2" loc="332" ncloc="169" methods="13" elements="102" statements="67" conditionals="22" coveredmethods="13" coveredelements="101" coveredstatements="66" coveredconditionals="22"/>
<file name="E:\java\jgb\src\java\core\jgb\ValidateFile.java">
<class name="ValidateFile">
<metrics methods="10" elements="51" statements="35" conditionals="6" coveredmethods="10" coveredelements="50" coveredstatements="34" coveredconditionals="6"/>
</class>
<metrics classes="1" loc="165" ncloc="97" methods="10" elements="51" statements="35" conditionals="6" coveredmethods="10" coveredelements="50" coveredstatements="34" coveredconditionals="6"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\BuildWindowFromXmlFile.java">
<class name="BuildWindowFromXmlFile">
<metrics methods="3" elements="51" statements="32" conditionals="16" coveredmethods="3" coveredelements="51" coveredstatements="32" coveredconditionals="16"/>
</class>
<metrics classes="1" loc="167" ncloc="72" methods="3" elements="51" statements="32" conditionals="16" coveredmethods="3" coveredelements="51" coveredstatements="32" coveredconditionals="16"/>
</file>
</package>
<package name="jgb.factories.swing">
<metrics files="1" classes="1" loc="100" ncloc="41" methods="4" elements="26" statements="18" conditionals="4" coveredmethods="4" coveredelements="25" coveredstatements="17" coveredconditionals="4"/>
<file name="E:\java\jgb\src\java\core\jgb\factories\swing\PackageTagHandlerFactory.java">
<class name="PackageTagHandlerFactory">
<metrics methods="4" elements="26" statements="18" conditionals="4" coveredmethods="4" coveredelements="25" coveredstatements="17" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="100" ncloc="41" methods="4" elements="26" statements="18" conditionals="4" coveredmethods="4" coveredelements="25" coveredstatements="17" coveredconditionals="4"/>
</file>
</package>
<package name="jgb.builder.utils">
<metrics files="6" classes="8" loc="588" ncloc="342" methods="51" elements="255" statements="148" conditionals="56" coveredmethods="50" coveredelements="244" coveredstatements="140" coveredconditionals="54"/>
<file name="E:\java\jgb\src\java\core\jgb\builder\utils\MethodCall.java">
<class name="MethodCall">
<metrics methods="9" elements="69" statements="42" conditionals="18" coveredmethods="9" coveredelements="65" coveredstatements="38" coveredconditionals="18"/>
</class>
<metrics classes="1" loc="134" ncloc="88" methods="9" elements="69" statements="42" conditionals="18" coveredmethods="9" coveredelements="65" coveredstatements="38" coveredconditionals="18"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\utils\KeyStrokeParser.java">
<class name="KeyStrokeParser">
<metrics methods="1" elements="32" statements="19" conditionals="12" coveredmethods="1" coveredelements="30" coveredstatements="18" coveredconditionals="11"/>
</class>
<metrics classes="1" loc="73" ncloc="31" methods="1" elements="32" statements="19" conditionals="12" coveredmethods="1" coveredelements="30" coveredstatements="18" coveredconditionals="11"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\utils\AttributesMapAdapter.java">
<class name="AttributesMapAdapter">
<metrics methods="14" elements="34" statements="18" conditionals="2" coveredmethods="14" coveredelements="34" coveredstatements="18" coveredconditionals="2"/>
</class>
<class name="AttributesMapAdapter.MapEntry">
<metrics methods="6" elements="19" statements="11" conditionals="2" coveredmethods="6" coveredelements="19" coveredstatements="11" coveredconditionals="2"/>
</class>
<metrics classes="2" loc="134" ncloc="85" methods="20" elements="53" statements="29" conditionals="4" coveredmethods="20" coveredelements="53" coveredstatements="29" coveredconditionals="4"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\utils\ParametersAccumulator.java">
<class name="ParametersAccumulator">
<metrics methods="7" elements="34" statements="19" conditionals="8" coveredmethods="6" coveredelements="30" coveredstatements="17" coveredconditionals="7"/>
</class>
<metrics classes="1" loc="80" ncloc="44" methods="7" elements="34" statements="19" conditionals="8" coveredmethods="6" coveredelements="30" coveredstatements="17" coveredconditionals="7"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\utils\ConstructorCall.java">
<class name="ConstructorCall">
<metrics methods="3" elements="35" statements="22" conditionals="10" coveredmethods="3" coveredelements="34" coveredstatements="21" coveredconditionals="10"/>
</class>
<metrics classes="1" loc="77" ncloc="42" methods="3" elements="35" statements="22" conditionals="10" coveredmethods="3" coveredelements="34" coveredstatements="21" coveredconditionals="10"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\builder\utils\CurrentObjectsStackManager.java">
<class name="CurrentObjectsStackManager">
<metrics methods="8" elements="25" statements="13" conditionals="4" coveredmethods="8" coveredelements="25" coveredstatements="13" coveredconditionals="4"/>
</class>
<class name="CurrentObjectsStackManager.CurrentObject">
<metrics methods="3" elements="7" statements="4" conditionals="0" coveredmethods="3" coveredelements="7" coveredstatements="4" coveredconditionals="0"/>
</class>
<metrics classes="2" loc="90" ncloc="52" methods="11" elements="32" statements="17" conditionals="4" coveredmethods="11" coveredelements="32" coveredstatements="17" coveredconditionals="4"/>
</file>
</package>
<package name="jgb.handlers.swing">
<metrics files="38" classes="39" loc="2930" ncloc="1434" methods="129" elements="969" statements="632" conditionals="208" coveredmethods="122" coveredelements="926" coveredstatements="603" coveredconditionals="201"/>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\PanelTagHandler.java">
<class name="PanelTagHandler">
<metrics methods="4" elements="52" statements="40" conditionals="8" coveredmethods="4" coveredelements="50" coveredstatements="38" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="137" ncloc="81" methods="4" elements="52" statements="40" conditionals="8" coveredmethods="4" coveredelements="50" coveredstatements="38" coveredconditionals="8"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ParameterTagHandler.java">
<class name="ParameterTagHandler">
<metrics methods="2" elements="12" statements="8" conditionals="2" coveredmethods="2" coveredelements="12" coveredstatements="8" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="56" ncloc="21" methods="2" elements="12" statements="8" conditionals="2" coveredmethods="2" coveredelements="12" coveredstatements="8" coveredconditionals="2"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ControlTagHandler.java">
<class name="ControlTagHandler">
<metrics methods="4" elements="29" statements="19" conditionals="6" coveredmethods="4" coveredelements="27" coveredstatements="18" coveredconditionals="5"/>
</class>
<metrics classes="1" loc="76" ncloc="40" methods="4" elements="29" statements="19" conditionals="6" coveredmethods="4" coveredelements="27" coveredstatements="18" coveredconditionals="5"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ConstructorTagHandler.java">
<class name="ConstructorTagHandler">
<metrics methods="2" elements="14" statements="12" conditionals="0" coveredmethods="2" coveredelements="14" coveredstatements="12" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="57" ncloc="25" methods="2" elements="14" statements="12" conditionals="0" coveredmethods="2" coveredelements="14" coveredstatements="12" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ButtonTagHandler.java">
<class name="ButtonTagHandler">
<metrics methods="3" elements="24" statements="13" conditionals="8" coveredmethods="2" coveredelements="22" coveredstatements="12" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="59" ncloc="29" methods="3" elements="24" statements="13" conditionals="8" coveredmethods="2" coveredelements="22" coveredstatements="12" coveredconditionals="8"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ConstraintsTagHandler.java">
<class name="ConstraintsTagHandler">
<metrics methods="2" elements="14" statements="8" conditionals="4" coveredmethods="2" coveredelements="14" coveredstatements="8" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="58" ncloc="24" methods="2" elements="14" statements="8" conditionals="4" coveredmethods="2" coveredelements="14" coveredstatements="8" coveredconditionals="4"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\GlueTagHandler.java">
<class name="GlueTagHandler">
<metrics methods="3" elements="18" statements="11" conditionals="4" coveredmethods="3" coveredelements="18" coveredstatements="11" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="74" ncloc="31" methods="3" elements="18" statements="11" conditionals="4" coveredmethods="3" coveredelements="18" coveredstatements="11" coveredconditionals="4"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\AbstractControlTagHandler.java">
<class name="AbstractControlTagHandler">
<metrics methods="8" elements="39" statements="23" conditionals="8" coveredmethods="8" coveredelements="39" coveredstatements="23" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="186" ncloc="59" methods="8" elements="39" statements="23" conditionals="8" coveredmethods="8" coveredelements="39" coveredstatements="23" coveredconditionals="8"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\MenuBarTagHandler.java">
<class name="MenuBarTagHandler">
<metrics methods="3" elements="13" statements="8" conditionals="2" coveredmethods="3" coveredelements="13" coveredstatements="8" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="57" ncloc="21" methods="3" elements="13" statements="8" conditionals="2" coveredmethods="3" coveredelements="13" coveredstatements="8" coveredconditionals="2"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ConstantTagHandler.java">
<class name="ConstantTagHandler">
<metrics methods="5" elements="32" statements="23" conditionals="4" coveredmethods="5" coveredelements="32" coveredstatements="23" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="98" ncloc="49" methods="5" elements="32" statements="23" conditionals="4" coveredmethods="5" coveredelements="32" coveredstatements="23" coveredconditionals="4"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\GridbagTagHandler.java">
<class name="GridbagTagHandler">
<metrics methods="5" elements="84" statements="63" conditionals="16" coveredmethods="5" coveredelements="71" coveredstatements="51" coveredconditionals="15"/>
</class>
<metrics classes="1" loc="165" ncloc="122" methods="5" elements="84" statements="63" conditionals="16" coveredmethods="5" coveredelements="71" coveredstatements="51" coveredconditionals="15"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\BorderTagHandler.java">
<class name="BorderTagHandler">
<metrics methods="3" elements="7" statements="4" conditionals="0" coveredmethods="3" coveredelements="7" coveredstatements="4" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="43" ncloc="17" methods="3" elements="7" statements="4" conditionals="0" coveredmethods="3" coveredelements="7" coveredstatements="4" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\MenuTagHandler.java">
<class name="MenuTagHandler">
<metrics methods="3" elements="16" statements="9" conditionals="4" coveredmethods="3" coveredelements="16" coveredstatements="9" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="53" ncloc="23" methods="3" elements="16" statements="9" conditionals="4" coveredmethods="3" coveredelements="16" coveredstatements="9" coveredconditionals="4"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ControlsTagHandler.java">
<class name="ControlsTagHandler">
<metrics methods="2" elements="22" statements="14" conditionals="6" coveredmethods="2" coveredelements="22" coveredstatements="14" coveredconditionals="6"/>
</class>
<metrics classes="1" loc="61" ncloc="31" methods="2" elements="22" statements="14" conditionals="6" coveredmethods="2" coveredelements="22" coveredstatements="14" coveredconditionals="6"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\WindowsTagHandler.java">
<class name="WindowsTagHandler">
<metrics methods="2" elements="2" statements="0" conditionals="0" coveredmethods="2" coveredelements="2" coveredstatements="0" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="38" ncloc="9" methods="2" elements="2" statements="0" conditionals="0" coveredmethods="2" coveredelements="2" coveredstatements="0" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ScrollableTagHandler.java">
<class name="ScrollableTagHandler">
<metrics methods="3" elements="14" statements="9" conditionals="2" coveredmethods="3" coveredelements="14" coveredstatements="9" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="31" ncloc="23" methods="3" elements="14" statements="9" conditionals="2" coveredmethods="3" coveredelements="14" coveredstatements="9" coveredconditionals="2"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\CheckTagHandler.java">
<class name="CheckTagHandler">
<metrics methods="3" elements="29" statements="16" conditionals="10" coveredmethods="2" coveredelements="27" coveredstatements="15" coveredconditionals="10"/>
</class>
<metrics classes="1" loc="66" ncloc="33" methods="3" elements="29" statements="16" conditionals="10" coveredmethods="2" coveredelements="27" coveredstatements="15" coveredconditionals="10"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\AbstractTagHandler.java">
<class name="AbstractTagHandler">
<metrics methods="16" elements="72" statements="48" conditionals="8" coveredmethods="16" coveredelements="69" coveredstatements="45" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="211" ncloc="111" methods="16" elements="72" statements="48" conditionals="8" coveredmethods="16" coveredelements="69" coveredstatements="45" coveredconditionals="8"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\RefTagHandler.java">
<class name="RefTagHandler">
<metrics methods="2" elements="6" statements="4" conditionals="0" coveredmethods="2" coveredelements="6" coveredstatements="4" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="43" ncloc="14" methods="2" elements="6" statements="4" conditionals="0" coveredmethods="2" coveredelements="6" coveredstatements="4" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\TabTagHandler.java">
<class name="TabTagHandler">
<metrics methods="1" elements="12" statements="9" conditionals="2" coveredmethods="1" coveredelements="12" coveredstatements="9" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="49" ncloc="21" methods="1" elements="12" statements="9" conditionals="2" coveredmethods="1" coveredelements="12" coveredstatements="9" coveredconditionals="2"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ItemTagHandler.java">
<class name="ItemTagHandler">
<metrics methods="3" elements="52" statements="29" conditionals="20" coveredmethods="2" coveredelements="49" coveredstatements="28" coveredconditionals="19"/>
</class>
<metrics classes="1" loc="110" ncloc="59" methods="3" elements="52" statements="29" conditionals="20" coveredmethods="2" coveredelements="49" coveredstatements="28" coveredconditionals="19"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\LayoutTagHandler.java">
<class name="LayoutTagHandler">
<metrics methods="3" elements="15" statements="12" conditionals="0" coveredmethods="3" coveredelements="15" coveredstatements="12" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="61" ncloc="28" methods="3" elements="15" statements="12" conditionals="0" coveredmethods="3" coveredelements="15" coveredstatements="12" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ObjectTagHandler.java">
<class name="ObjectTagHandler">
<metrics methods="3" elements="14" statements="11" conditionals="0" coveredmethods="3" coveredelements="13" coveredstatements="10" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="59" ncloc="26" methods="3" elements="14" statements="11" conditionals="0" coveredmethods="3" coveredelements="13" coveredstatements="10" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\WindowTagHandler.java">
<class name="WindowTagHandler">
<metrics methods="2" elements="22" statements="14" conditionals="6" coveredmethods="2" coveredelements="20" coveredstatements="14" coveredconditionals="4"/>
</class>
<metrics classes="1" loc="78" ncloc="31" methods="2" elements="22" statements="14" conditionals="6" coveredmethods="2" coveredelements="20" coveredstatements="14" coveredconditionals="4"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\RegisterTagHandler.java">
<class name="RegisterTagHandler">
<metrics methods="2" elements="29" statements="25" conditionals="2" coveredmethods="2" coveredelements="29" coveredstatements="25" coveredconditionals="2"/>
</class>
<class name="RegisterTagHandler.EventReflector">
<metrics methods="2" elements="11" statements="7" conditionals="2" coveredmethods="2" coveredelements="11" coveredstatements="7" coveredconditionals="2"/>
</class>
<metrics classes="2" loc="122" ncloc="90" methods="4" elements="40" statements="32" conditionals="4" coveredmethods="4" coveredelements="40" coveredstatements="32" coveredconditionals="4"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\NullTagHandler.java">
<class name="NullTagHandler">
<metrics methods="2" elements="7" statements="5" conditionals="0" coveredmethods="2" coveredelements="7" coveredstatements="5" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="42" ncloc="17" methods="2" elements="7" statements="5" conditionals="0" coveredmethods="2" coveredelements="7" coveredstatements="5" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ReturnTagHandler.java">
<class name="ReturnTagHandler">
<metrics methods="2" elements="6" statements="4" conditionals="0" coveredmethods="2" coveredelements="6" coveredstatements="4" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="45" ncloc="16" methods="2" elements="6" statements="4" conditionals="0" coveredmethods="2" coveredelements="6" coveredstatements="4" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ComboTagHandler.java">
<class name="ComboTagHandler">
<metrics methods="3" elements="37" statements="22" conditionals="12" coveredmethods="2" coveredelements="34" coveredstatements="21" coveredconditionals="11"/>
</class>
<metrics classes="1" loc="79" ncloc="44" methods="3" elements="37" statements="22" conditionals="12" coveredmethods="2" coveredelements="34" coveredstatements="21" coveredconditionals="11"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\SheetTagHandler.java">
<class name="SheetTagHandler">
<metrics methods="3" elements="24" statements="13" conditionals="8" coveredmethods="3" coveredelements="24" coveredstatements="13" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="56" ncloc="29" methods="3" elements="24" statements="13" conditionals="8" coveredmethods="3" coveredelements="24" coveredstatements="13" coveredconditionals="8"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\ValueTagHandler.java">
<class name="ValueTagHandler">
<metrics methods="2" elements="41" statements="21" conditionals="18" coveredmethods="2" coveredelements="39" coveredstatements="20" coveredconditionals="17"/>
</class>
<metrics classes="1" loc="117" ncloc="43" methods="2" elements="41" statements="21" conditionals="18" coveredmethods="2" coveredelements="39" coveredstatements="20" coveredconditionals="17"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\StrutTagHandler.java">
<class name="StrutTagHandler">
<metrics methods="3" elements="27" statements="18" conditionals="6" coveredmethods="3" coveredelements="27" coveredstatements="18" coveredconditionals="6"/>
</class>
<metrics classes="1" loc="76" ncloc="36" methods="3" elements="27" statements="18" conditionals="6" coveredmethods="3" coveredelements="27" coveredstatements="18" coveredconditionals="6"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\TextfieldTagHandler.java">
<class name="TextfieldTagHandler">
<metrics methods="3" elements="43" statements="24" conditionals="16" coveredmethods="2" coveredelements="41" coveredstatements="23" coveredconditionals="16"/>
</class>
<metrics classes="1" loc="86" ncloc="47" methods="3" elements="43" statements="24" conditionals="16" coveredmethods="2" coveredelements="41" coveredstatements="23" coveredconditionals="16"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\MethodCallTagHandler.java">
<class name="MethodCallTagHandler">
<metrics methods="7" elements="35" statements="26" conditionals="2" coveredmethods="7" coveredelements="33" coveredstatements="24" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="95" ncloc="56" methods="7" elements="35" statements="26" conditionals="2" coveredmethods="7" coveredelements="33" coveredstatements="24" coveredconditionals="2"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\AbstractValueTagHandler.java">
<class name="AbstractValueTagHandler">
<metrics methods="1" elements="3" statements="2" conditionals="0" coveredmethods="1" coveredelements="3" coveredstatements="2" coveredconditionals="0"/>
</class>
<metrics classes="1" loc="33" ncloc="7" methods="1" elements="3" statements="2" conditionals="0" coveredmethods="1" coveredelements="3" coveredstatements="2" coveredconditionals="0"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\SeparatorTagHandler.java">
<class name="SeparatorTagHandler">
<metrics methods="3" elements="13" statements="8" conditionals="2" coveredmethods="3" coveredelements="13" coveredstatements="8" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="51" ncloc="21" methods="3" elements="13" statements="8" conditionals="2" coveredmethods="3" coveredelements="13" coveredstatements="8" coveredconditionals="2"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\LabelTagHandler.java">
<class name="LabelTagHandler">
<metrics methods="3" elements="24" statements="13" conditionals="8" coveredmethods="2" coveredelements="22" coveredstatements="12" coveredconditionals="8"/>
</class>
<metrics classes="1" loc="58" ncloc="29" methods="3" elements="24" statements="13" conditionals="8" coveredmethods="2" coveredelements="22" coveredstatements="12" coveredconditionals="8"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\PropertyTagHandler.java">
<class name="PropertyTagHandler">
<metrics methods="3" elements="23" statements="18" conditionals="2" coveredmethods="3" coveredelements="23" coveredstatements="18" coveredconditionals="2"/>
</class>
<metrics classes="1" loc="73" ncloc="34" methods="3" elements="23" statements="18" conditionals="2" coveredmethods="3" coveredelements="23" coveredstatements="18" coveredconditionals="2"/>
</file>
<file name="E:\java\jgb\src\java\core\jgb\handlers\swing\RadioTagHandler.java">
<class name="RadioTagHandler">
<metrics methods="3" elements="32" statements="19" conditionals="10" coveredmethods="2" coveredelements="30" coveredstatements="18" coveredconditionals="10"/>
</class>
<metrics classes="1" loc="71" ncloc="37" methods="3" elements="32" statements="19" conditionals="10" coveredmethods="2" coveredelements="30" coveredstatements="18" coveredconditionals="10"/>
</file>
</package>
</project>
</coverage>
|
|
From: <fb...@us...> - 2003-07-14 18:56:49
|
Update of /cvsroot/jgb/jgb/src/java/core/jgb/handlers/swing
In directory sc8-pr-cvs1:/tmp/cvs-serv7480/src/java/core/jgb/handlers/swing
Added Files:
ScrollableTagHandler.java
Log Message:
* src/examples/webbrowser.xml:
Changed scrolling part to use new scrollable element.
* src/java/tests/jgb/handlers/swing/AllTests.java:
Referenced new test case for ScrollableTagHandler.
* src/java/tests/jgb/handlers/swing/TestScrollableTagHandler.java:
Created basic implementation. Support only three properties:
id, vsb_policy, hsb_policy.
* src/java/core/jgb/handlers/swing/ScrollableTagHandler.java:
Implemented tests.
--- NEW FILE: ScrollableTagHandler.java ---
package jgb.handlers.swing;
import org.xml.sax.SAXException;
import javax.swing.*;
import java.util.Map;
import java.awt.*;
public class ScrollableTagHandler extends AbstractControlTagHandler {
protected void enterElement(Map atts) throws SAXException {
final Container c = (Container) getCurrentControl();
final JViewport viewport = new JViewport();
pushCurrentControl(viewport);
final JScrollPane pane = new JScrollPane(viewport);
c.add(pane, getCurrentConstraints());
if (atts.containsKey(AbstractTagHandler.ATTR_ID)) {
putComponent((String) atts.get(AbstractTagHandler.ATTR_ID), pane);
}
}
protected void exitElement() throws SAXException {
popCurrentControl();
}
protected String getDefaultPackagePrefix() {
throw new IllegalStateException();
}
}
|
|
From: <fb...@us...> - 2003-07-14 18:56:49
|
Update of /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing
In directory sc8-pr-cvs1:/tmp/cvs-serv7480/src/java/tests/jgb/handlers/swing
Modified Files:
AllTests.java
Added Files:
TestScrollableTagHandler.java
Log Message:
* src/examples/webbrowser.xml:
Changed scrolling part to use new scrollable element.
* src/java/tests/jgb/handlers/swing/AllTests.java:
Referenced new test case for ScrollableTagHandler.
* src/java/tests/jgb/handlers/swing/TestScrollableTagHandler.java:
Created basic implementation. Support only three properties:
id, vsb_policy, hsb_policy.
* src/java/core/jgb/handlers/swing/ScrollableTagHandler.java:
Implemented tests.
--- NEW FILE: TestScrollableTagHandler.java ---
package jgb.handlers.swing;
import jgb.handlers.TagHandlerAbstractTest;
import jgb.builder.TagHandler;
import org.xml.sax.SAXException;
import javax.swing.*;
public class TestScrollableTagHandler extends TagHandlerAbstractTest {
private JPanel parentPanel;
public TestScrollableTagHandler(String s) {
super(s);
}
protected void setUp() throws Exception {
super.setUp();
parentPanel = new JPanel();
stackManager.pushCurrentObject(parentPanel);
}
public void testStartElement() throws SAXException {
int oldStackSize = stackManager.size();
handler.startElement("scrollable", context, atts);
assertTrue("Added a JScrollPane as a child of the current Container",
parentPanel.getComponent(0) instanceof JScrollPane);
assertEquals("Added JViewport to current objects stack",
1 + oldStackSize, stackManager.size());
assertTrue("current object is a JViewport so we can add to it",
stackManager.getCurrentObject() instanceof JViewport);
assertNotNull(stackManager.getCurrentObject());
assertNotNull(parentPanel.getComponent(0));
}
public void testStartElement_Id() throws SAXException {
atts.put("id", "object0");
int oldStackSize = stackManager.size();
handler.startElement("scrollable", context, atts);
assertEquals("Added JScollPane and JViewport to current objects stack",
1 + oldStackSize, stackManager.size());
assertTrue(objectsMap.containsKey("object0"));
assertTrue(objectsMap.get("object0") instanceof JScrollPane);
assertTrue(stackManager.getCurrentObject() instanceof JViewport);
}
public void testEndElement_PopsCurrentControl() throws SAXException {
stackManager.pushCurrentObject(new Object());
int oldStackSize = stackManager.size();
handler.endElement("scrollable", context);
assertEquals(oldStackSize - 1, stackManager.size());
}
public void testDefaultPackageThrowsException() {
try {
((ScrollableTagHandler) handler).getDefaultPackagePrefix();
fail("Failed to throw IllegalStateException");
} catch (IllegalStateException success) {
}
}
protected TagHandler createHandler() {
return new ScrollableTagHandler();
}
}
Index: AllTests.java
===================================================================
RCS file: /cvsroot/jgb/jgb/src/java/tests/jgb/handlers/swing/AllTests.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** AllTests.java 27 Jun 2003 16:45:50 -0000 1.35
--- AllTests.java 14 Jul 2003 18:56:46 -0000 1.36
***************
*** 27,30 ****
--- 27,31 ----
TestSuite suite = new TestSuite();
+ suite.addTestSuite(TestScrollableTagHandler.class);
suite.addTestSuite(TestNullTagHandler.class);
suite.addTestSuite(TestRegisterTagHandler.class);
|
|
From: <fb...@us...> - 2003-07-14 18:56:48
|
Update of /cvsroot/jgb/jgb/src/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv7480/src/examples
Modified Files:
webbrowser.xml
Log Message:
* src/examples/webbrowser.xml:
Changed scrolling part to use new scrollable element.
* src/java/tests/jgb/handlers/swing/AllTests.java:
Referenced new test case for ScrollableTagHandler.
* src/java/tests/jgb/handlers/swing/TestScrollableTagHandler.java:
Created basic implementation. Support only three properties:
id, vsb_policy, hsb_policy.
* src/java/core/jgb/handlers/swing/ScrollableTagHandler.java:
Implemented tests.
Index: webbrowser.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/examples/webbrowser.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** webbrowser.xml 27 Jun 2003 16:45:48 -0000 1.5
--- webbrowser.xml 14 Jul 2003 18:56:45 -0000 1.6
***************
*** 28,42 ****
</object>
- <object id="view" class="javax.swing.JEditorPane">
- <constructor/>
- <property name="editable"><value type="boolean" data="false"/></property>
- <property name="page">
- <value type="string"
- data="http://sourceforge.net/projects/jgb/"/>
- </property>
- <register class="javax.swing.event.HyperlinkListener" event="hyperlinkUpdate"
- manager="eventManager" method="hyperlinkUpdate"/>
- </object>
-
<object id="window.size" class="java.awt.Dimension">
<constructor>
--- 28,31 ----
***************
*** 99,105 ****
gridx="0" gridy="0" insets="2" weightx="1.0" weighty="1.0"/>
</constraints>
! <control class="javax.swing.JScrollPane">
! <property name="viewportView"><ref refid="view"/></property>
! </control>
</panel>
</controls>
--- 88,106 ----
gridx="0" gridy="0" insets="2" weightx="1.0" weighty="1.0"/>
</constraints>
! <scrollable>
! <constraints reset="true"/>
! <control id="view" class="javax.swing.JEditorPane">
! <property name="editable">
! <value type="boolean" data="false"/>
! </property>
! <property name="page">
! <value type="string"
! data="http://sourceforge.net/projects/jgb/"/>
! </property>
! <register class="javax.swing.event.HyperlinkListener"
! event="hyperlinkUpdate" manager="eventManager"
! method="hyperlinkUpdate"/>
! </control>
! </scrollable>
</panel>
</controls>
|
|
From: <fb...@us...> - 2003-07-14 18:55:13
|
Update of /cvsroot/jgb/jgb/src/dtd
In directory sc8-pr-cvs1:/tmp/cvs-serv7275/src/dtd
Modified Files:
dtd.xml
Log Message:
* src/dtd/dtd.xml:
Corrected problem with scrollable definition which prevented resetting
constraints.
Index: dtd.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/dtd/dtd.xml,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** dtd.xml 14 Jul 2003 18:03:12 -0000 1.27
--- dtd.xml 14 Jul 2003 18:55:10 -0000 1.28
***************
*** 2626,2630 ****
</attributes>
<children>
! <refgroup refgroup="child-group" repeat="once" type="sequence"/>
</children>
<example>
--- 2626,2630 ----
</attributes>
<children>
! <refgroup refgroup="child-group" repeat="oneormore" type="alternation"/>
</children>
<example>
***************
*** 2637,2641 ****
the scroll pane and the text field itself, using the appropriate IDs.
-->
! <<tag refelement="scrollable"/> <attr refattr="scrollable.id"/>="comments_scroller" <attr refattr="scrollable.vsb_policy"/>="always" <attr refattr="scrollable.hsb_policy"/>="as needed">
<
<tag refelement="textfield"/> <attr refattr="textfield.id"/>="comments_field" <attr refattr="textfield.columns"/>="80" <attr refattr="textfield.rows"/>="20">
--- 2637,2641 ----
the scroll pane and the text field itself, using the appropriate IDs.
-->
! <<tag refelement="scrollable"/> <attr refattr="scrollable.id"/>="comments_scroller" <attr refattr="scrollable.vsb_policy"/>="always" <attr refattr="scrollable.hsb_policy"/>="as_needed">
<
<tag refelement="textfield"/> <attr refattr="textfield.id"/>="comments_field" <attr refattr="textfield.columns"/>="80" <attr refattr="textfield.rows"/>="20">
|
|
From: <fb...@us...> - 2003-07-14 18:03:15
|
Update of /cvsroot/jgb/jgb/src/dtd
In directory sc8-pr-cvs1:/tmp/cvs-serv26304/src/dtd
Modified Files:
dtd.xml
Log Message:
* src/dtd/dtd.xml:
Added documentation about new scrollable element which will be
implemented shortly.
Index: dtd.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/dtd/dtd.xml,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** dtd.xml 11 Jul 2003 15:10:09 -0000 1.26
--- dtd.xml 14 Jul 2003 18:03:12 -0000 1.27
***************
*** 136,139 ****
--- 136,140 ----
<child repeat="once">list</child>
<child repeat="once">sheet</child>
+ <child repeat="once">scrollable</child>
<refgroup refgroup="external-calls-group" type="alternation" repeat="once"/>
</childgroup>
***************
*** 2531,2534 ****
--- 2532,2655 ----
<<tag refelement="null"/> <attr refattr="null.class"/>="java.lang.String">
</property>
+ &ellipsis;
+ </example>
+ </element>
+ <element id="scrollable" group="group-control">
+ <name>scrollable</name>
+ <description>
+ <p>
+ Modifies the first enclosing element by adding a scrollable
+ area around the control.
+ </p>
+ <p>
+ <see href="http://java.sun.com/j2se/1.3/docs/api/javax/swing/ScrollPaneConstants.html">ScrollPaneConstants</see>
+ interface for more information about the valid values of the
+ <attr refattr="scrollable.vsb_policy"/> and <attr refattr="scrollable.hsb_policy"/>
+ attributes.
+ </p>
+ </description>
+ <attributes>
+ <refattribute refid="default.id" id="scrollable.id" required="false"/>
+ <attribute id="scrollable.vsb_policy" required="false">
+ <name>vsb_policy</name>
+ <description>
+ <p>
+ Determines the <em>Vertical Scroll Bar policy</em>,
+ or when to show a vertical scroll bar.
+ </p>
+ </description>
+ <values>
+ <value id="scrollable.vsb_policy.always">
+ <literal>always</literal>
+ <description>
+ <p>
+ Always show a vertical scrollbar.
+ </p>
+ </description>
+ </value>
+ <value id="scrollable.vsb_policy.as_needed" default="true">
+ <literal>as_needed</literal>
+ <description>
+ <p>
+ Show a vertical scrollbar if the view's height
+ is larger than the available display height.
+ </p>
+ </description>
+ </value>
+ <value id="scrollable.vsb_policy.never">
+ <literal>never</literal>
+ <description>
+ <p>
+ Never show a vertical scrollbar.
+ </p>
+ </description>
+ </value>
+ </values>
+ </attribute>
+ <attribute id="scrollable.hsb_policy" required="false">
+ <name>hsb_policy</name>
+ <description>
+ <p>
+ Determines the
+ <em>Horizontal Scroll Bar policy</em>,
+ or when to show a horizontal scroll bar.
+ </p>
+ </description>
+ <values>
+ <value id="scrollable.hsb_policy.always">
+ <literal>always</literal>
+ <description>
+ <p>
+ Always show a horizontal scrollbar.
+ </p>
+ </description>
+ </value>
+ <value id="scrollable.hsb_policy.as_needed" default="true">
+ <literal>as_needed</literal>
+ <description>
+ <p>
+ Show a horizontal scrollbar if the view's width
+ is larger than the available display width.
+ </p>
+ </description>
+ </value>
+ <value id="scrollable.hsb_policy.never">
+ <literal>never</literal>
+ <description>
+ <p>
+ Never show a horizontal scrollbar.
+ </p>
+ </description>
+ </value>
+ </values>
+ </attribute>
+ </attributes>
+ <children>
+ <refgroup refgroup="child-group" repeat="once" type="sequence"/>
+ </children>
+ <example>
+ &ellipsis;
+ <!--
+ Add a text field that is 80 caracters wide by 20 lines high. Add it in
+ a scrollable region, so that it does not use all of the available space.
+
+ Using the definitions here, it will be possible to individually address
+ the scroll pane and the text field itself, using the appropriate IDs.
+ -->
+ <<tag refelement="scrollable"/> <attr refattr="scrollable.id"/>="comments_scroller" <attr refattr="scrollable.vsb_policy"/>="always" <attr refattr="scrollable.hsb_policy"/>="as needed">
+ <
+ <tag refelement="textfield"/> <attr refattr="textfield.id"/>="comments_field" <attr refattr="textfield.columns"/>="80" <attr refattr="textfield.rows"/>="20">
+ &ellipsis;
+ </textfield>
+ </scrollable>
+ &ellipsis;
+
+ <!--
+ Here, we set the columnHeaderView property of the scroll pane itself.
+ -->
+ <<tag refelement="property"/> <attr refattr="property.refid"/>="comments_scroller" <attr refattr="property.name"/>="columnHeaderView">
+ <<tag refelement="ref"/> <attr refattr="ref.refid"/>="&ellipsis;"/>
+ </property>
+
&ellipsis;
</example>
|
|
From: <fb...@us...> - 2003-07-11 15:14:59
|
Update of /cvsroot/jgb/jgb/src/xdocs/template
In directory sc8-pr-cvs1:/tmp/cvs-serv31364/src/xdocs/template
Modified Files:
elemdocs.xsl
Log Message:
* src/xdocs/template/elemdocs.xsl:
Added IDs to all main header elements (examples, attributes, parents,
children).
Index: elemdocs.xsl
===================================================================
RCS file: /cvsroot/jgb/jgb/src/xdocs/template/elemdocs.xsl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** elemdocs.xsl 2 Jul 2003 16:18:40 -0000 1.11
--- elemdocs.xsl 11 Jul 2003 15:14:56 -0000 1.12
***************
*** 180,184 ****
<xsl:template match="children">
! <h2>Parent element(s)</h2>
<div>
<xsl:variable name="refid" select="ancestor::element/attribute::id"/>
--- 180,184 ----
<xsl:template match="children">
! <h2 id="parents">Parent element(s)</h2>
<div>
<xsl:variable name="refid" select="ancestor::element/attribute::id"/>
***************
*** 213,217 ****
</div>
! <h2>Child element(s)</h2>
<div>
<xsl:choose>
--- 213,217 ----
</div>
! <h2 id="children">Child element(s)</h2>
<div>
<xsl:choose>
***************
*** 253,262 ****
<xsl:template match="attributes[count(attribute) = 0]">
! <h2>Attributes</h2>
<em>None</em>
</xsl:template>
<xsl:template match="attributes[count(attribute) > 0]">
! <h2>Attributes</h2>
<table id="xmlAttributes" border="1" cellspacing="0" cellpadding="2">
<thead>
--- 253,262 ----
<xsl:template match="attributes[count(attribute) = 0]">
! <h2 id="attributes">Attributes</h2>
<em>None</em>
</xsl:template>
<xsl:template match="attributes[count(attribute) > 0]">
! <h2 id="attributes">Attributes</h2>
<table id="xmlAttributes" border="1" cellspacing="0" cellpadding="2">
<thead>
***************
*** 336,340 ****
<xsl:template match="example">
! <h2>Example usage</h2>
<pre class="xmlCode"><xsl:apply-templates/></pre>
</xsl:template>
--- 336,340 ----
<xsl:template match="example">
! <h2 id="example">Example usage</h2>
<pre class="xmlCode"><xsl:apply-templates/></pre>
</xsl:template>
|
|
From: <fb...@us...> - 2003-07-11 15:13:42
|
Update of /cvsroot/jgb/jgb/src/xdocs/html/documentation/limitations
In directory sc8-pr-cvs1:/tmp/cvs-serv31152/src/xdocs/html/documentation/limitations
Modified Files:
index.xml
Log Message:
* src/xdocs/html/documentation/limitations/index.xml:
Corrected forward reference example which had links to the same element
instead of each element.
Index: index.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/xdocs/html/documentation/limitations/index.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** index.xml 27 Jun 2003 16:45:52 -0000 1.6
--- index.xml 11 Jul 2003 15:13:38 -0000 1.7
***************
*** 35,44 ****
<pre class="xmlCode">
...
! <<a href="../elements/control/index.html">control</a> <a href="../elements/control/index.html#attr-class">class</a>="JLabel">
! <<a href="../elements/control/index.html">property</a> <a href="../elements/control/index.html#attr-name">name</a>="labelFor">
! <<a href="../elements/control/index.html">ref</a> <a href="../elements/control/index.html#attr-refid">refid</a>="textField" />
! <a href="../elements/control/index.html"></property></a>
! <a href="../elements/control/index.html"></control></a>
! <<a href="../elements/control/index.html">control</a> <a href="../elements/control/index.html#attr-id">id</a>="textField" <a href="../elements/control/index.html#attr-class">class</a>="JTextField" />
...</pre>
<p>
--- 35,44 ----
<pre class="xmlCode">
...
! <<a href="../elements/control/index.html">control</a> <a href="../elements/control/index.html#control.class">class</a>="JLabel">
! <<a href="../elements/property/index.html">property</a> <a href="../elements/property/index.html#property.name">name</a>="labelFor">
! <<a href="../elements/ref/index.html">ref</a> <a href="../elements/ref/index.html#ref.refid">refid</a>="textField" />
! </property>
! </control>
! <<a href="../elements/control/index.html">control</a> <a href="../elements/control/index.html#control.id">id</a>="textField" <a href="../elements/control/index.html#control.class">class</a>="JTextField" />
...</pre>
<p>
***************
*** 54,58 ****
I have found a way to partially circumvent this limitation.
The example above would not work, but a
! <a href="../elements/control/index.html#attr-reflabel">reflabel</a>
attribute was added to
<a href="../elements/control/index.html">control</a>,
--- 54,58 ----
I have found a way to partially circumvent this limitation.
The example above would not work, but a
! <a href="../elements/control/index.html#control.reflabel">reflabel</a>
attribute was added to
<a href="../elements/control/index.html">control</a>,
|
|
From: <fb...@us...> - 2003-07-11 15:12:21
|
Update of /cvsroot/jgb/jgb/src/xdocs/html/developers/version
In directory sc8-pr-cvs1:/tmp/cvs-serv30934a/src/xdocs/html/developers/version
Modified Files:
index.xml
Log Message:
* src/xdocs/html/developers/version/index.xml:
Corrected bad target for control's reflabel attribute.
Index: index.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/xdocs/html/developers/version/index.xml,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** index.xml 30 Jun 2003 01:55:08 -0000 1.10
--- index.xml 11 Jul 2003 15:12:18 -0000 1.11
***************
*** 98,102 ****
Additionnaly, <a href="../../documentation/elements/control/index.html">control</a>
and these previous elements have seen the addition of a
! <a href="../../documentation/elements/control/index.html#attr-reflabel">reflabel</a>
attribute. This attribute allows easy setting of control's
labels.</td>
--- 98,102 ----
Additionnaly, <a href="../../documentation/elements/control/index.html">control</a>
and these previous elements have seen the addition of a
! <a href="../../documentation/elements/control/index.html#control.reflabel">reflabel</a>
attribute. This attribute allows easy setting of control's
labels.</td>
|
|
From: <fb...@us...> - 2003-07-11 15:11:33
|
Update of /cvsroot/jgb/jgb/src/xdocs/html/developers/building
In directory sc8-pr-cvs1:/tmp/cvs-serv30531/src/xdocs/html/developers/building
Modified Files:
index.xml
Log Message:
* src/xdocs/html/developers/building/index.xml:
Corrected bad link to Ant's web site.
Index: index.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/xdocs/html/developers/building/index.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** index.xml 27 Jun 2003 16:45:51 -0000 1.4
--- index.xml 11 Jul 2003 15:11:29 -0000 1.5
***************
*** 26,30 ****
<body>
<p>
! You will need <a href="http://ant.jakarta.apache.org/">Jakarta's Ant</a>
to build the Java Gui Builder. A build file is included with the source
code to enable easy building.
--- 26,30 ----
<body>
<p>
! You will need <a href="http://ant.apache.org/">Jakarta's Ant</a>
to build the Java Gui Builder. A build file is included with the source
code to enable easy building.
|
|
From: <fb...@us...> - 2003-07-11 15:10:12
|
Update of /cvsroot/jgb/jgb/src/dtd
In directory sc8-pr-cvs1:/tmp/cvs-serv30309/src/dtd
Modified Files:
dtd.xml
Log Message:
* src/dtd/dtd.xml:
Changed all external JavaDoc API links to point to the 1.3 version
instead of 1.4 or 1.4.1.
Index: dtd.xml
===================================================================
RCS file: /cvsroot/jgb/jgb/src/dtd/dtd.xml,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** dtd.xml 2 Jul 2003 16:17:02 -0000 1.25
--- dtd.xml 11 Jul 2003 15:10:09 -0000 1.26
***************
*** 274,285 ****
<tag refelement="window"/> tag describes one window. Windows
extends
! <link href="http://java.sun.com/j2se/1.4/docs/api/java/awt/Window.html">java.awt.Window</link>.
JGB only uses
! <link href="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JDialog.html">javax.swing.JDialog</link>
and
! <link href="http://java.sun.com/j2se/1.4/docs/api/javax/swing/JFrame.html">javax.swing.JFrame</link>.
It would be a simple matter to add support for
! <link href="http://java.sun.com/j2se/1.4/docs/api/java/awt/Dialog.html">java.awt.Dialog</link> and
! <link href="http://java.sun.com/j2se/1.4/docs/api/java/awt/Frame.html">java.awt.Frame</link>.
</p>
</description>
--- 274,285 ----
<tag refelement="window"/> tag describes one window. Windows
extends
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/Window.html">java.awt.Window</link>.
JGB only uses
! <link href="http://java.sun.com/j2se/1.3/docs/api/javax/swing/JDialog.html">javax.swing.JDialog</link>
and
! <link href="http://java.sun.com/j2se/1.3/docs/api/javax/swing/JFrame.html">javax.swing.JFrame</link>.
It would be a simple matter to add support for
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/Dialog.html">java.awt.Dialog</link> and
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/Frame.html">java.awt.Frame</link>.
</p>
</description>
***************
*** 530,534 ****
<p>
The value may be any primitive type, but also includes
! <link href="http://java.sun.com/j2se/1.4/java/lang/String.html">java.lang.String</link>
since this is a very often used type.
</p>
--- 530,534 ----
<p>
The value may be any primitive type, but also includes
! <link href="http://java.sun.com/j2se/1.3/java/lang/String.html">java.lang.String</link>
since this is a very often used type.
</p>
***************
*** 782,786 ****
For extra information on this element's attributes, please
consult the Java API reference for the
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html">GridBagConstraints</link> class.
</p>
</description>
--- 782,786 ----
For extra information on this element's attributes, please
consult the Java API reference for the
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html">GridBagConstraints</link> class.
</p>
</description>
***************
*** 798,802 ****
</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#anchor">GridBagConstraints.anchor</see>
</p>
</description>
--- 798,802 ----
</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#anchor">GridBagConstraints.anchor</see>
</p>
</description>
***************
*** 813,817 ****
</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#fill">GridBagConstraints.fill</see>
</p>
</description>
--- 813,817 ----
</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#fill">GridBagConstraints.fill</see>
</p>
</description>
***************
*** 822,826 ****
<p>Defines the X position in the virtual grid in which to add the control.</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#gridx">GridBagConstraints.gridx</see>
</p>
</description>
--- 822,826 ----
<p>Defines the X position in the virtual grid in which to add the control.</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#gridx">GridBagConstraints.gridx</see>
</p>
</description>
***************
*** 831,835 ****
<p>Defines the Y position in the virtual grid in which to add the control.</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#gridy">GridBagConstraints.gridy</see>
</p>
</description>
--- 831,835 ----
<p>Defines the Y position in the virtual grid in which to add the control.</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#gridy">GridBagConstraints.gridy</see>
</p>
</description>
***************
*** 840,844 ****
<p>Defines the width of controls in the virtual grid.</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#gridwidth">GridBagConstraints.gridwidth</see>
</p>
</description>
--- 840,844 ----
<p>Defines the width of controls in the virtual grid.</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#gridwidth">GridBagConstraints.gridwidth</see>
</p>
</description>
***************
*** 849,853 ****
<p>Defines the height of controls in the virtual grid.</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#gridheight">GridBagConstraints.gridheight</see>
</p>
</description>
--- 849,853 ----
<p>Defines the height of controls in the virtual grid.</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#gridheight">GridBagConstraints.gridheight</see>
</p>
</description>
***************
*** 866,870 ****
</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#insets">GridBagConstraints.insets</see>
</p>
</description>
--- 866,870 ----
</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#insets">GridBagConstraints.insets</see>
</p>
</description>
***************
*** 875,879 ****
<p>Defines padding in the X direction for subsequently added controls.</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#ipadx">GridBagConstraints.ipadx</see>
</p>
</description>
--- 875,879 ----
<p>Defines padding in the X direction for subsequently added controls.</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#ipadx">GridBagConstraints.ipadx</see>
</p>
</description>
***************
*** 884,888 ****
<p>Defines padding in the Y direction for subsequently added controls.</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#ipadx">GridBagConstraints.ipady</see>
</p>
</description>
--- 884,888 ----
<p>Defines padding in the Y direction for subsequently added controls.</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#ipadx">GridBagConstraints.ipady</see>
</p>
</description>
***************
*** 893,897 ****
<p>Defines the horizontal weight of this control when resizing the window.</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#weightx">GridBagConstraints.weightx</see>
</p>
</description>
--- 893,897 ----
<p>Defines the horizontal weight of this control when resizing the window.</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#weightx">GridBagConstraints.weightx</see>
</p>
</description>
***************
*** 902,906 ****
<p>Defines the vertical weight of this control when resizing the window.</p>
<p>
! <see href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridBagConstraints.html#weighty">GridBagConstraints.weighty</see>
</p>
</description>
--- 902,906 ----
<p>Defines the vertical weight of this control when resizing the window.</p>
<p>
! <see href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridBagConstraints.html#weighty">GridBagConstraints.weighty</see>
</p>
</description>
***************
*** 944,948 ****
<tag refelement="controls"/> element pushes the parent
window's
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JFrame.html#getContentPane()">content pane</link>
on the JGB stack so that child elements may be added to it.
</p>
--- 944,948 ----
<tag refelement="controls"/> element pushes the parent
window's
! <link href="http://java.sun.com/j2se/1.3/docs/api/javax/swing/JFrame.html#getContentPane()">content pane</link>
on the JGB stack so that child elements may be added to it.
</p>
***************
*** 986,990 ****
The &fqcn; of the layout class to use. This class
must implement the
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/LayoutManager.html">LayoutManager</link>
interface.
</p>
--- 986,990 ----
The &fqcn; of the layout class to use. This class
must implement the
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/LayoutManager.html">LayoutManager</link>
interface.
</p>
***************
*** 1026,1032 ****
instantiated control to the parent element. JGB will try
to find a method like
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Container.html#add(java.awt.Component,%20java.lang.Object)">add(Component, Object)</link>
in the parent objects. This method is defined in the
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Container.html">Container</link> class.
</p>
</description>
--- 1026,1032 ----
instantiated control to the parent element. JGB will try
to find a method like
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/Container.html#add(java.awt.Component,%20java.lang.Object)">add(Component, Object)</link>
in the parent objects. This method is defined in the
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/Container.html">Container</link> class.
</p>
</description>
***************
*** 1041,1045 ****
<p>
A &fqcn; that extends
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Component.html">Component</link>.
This class must have a public, no-arg constructor for
it to be instantiated.
--- 1041,1045 ----
<p>
A &fqcn; that extends
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/Component.html">Component</link>.
This class must have a public, no-arg constructor for
it to be instantiated.
***************
*** 1078,1082 ****
At that time, JGB will get the current constraints
and pass the saved object reference to the container's
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Container.html#add(java.awt.Component,%20java.lang.Object)">add(Component, Object)</link>
method.
</p>
--- 1078,1082 ----
At that time, JGB will get the current constraints
and pass the saved object reference to the container's
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/Container.html#add(java.awt.Component,%20java.lang.Object)">add(Component, Object)</link>
method.
</p>
***************
*** 1319,1323 ****
in which they are declared. The only possible border type at the
moment is a titled border, using the default
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/BorderFactory.html#createTitledBorder(javax.swing.border.Border)">BorderFactory.createTitledBorder(String title)</link>.
</p>
<p>
--- 1319,1323 ----
in which they are declared. The only possible border type at the
moment is a titled border, using the default
! <link href="http://java.sun.com/j2se/1.3/docs/api/javax/swing/BorderFactory.html#createTitledBorder(javax.swing.border.Border)">BorderFactory.createTitledBorder(String title)</link>.
</p>
<p>
***************
*** 1358,1364 ****
This element also provides shortcuts when specifying one of
the standard layout managers (
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/BorderLayout.html">BorderLayout</link>,
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/FlowLayout.html">FlowLayout</link> or
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/GridLayout.html">GridLayout</link>).
</p>
</description>
--- 1358,1364 ----
This element also provides shortcuts when specifying one of
the standard layout managers (
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/BorderLayout.html">BorderLayout</link>,
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/FlowLayout.html">FlowLayout</link> or
! <link href="http://java.sun.com/j2se/1.3/docs/api/java/awt/GridLayout.html">GridLayout</link>).
</p>
</description>
***************
*** 1619,1623 ****
<em>groupname</em>. The object returned from
this key is a
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/ButtonGroup.html">ButtonGroup</link>.
</p>
<p>
--- 1619,1623 ----
<em>groupname</em>. The object returned from
this key is a
! <link href="http://java.sun.com/j2se/1.3/docs/api/javax/swing/ButtonGroup.html">ButtonGroup</link>.
</p>
<p>
***************
*** 1625,1629 ****
a section in
<em>The Java Tutorial</em>, for more information about
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/ButtonGroup.html">ButtonGroup</link>s.
</p>
</description>
--- 1625,1629 ----
a section in
<em>The Java Tutorial</em>, for more information about
! <link href="http://java.sun.com/j2se/1.3/docs/api/javax/swing/ButtonGroup.html">ButtonGroup</link>s.
</p>
</description>
***************
*** 2016,2020 ****
<p>
It is also possible to use Java's
! <link href="http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)">KeyStroke</link>
class format to specify which accelerator key to use.
</p>
--- 2016,2020 ----
<p>
It is also possible to use Java's
! <link href="http://java.sun.com/j2se/1.3/docs/api/javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)">KeyStroke</link>
class format to specify which accelerator key to use.
</p>
|