Nuiton-widgets-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- 163 discussions
Author: tchemit
Date: 2010-04-29 07:44:49 +0200 (Thu, 29 Apr 2010)
New Revision: 259
Log:
Utilisation de mavenpom4redmine 2.1.3
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-04-22 10:11:32 UTC (rev 258)
+++ trunk/pom.xml 2010-04-29 05:44:49 UTC (rev 259)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmine</artifactId>
- <version>2.1.2</version>
+ <version>2.1.3</version>
</parent>
<artifactId>nuiton-widgets</artifactId>
1
0
Author: tchemit
Date: 2010-04-22 12:11:32 +0200 (Thu, 22 Apr 2010)
New Revision: 258
Log:
use junit 4.8.1 + improve release profiles
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-04-20 13:07:52 UTC (rev 257)
+++ trunk/pom.xml 2010-04-22 10:11:32 UTC (rev 258)
@@ -70,7 +70,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.7</version>
+ <version>4.8.1</version>
<scope>test</scope>
</dependency>
@@ -154,8 +154,9 @@
</scm>
<profiles>
+ <!-- create assemblies only at release time -->
<profile>
- <id>release-profile</id>
+ <id>release-assembly-profile</id>
<activation>
<property>
<name>performRelease</name>
1
0
Author: tchemit
Date: 2010-04-20 15:07:52 +0200 (Tue, 20 Apr 2010)
New Revision: 257
Log:
Utilisation de mavenpom4redmine 2.1.2
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-04-16 18:13:18 UTC (rev 256)
+++ trunk/pom.xml 2010-04-20 13:07:52 UTC (rev 257)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmine</artifactId>
- <version>2.1.1</version>
+ <version>2.1.2</version>
</parent>
<artifactId>nuiton-widgets</artifactId>
1
0
Author: tchemit
Date: 2010-04-16 20:13:18 +0200 (Fri, 16 Apr 2010)
New Revision: 256
Log:
Utilisation de mavenpom4redmine 2.1.1
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-04-12 12:15:40 UTC (rev 255)
+++ trunk/pom.xml 2010-04-16 18:13:18 UTC (rev 256)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmine</artifactId>
- <version>2.1</version>
+ <version>2.1.1</version>
</parent>
<artifactId>nuiton-widgets</artifactId>
1
0
Author: tchemit
Date: 2010-04-12 14:15:40 +0200 (Mon, 12 Apr 2010)
New Revision: 255
Log:
Utilisation de mavenpom4redmine 2.1
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-04-09 23:13:11 UTC (rev 254)
+++ trunk/pom.xml 2010-04-12 12:15:40 UTC (rev 255)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmine</artifactId>
- <version>2.0.7</version>
+ <version>2.1</version>
</parent>
<artifactId>nuiton-widgets</artifactId>
1
0
Author: tchemit
Date: 2010-04-10 01:13:11 +0200 (Sat, 10 Apr 2010)
New Revision: 254
Log:
add svn:keywords on files
Modified:
trunk/LICENSE.txt
trunk/README.txt
trunk/changelog.txt
trunk/pom.xml
trunk/src/main/assembly/deps.xml
trunk/src/main/assembly/full.xml
trunk/src/main/java/org/nuiton/widget/AboutFrame.java
trunk/src/main/java/org/nuiton/widget/ApplicationAction.java
trunk/src/main/java/org/nuiton/widget/ApplicationMonitor.java
trunk/src/main/java/org/nuiton/widget/CustomFocusTraversalPolicy.java
trunk/src/main/java/org/nuiton/widget/DatePicker.java
trunk/src/main/java/org/nuiton/widget/GridFlowLayout.java
trunk/src/main/java/org/nuiton/widget/IconFactory.java
trunk/src/main/java/org/nuiton/widget/InvalidDateException.java
trunk/src/main/java/org/nuiton/widget/JComboBoxAutoCompletionKit.java
trunk/src/main/java/org/nuiton/widget/Mailor.java
trunk/src/main/java/org/nuiton/widget/MessageDialog.java
trunk/src/main/java/org/nuiton/widget/Settings.java
trunk/src/main/java/org/nuiton/widget/SimpleInternalFrame.java
trunk/src/main/java/org/nuiton/widget/SplashScreen.java
trunk/src/main/java/org/nuiton/widget/StatusBar.java
trunk/src/main/java/org/nuiton/widget/SwingUtil.java
trunk/src/main/java/org/nuiton/widget/SwingWidgetFactory.java
trunk/src/main/java/org/nuiton/widget/SwitchPane.java
trunk/src/main/java/org/nuiton/widget/UIFSplitPane.java
trunk/src/main/java/org/nuiton/widget/WidgetUtil.java
trunk/src/main/java/org/nuiton/widget/XMLGridLayout.java
trunk/src/main/java/org/nuiton/widget/XMLGridParseConstraints.java
trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java
trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java
trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java
trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java
trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java
trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java
trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java
trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java
trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java
trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java
trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java
trunk/src/main/java/org/nuiton/widget/datatips/package-info.java
trunk/src/main/java/org/nuiton/widget/editor/DefaultEditor.java
trunk/src/main/java/org/nuiton/widget/editor/Editor.java
trunk/src/main/java/org/nuiton/widget/editor/EditorHelper.java
trunk/src/main/java/org/nuiton/widget/editor/EditorInterface.java
trunk/src/main/java/org/nuiton/widget/editor/JEditEditor.java
trunk/src/main/java/org/nuiton/widget/editor/NullEditor.java
trunk/src/main/java/org/nuiton/widget/editor/RSyntaxEditor.java
trunk/src/main/java/org/nuiton/widget/editor/SDocEditor.java
trunk/src/main/java/org/nuiton/widget/package.html
trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java
trunk/src/main/java/org/nuiton/widget/tooltip/SizeGrip.java
trunk/src/main/java/org/nuiton/widget/tooltip/TipUtil.java
trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java
trunk/src/main/java/org/nuiton/widget/tooltip/package-info.java
trunk/src/main/java/org/nuiton/widget/tree/FilterTreeModel.java
trunk/src/main/java/org/nuiton/widget/tree/TreeFilter.java
trunk/src/main/java/org/nuiton/widget/tree/package-info.java
trunk/src/main/resources/.Bpib
trunk/src/main/resources/22x22/appearance.png
trunk/src/main/resources/22x22/appointment.png
trunk/src/main/resources/22x22/arrow1Down.png
trunk/src/main/resources/22x22/arrow1Left.png
trunk/src/main/resources/22x22/arrow1Right.png
trunk/src/main/resources/22x22/arrow1Up.png
trunk/src/main/resources/22x22/arrow2Down.png
trunk/src/main/resources/22x22/arrow2Left.png
trunk/src/main/resources/22x22/arrow2Right.png
trunk/src/main/resources/22x22/arrow2Up.png
trunk/src/main/resources/22x22/attach.png
trunk/src/main/resources/22x22/cancel.png
trunk/src/main/resources/22x22/close.png
trunk/src/main/resources/22x22/find.png
trunk/src/main/resources/22x22/fonts.png
trunk/src/main/resources/22x22/fullscreen.png
trunk/src/main/resources/22x22/help.png
trunk/src/main/resources/22x22/idea.png
trunk/src/main/resources/22x22/info.png
trunk/src/main/resources/22x22/mail.png
trunk/src/main/resources/22x22/mailGet.png
trunk/src/main/resources/22x22/mailNew.png
trunk/src/main/resources/22x22/mailSend.png
trunk/src/main/resources/22x22/new.png
trunk/src/main/resources/22x22/nofullscreen.png
trunk/src/main/resources/22x22/ok.png
trunk/src/main/resources/22x22/open.png
trunk/src/main/resources/22x22/print.png
trunk/src/main/resources/22x22/redo.png
trunk/src/main/resources/22x22/reset.png
trunk/src/main/resources/22x22/run.png
trunk/src/main/resources/22x22/save.png
trunk/src/main/resources/22x22/saveAs.png
trunk/src/main/resources/22x22/spellcheck.png
trunk/src/main/resources/22x22/stop.png
trunk/src/main/resources/22x22/time.png
trunk/src/main/resources/22x22/undo.png
trunk/src/main/resources/64x64/camera.png
trunk/src/main/resources/64x64/joystick.png
trunk/src/main/resources/64x64/modem.png
trunk/src/main/resources/64x64/mouse.png
trunk/src/main/resources/64x64/pda.png
trunk/src/main/resources/64x64/printer.png
trunk/src/main/resources/64x64/scanner.png
trunk/src/main/resources/64x64/tablet.png
trunk/src/main/resources/appointment.png
trunk/src/main/resources/arrow1Left.png
trunk/src/main/resources/arrow1Right.png
trunk/src/main/resources/arrow1Up.png
trunk/src/main/resources/arrow2Down.png
trunk/src/main/resources/arrow2Left.png
trunk/src/main/resources/arrow2Right.png
trunk/src/main/resources/arrow2Up.png
trunk/src/main/resources/attach.png
trunk/src/main/resources/cancel.png
trunk/src/main/resources/close.png
trunk/src/main/resources/find.png
trunk/src/main/resources/fonts.png
trunk/src/main/resources/fullscreen.png
trunk/src/main/resources/greenGrass.jpg
trunk/src/main/resources/greenGrassSmall.jpg
trunk/src/main/resources/help.png
trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties
trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties
trunk/src/main/resources/idea.png
trunk/src/main/resources/info.png
trunk/src/main/resources/licenses.txt
trunk/src/main/resources/mail.png
trunk/src/main/resources/mailGet.png
trunk/src/main/resources/mailNew.png
trunk/src/main/resources/mailSend.png
trunk/src/main/resources/mail_new.png
trunk/src/main/resources/new.png
trunk/src/main/resources/nofullscreen.png
trunk/src/main/resources/ok.png
trunk/src/main/resources/open.png
trunk/src/main/resources/print.png
trunk/src/main/resources/redGecko.jpg
trunk/src/main/resources/redo.png
trunk/src/main/resources/reload.png
trunk/src/main/resources/reset.png
trunk/src/main/resources/run.png
trunk/src/main/resources/save.png
trunk/src/main/resources/saveAs.png
trunk/src/main/resources/saveas.png
trunk/src/main/resources/spellcheck.png
trunk/src/main/resources/spellchek.png
trunk/src/main/resources/stop.png
trunk/src/main/resources/time.png
trunk/src/main/resources/undo.png
trunk/src/site/resources/images/components/focusablett1.jpg
trunk/src/site/resources/images/components/focusablett2.jpg
trunk/src/site/rst/Todo.rst
trunk/src/site/rst/components/focusabletooltips.rst
trunk/src/site/rst/components/treefilters.rst
trunk/src/site/rst/index.rst
trunk/src/site/site_fr.xml
trunk/src/test/java/org/nuiton/widget/AboutFrameTest.java
trunk/src/test/java/org/nuiton/widget/AbstractTestCase.java
trunk/src/test/java/org/nuiton/widget/IconFactoryTest.java
trunk/src/test/java/org/nuiton/widget/WidgetUtilTest.java
trunk/src/test/java/org/nuiton/widget/XMLGridLayoutTest.java
trunk/src/test/java/org/nuiton/widget/XMLGridLayoutTest.xgl
trunk/src/test/java/org/nuiton/widget/editor/EditorTest.java
trunk/src/test/resources/log4j.properties
Property changes on: trunk/LICENSE.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/README.txt
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/changelog.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/pom.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/assembly/deps.xml
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/assembly/full.xml
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Modified: trunk/src/main/java/org/nuiton/widget/AboutFrame.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/AboutFrame.java 2010-04-03 10:33:40 UTC (rev 253)
+++ trunk/src/main/java/org/nuiton/widget/AboutFrame.java 2010-04-09 23:13:11 UTC (rev 254)
@@ -53,9 +53,9 @@
* - license tab (optionnal)
*
* @author chatellier
- * @version $Revision: 1.0 $
+ * @version $Revision$
*
- * Last update : $Date: 6 sept. 2008 $ By : $Author: chatellier $
+ * Last update : $Date$ By : $Author$
*/
public class AboutFrame extends JFrame implements ActionListener,
HyperlinkListener {
Property changes on: trunk/src/main/java/org/nuiton/widget/AboutFrame.java
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/ApplicationAction.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/ApplicationMonitor.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/CustomFocusTraversalPolicy.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/DatePicker.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/GridFlowLayout.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/IconFactory.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/InvalidDateException.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/JComboBoxAutoCompletionKit.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/Mailor.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/MessageDialog.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/Settings.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/SimpleInternalFrame.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/SplashScreen.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/StatusBar.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/SwingUtil.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/SwingWidgetFactory.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/SwitchPane.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/UIFSplitPane.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/WidgetUtil.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/XMLGridLayout.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/XMLGridParseConstraints.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/package-info.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/editor/DefaultEditor.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/editor/Editor.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/editor/EditorHelper.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/editor/EditorInterface.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Modified: trunk/src/main/java/org/nuiton/widget/editor/JEditEditor.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/editor/JEditEditor.java 2010-04-03 10:33:40 UTC (rev 253)
+++ trunk/src/main/java/org/nuiton/widget/editor/JEditEditor.java 2010-04-09 23:13:11 UTC (rev 254)
@@ -42,10 +42,10 @@
* RSyntaxTextArea editor implementation.
*
* @author chatellier
- * @version $Revision: 1.0 $
+ * @version $Revision$
*
- * Last update : $Date: 15 mai 2009 $
- * By : $Author: chatellier $
+ * Last update : $Date$
+ * By : $Author$
*/
public class JEditEditor extends JPanel implements EditorInterface, DocumentListener {
Property changes on: trunk/src/main/java/org/nuiton/widget/editor/JEditEditor.java
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/editor/NullEditor.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Modified: trunk/src/main/java/org/nuiton/widget/editor/RSyntaxEditor.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/editor/RSyntaxEditor.java 2010-04-03 10:33:40 UTC (rev 253)
+++ trunk/src/main/java/org/nuiton/widget/editor/RSyntaxEditor.java 2010-04-09 23:13:11 UTC (rev 254)
@@ -45,10 +45,10 @@
* RSyntaxTextArea editor implementation.
*
* @author chatellier
- * @version $Revision: 1.0 $
+ * @version $Revision$
*
- * Last update : $Date: 15 mai 2009 $
- * By : $Author: chatellier $
+ * Last update : $Date$
+ * By : $Author$
*/
public class RSyntaxEditor extends JPanel implements EditorInterface, DocumentListener {
Property changes on: trunk/src/main/java/org/nuiton/widget/editor/RSyntaxEditor.java
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/editor/SDocEditor.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/package.html
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/tooltip/SizeGrip.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/tooltip/TipUtil.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/tooltip/package-info.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/tree/FilterTreeModel.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/tree/TreeFilter.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/java/org/nuiton/widget/tree/package-info.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision HeadURL
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/.Bpib
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/appearance.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/appointment.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/arrow1Down.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/arrow1Left.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/arrow1Right.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/arrow1Up.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/arrow2Down.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/arrow2Left.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/arrow2Right.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/arrow2Up.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/attach.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/cancel.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/close.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/find.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/fonts.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/fullscreen.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/help.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/idea.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/info.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/mail.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/mailGet.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/mailNew.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/mailSend.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/new.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/nofullscreen.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/ok.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/open.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/print.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/redo.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/reset.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/run.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/save.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/saveAs.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/spellcheck.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/stop.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/time.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/22x22/undo.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/64x64/camera.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/64x64/joystick.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/64x64/modem.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/64x64/mouse.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/64x64/pda.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/64x64/printer.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/64x64/scanner.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/64x64/tablet.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/appointment.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/arrow1Left.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/arrow1Right.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/arrow1Up.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/arrow2Down.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/arrow2Left.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/arrow2Right.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/arrow2Up.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/attach.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/cancel.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/close.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/find.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/fonts.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/fullscreen.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/greenGrass.jpg
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/greenGrassSmall.jpg
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/help.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/idea.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/info.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/licenses.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/mail.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/mailGet.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/mailNew.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/mailSend.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/mail_new.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/new.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/nofullscreen.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/ok.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/open.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/print.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/redGecko.jpg
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/redo.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/reload.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/reset.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/run.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/save.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/saveAs.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/saveas.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/spellcheck.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/spellchek.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/stop.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/time.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/main/resources/undo.png
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/site/resources/images/components/focusablett1.jpg
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/site/resources/images/components/focusablett2.jpg
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/site/rst/Todo.rst
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/site/rst/components/focusabletooltips.rst
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/site/rst/components/treefilters.rst
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/site/rst/index.rst
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/site/site_fr.xml
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Modified: trunk/src/test/java/org/nuiton/widget/AboutFrameTest.java
===================================================================
--- trunk/src/test/java/org/nuiton/widget/AboutFrameTest.java 2010-04-03 10:33:40 UTC (rev 253)
+++ trunk/src/test/java/org/nuiton/widget/AboutFrameTest.java 2010-04-09 23:13:11 UTC (rev 254)
@@ -24,10 +24,10 @@
* Test class for about frame.
*
* @author chatellier
- * @version $Revision: 1.0 $
+ * @version $Revision$
*
- * Last update : $Date: 17 déc. 2008 $
- * By : $Author: chatellier $
+ * Last update : $Date$
+ * By : $Author$
*/
public class AboutFrameTest {
Property changes on: trunk/src/test/java/org/nuiton/widget/AboutFrameTest.java
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/test/java/org/nuiton/widget/AbstractTestCase.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/test/java/org/nuiton/widget/IconFactoryTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/test/java/org/nuiton/widget/WidgetUtilTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/test/java/org/nuiton/widget/XMLGridLayoutTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/test/java/org/nuiton/widget/XMLGridLayoutTest.xgl
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/test/java/org/nuiton/widget/editor/EditorTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id Revision
+ HeadURL Id Date Revision Author
Property changes on: trunk/src/test/resources/log4j.properties
___________________________________________________________________
Added: svn:keywords
+ HeadURL Id Date Revision Author
1
0
Author: tchemit
Date: 2010-04-03 12:33:40 +0200 (Sat, 03 Apr 2010)
New Revision: 253
Log:
Evolution #446: Use I18n 1.2.1
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-03-27 20:05:37 UTC (rev 252)
+++ trunk/pom.xml 2010-04-03 10:33:40 UTC (rev 253)
@@ -93,7 +93,7 @@
<properties>
- <i18n.version>1.0.1</i18n.version>
+ <i18n.version>1.2.1</i18n.version>
<!-- extra files to include in release -->
<redmine.releaseFiles>${redmine.libReleaseFiles}</redmine.releaseFiles>
1
0
Author: tchemit
Date: 2010-03-27 21:05:37 +0100 (Sat, 27 Mar 2010)
New Revision: 252
Log:
Utilisation de mavenpom4redmine 2.0.7
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-03-25 09:51:44 UTC (rev 251)
+++ trunk/pom.xml 2010-03-27 20:05:37 UTC (rev 252)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmine</artifactId>
- <version>2.0.6</version>
+ <version>2.0.7</version>
</parent>
<artifactId>nuiton-widgets</artifactId>
1
0
r251 - in trunk/src/main/java/org/nuiton/widget: . datatips
by echatellier@users.nuiton.org 25 Mar '10
by echatellier@users.nuiton.org 25 Mar '10
25 Mar '10
Author: echatellier
Date: 2010-03-25 10:51:44 +0100 (Thu, 25 Mar 2010)
New Revision: 251
Log:
Add datatips code with nimbus fix.
Added:
trunk/src/main/java/org/nuiton/widget/datatips/
trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java
trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java
trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java
trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java
trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java
trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java
trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java
trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java
trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java
trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java
trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java
trunk/src/main/java/org/nuiton/widget/datatips/package-info.java
Added: trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,64 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import java.awt.*;
+
+interface DataTipCell {
+
+ boolean isSet();
+
+ Component getRendererComponent();
+
+ Rectangle getCellBounds();
+
+ /**
+ * 'Null' value for cells (location is outside of any cell bounds).
+ */
+ DataTipCell NONE = new DataTipCell() {
+
+ public boolean isSet() {
+ return false;
+ }
+
+ public Component getRendererComponent() {
+ return null;
+ }
+
+ public Rectangle getCellBounds() {
+ return null;
+ }
+
+ public boolean equals(Object obj) {
+ return false;
+ }
+
+ public int hashCode() {
+ return 0;
+ }
+ };
+}
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,116 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.MouseEvent;
+import java.awt.event.MouseWheelEvent;
+
+/**
+ * Note: It's important to inherit from JToolTip: Mouse events get dispatched to the parent.<br/>
+ * I do not really know why this is so. At least PopupFactory creates a different type of popup
+ * if the content is instance of JToolTip.
+ */
+class DataTipComponent extends JToolTip {
+ private DataTipCell cell;
+ private CellRendererPane rendererPane;
+ private Rectangle withoutBorderRectangle;
+ private Color backgroundColor;
+ private boolean isHeavyWeight;
+
+ DataTipComponent(DataTipCell cell, Rectangle withoutBorderRectangle, Color backgroundColor) {
+ this.cell = cell;
+ this.withoutBorderRectangle = withoutBorderRectangle;
+ this.backgroundColor = backgroundColor;
+ rendererPane = new CellRendererPane();
+ add(rendererPane);
+ setFocusable(false);
+ setBorder(null);
+ enableEvents(AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK | AWTEvent.MOUSE_WHEEL_EVENT_MASK);
+ }
+
+ /**
+ * Overriden, so that Swing does not create a ToolTipUI.
+ */
+ public void updateUI() {
+ }
+
+ /**
+ * Overriden to always return false, so that no component ever receives mouse events.
+ * Instead a mouse press will be caught on the popup's window ancestor, the popup will be hidden and the mouse press redispatched
+ * to the underlying component.
+ */
+ public boolean contains(int x, int y) {
+ return isHeavyWeight;
+ }
+
+ protected void processMouseEvent(MouseEvent e) {
+ DataTipManager.get().handleEventFromDataTipComponent(e);
+ }
+
+ protected void processMouseMotionEvent(MouseEvent e) {
+ DataTipManager.get().handleEventFromDataTipComponent(e);
+ }
+
+ protected void processMouseWheelEvent(MouseWheelEvent e) {
+ DataTipManager.get().handleEventFromDataTipComponent(e);
+ }
+
+ public void paintComponent(Graphics g) {
+ Component component = cell.getRendererComponent();
+
+ // Leave the component's opacity settings as is, just paint the background myself.
+ // This seems to be the only viable solution: DefaultTableCellRenderer overrides isOpaque() and returns
+ // true only if renderer color does not equal parent color. The problem is that rendererPane.paintComponent()
+ // re-parents the renderer.
+ g.setColor(backgroundColor);
+ int width = getWidth();
+ int height = getHeight();
+ g.fillRect(0, 0, width, height);
+
+ g.setColor(Color.black);
+ g.drawRect(0, 0, width - 1, height - 1);
+
+ if (withoutBorderRectangle != null) {
+ Shape oldClip = g.getClip();
+ g.setClip(withoutBorderRectangle);
+ g.setColor(backgroundColor);
+ g.fillRect(0, 0, width, height);
+ g.setClip(oldClip);
+ }
+
+ g.setClip(1, 1, width - 2, height - 2);
+ rendererPane.paintComponent(g, component, this, 0, 0, width, height);
+ g.setClip(withoutBorderRectangle);
+ rendererPane.paintComponent(g, component, this, 0, 0, width, height);
+ }
+
+ public void setHeavyWeight(boolean isHeavyWeight) {
+ this.isHeavyWeight = isHeavyWeight;
+ }
+}
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,230 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import javax.swing.*;
+import javax.swing.event.MouseInputAdapter;
+import java.awt.*;
+import java.awt.event.ComponentEvent;
+import java.awt.event.ComponentListener;
+import java.awt.event.MouseEvent;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+
+abstract class DataTipListener extends MouseInputAdapter implements ComponentListener {
+ private DataTipPopup dataTipPopup;
+
+ // When running under JDK 1.5 (or higher) DataTipListener will check if the tip must be updated when the parent
+ // component changes size or moves.
+ // With JDK 1.4 or earlier this does not work, because no mouse event gets posted (even though the relative mouse
+ // position changes) - yet to be able to compile with 1.4 the necessary JDK 1.5 methods are called by reflection.
+ // On JDK 1.4 the popup is just always hidden qwhen the component changes (and reshown when the user first moves
+ // the mouse again).
+ private static final Class[] NO_PARAMETERS = new Class[0];
+ private static final Object[] NO_ARGUMENTS = new Object[0];
+ private static Class mouseInfoClass;
+ private static Method getPointerInfoMethod;
+ private static Class pointerInfoClass;
+ private static Method getLocationMethod;
+
+ static {
+ try {
+ mouseInfoClass = Class.forName("java.awt.MouseInfo");
+ getPointerInfoMethod = mouseInfoClass.getMethod("getPointerInfo", NO_PARAMETERS);
+ pointerInfoClass = Class.forName("java.awt.PointerInfo");
+ getLocationMethod = pointerInfoClass.getMethod("getLocation", NO_PARAMETERS);
+ }
+ catch(NoSuchMethodException e) {
+ // fine probably running on pre-1.5-JDK
+ }
+ catch(ClassNotFoundException e) {
+ // fine probably running on pre-1.5-JDK
+ }
+ }
+
+ DataTipListener() {
+ }
+
+ /**
+ * @return the cell that is at position 'point' in the component or DataTipCell.NONE if there isn't a cell at that
+ * point.
+ */
+ abstract DataTipCell getCell(JComponent component, Point point);
+
+ /**
+ * If the user presses a mouse button on a popup, Swing's behaviour depends on the popup type:
+ * - lightweight popup:
+ * This case is handled here. Because the TipComponent.contains(int x, int y) is overriden to always return false
+ * Swing will dispath the event directly to the parent component.
+ * - heavyweight popup:
+ * Swing will dispatch the event to the popup's window, which is handled in DataTipPopup.
+ */
+ public void mousePressed(MouseEvent e) {
+ //hideTip(); Can't: Double click would not work. Click count of the second click would be '1', because it would
+ // go to a different window (for heavyweight datatips).
+ }
+
+ public void mouseEntered(MouseEvent event) {
+ checkShowOrHide(event);
+ }
+
+ public void mouseExited(MouseEvent event) {
+ checkShowOrHide(event);
+ }
+
+ public void mouseDragged(MouseEvent event) {
+ checkShowOrHide(event);
+ }
+
+ public void mouseMoved(MouseEvent event) {
+ checkShowOrHide(event);
+ }
+
+ private void checkShowOrHide(MouseEvent event) {
+ JComponent component = (JComponent) event.getSource();
+ Point mousePosition = event.getPoint();
+ checkShowOrHide(component, mousePosition);
+ }
+
+ private void checkShowOrHide(JComponent component, Point mousePosition) {
+ Window windowAncestor = SwingUtilities.getWindowAncestor(component);
+ if (windowAncestor == null || !windowAncestor.isActive()) {
+ hideTip();
+ return;
+ }
+
+ DataTipCell dataTipCell = getCell(component, mousePosition);
+ Rectangle visRect = component.getVisibleRect();
+
+ if(!visRect.contains(mousePosition)) {
+ dataTipCell = DataTipCell.NONE;
+ }
+
+ DataTipCell currentPopupCell = getCurrentPopupCell();
+ if(dataTipCell.equals(currentPopupCell)) {
+ return;
+ }
+
+ hideTip();
+ if(!dataTipCell.isSet()) {
+ return;
+ }
+
+ dataTipPopup = createPopup(component, mousePosition, dataTipCell);
+ }
+
+ private DataTipCell getCurrentPopupCell() {
+ if(!isTipShown()) {
+ return DataTipCell.NONE;
+ }
+ return dataTipPopup.getCell();
+ }
+
+ private DataTipPopup createPopup(JComponent component, Point mousePosition, DataTipCell dataTipCell) {
+ Rectangle cellBounds = dataTipCell.getCellBounds();
+
+ Rectangle visRect = component.getVisibleRect();
+ Rectangle visibleCellRectangle = cellBounds.intersection(visRect);
+ if (!visibleCellRectangle.contains(mousePosition)) {
+ return null;
+ }
+
+ Component rendererComponent = dataTipCell.getRendererComponent();
+ Dimension rendCompDim = rendererComponent.getMinimumSize();
+ Rectangle rendCompBounds = new Rectangle(cellBounds.getLocation(), rendCompDim);
+ if(cellBounds.contains(rendCompBounds) && visRect.contains(rendCompBounds)) {
+ return null;
+ }
+
+ Dimension preferredSize = rendererComponent.getPreferredSize();
+ Point tipPosition = cellBounds.getLocation();
+ int width = Math.max(cellBounds.width, preferredSize.width);
+ int height = Math.max(cellBounds.height, preferredSize.height);
+ Dimension tipDimension = new Dimension(width, height);
+ DataTipPopup dataTipPopup = new DataTipPopup(component, dataTipCell, tipPosition, tipDimension);
+
+ return dataTipPopup;
+ }
+
+ private boolean isTipShown() {
+ return dataTipPopup != null && dataTipPopup.isTipShown();
+ }
+
+ private void hideTip() {
+ if (dataTipPopup != null) {
+ dataTipPopup.hideTip();
+ dataTipPopup = null;
+ }
+ }
+
+ public void componentResized(ComponentEvent e) {
+ checkShowOrHide(e);
+ }
+
+ public void componentMoved(ComponentEvent e) {
+ checkShowOrHide(e);
+ }
+
+ public void componentShown(ComponentEvent e) {
+ checkShowOrHide(e);
+ }
+
+ public void componentHidden(ComponentEvent e) {
+ hideTip();
+ }
+
+ private void checkShowOrHide(ComponentEvent e) {
+ JComponent component = (JComponent) e.getSource();
+ Point mousePosition = getCurrentMousePosition();
+ if(mousePosition == null) {
+ hideTip();
+ }
+ else {
+ SwingUtilities.convertPointFromScreen(mousePosition, component);
+ checkShowOrHide(component, mousePosition);
+ }
+ }
+
+ private static Point getCurrentMousePosition() {
+ if(mouseInfoClass == null) {
+ return null;
+ }
+ try {
+ Object pointerInfo = getPointerInfoMethod.invoke(null, NO_ARGUMENTS);
+ Point mousePosition = (Point) getLocationMethod.invoke(pointerInfo, NO_ARGUMENTS);
+ return mousePosition;
+ }
+ catch(IllegalAccessException e) {
+ // strange, but nothing I can do here
+ }
+ catch(InvocationTargetException e) {
+ // strange, but nothing I can do here
+ }
+
+ return null;
+ }
+}
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,211 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.AWTEventListener;
+import java.awt.event.MouseEvent;
+import java.awt.event.MouseWheelEvent;
+import java.security.AccessControlException;
+
+/**
+ * <code>DataTipManager</code> provides data tips for tree, table and list components. Whenever the mouse cursor is
+ * over a cell whose content is partially hidden a popup with the complete cell content is shown.
+ * The cell content can be hidden because it is clipped at either the parent component bounds (e.g. scrollpane) or at
+ * the cell bounds (e.g. table row height is too small).
+ */
+public class DataTipManager {
+ private static DataTipManager instance;
+
+ private ListDataTipListener listMouseListener = new ListDataTipListener();
+ private TableDataTipListener tableMouseListener = new TableDataTipListener();
+ private TreeDataTipListener treeMouseListener = new TreeDataTipListener();
+ private Component parentComponent;
+ private Window tipComponentWindow;
+ private MouseEvent lastMouseEvent;
+ private static boolean allowUntrustedUsage;
+
+ private DataTipManager() {
+ try {
+ long eventMask = AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK | AWTEvent.MOUSE_WHEEL_EVENT_MASK;
+ Toolkit.getDefaultToolkit().addAWTEventListener(new MouseEventModifier(), eventMask);
+ }
+ catch(AccessControlException e) {
+ if(!allowUntrustedUsage) {
+ throw new RuntimeException("DataTipManager needs to run in a trusted application", e);
+ }
+ }
+ }
+
+ static void enableUntrustedUsage(boolean enable) {
+ allowUntrustedUsage = enable;
+ }
+
+ /**
+ * @return the single, shared instance of the DataTipmanager
+ */
+ public static synchronized DataTipManager get() {
+ if(instance == null) {
+ instance = new DataTipManager();
+ }
+ return instance;
+ }
+
+ /**
+ * Enable data tips for a list component.
+ * @param list the list which should be enhanced with data tips.
+ */
+ public synchronized void register(JList list) {
+ list.addMouseListener(listMouseListener);
+ list.addMouseMotionListener(listMouseListener);
+ list.addComponentListener(listMouseListener);
+ }
+
+ /**
+ * Enable data tips for a tree component.
+ * @param tree the tree which should be enhanced with data tips.
+ */
+ public synchronized void register(JTree tree) {
+ tree.addMouseListener(treeMouseListener);
+ tree.addMouseMotionListener(treeMouseListener);
+ tree.addComponentListener(treeMouseListener);
+ }
+
+ /**
+ * Enable data tips for a list component.
+ * @param table the table which should be enhanced with data tips.
+ */
+ public synchronized void register(JTable table) {
+ table.addMouseListener(tableMouseListener);
+ table.addMouseMotionListener(tableMouseListener);
+ table.addComponentListener(tableMouseListener);
+ }
+
+ void setTipWindow(Component parentComponent, Window dataTipComponent) {
+ this.parentComponent = parentComponent;
+ tipComponentWindow = dataTipComponent;
+ }
+
+ public boolean handleEventFromParentComponent(MouseEvent mouseEvent) {
+ // filter out events that come from client explicitly calling this method, but we have already handled in awt event listener
+ if(mouseEvent == lastMouseEvent) {
+ return false;
+ }
+ Object source = mouseEvent.getSource();
+ if(source != parentComponent) {
+ return false;
+ }
+ int id = mouseEvent.getID();
+ int x = mouseEvent.getX();
+ int y = mouseEvent.getY();
+ long when = mouseEvent.getWhen();
+ int modifiers = mouseEvent.getModifiers();
+ int clickCount = mouseEvent.getClickCount();
+ boolean isPopupTrigger = mouseEvent.isPopupTrigger();
+ if(id == MouseEvent.MOUSE_EXITED) {
+ Point point = SwingUtilities.convertPoint(parentComponent, x, y, tipComponentWindow);
+ if(tipComponentWindow.contains(point)) {
+ MouseEvent newEvent = new MouseEvent(parentComponent, MouseEvent.MOUSE_MOVED, when, modifiers,
+ x, y, clickCount, isPopupTrigger);
+ parentComponent.dispatchEvent(newEvent);
+ // If the datatip has been hidden as a result, then process the exit event, too, so that
+ // e.g. tooltips will hide.
+ boolean stillVisible = parentComponent != null;
+ return stillVisible;
+ }
+ }
+ return false;
+ }
+
+ public void handleEventFromDataTipComponent(MouseEvent mouseEvent) {
+ mouseEvent.consume();
+ int id = mouseEvent.getID();
+ if(id != MouseEvent.MOUSE_ENTERED) {
+ int x = mouseEvent.getX();
+ int y = mouseEvent.getY();
+ Point point = SwingUtilities.convertPoint(mouseEvent.getComponent(), x, y, parentComponent);
+
+ if(id == MouseEvent.MOUSE_EXITED && parentComponent.contains(point)) {
+ return;
+ }
+ long when = mouseEvent.getWhen();
+ int modifiers = mouseEvent.getModifiers();
+ int clickCount = mouseEvent.getClickCount();
+ boolean isPopupTrigger = mouseEvent.isPopupTrigger();
+ MouseEvent newEvent;
+ if(id == MouseEvent.MOUSE_WHEEL) {
+ MouseWheelEvent mouseWheelEvent = (MouseWheelEvent) mouseEvent;
+ int scrollType = mouseWheelEvent.getScrollType();
+ int scrollAmount = mouseWheelEvent.getScrollAmount();
+ int wheelRotation = mouseWheelEvent.getWheelRotation();
+ newEvent = new MouseWheelEvent(parentComponent, id, when, modifiers, point.x, point.y,
+ clickCount, isPopupTrigger, scrollType, scrollAmount,
+ wheelRotation);
+ }
+ else {
+ newEvent = new MouseEvent(parentComponent, id, when, modifiers, point.x, point.y,
+ clickCount, isPopupTrigger);
+ }
+ Component parentComponentBackup = parentComponent;
+ parentComponent.dispatchEvent(newEvent);
+ if(parentComponent == null && id != MouseEvent.MOUSE_EXITED) {
+ MouseEvent exitEvent = new MouseEvent(parentComponentBackup, MouseEvent.MOUSE_EXITED, when,
+ modifiers, point.x, point.y, clickCount, isPopupTrigger);
+ parentComponentBackup.dispatchEvent(exitEvent);
+ }
+ if(tipComponentWindow != null && id != MouseEvent.MOUSE_MOVED) {
+ // mouse click might have changed appearance (e.g. selection color)
+ tipComponentWindow.repaint();
+ }
+ }
+ }
+
+ private class MouseEventModifier implements AWTEventListener {
+ private MouseEventModifier() {
+ }
+
+ public void eventDispatched(AWTEvent event) {
+ if(tipComponentWindow == null) {
+ return;
+ }
+ Object source = event.getSource();
+
+ if(source == parentComponent) {
+ MouseEvent mouseEvent = (MouseEvent) event;
+ boolean filter = handleEventFromParentComponent(mouseEvent);
+ if(filter) {
+ mouseEvent.consume();
+ }
+ else {
+ lastMouseEvent = mouseEvent;
+ }
+ }
+ }
+ }
+}
+
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,89 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import javax.swing.*;
+import java.awt.*;
+
+class DataTipPopup {
+ private Popup popup;
+ private DataTipCell cell;
+
+ DataTipPopup(JComponent parent, DataTipCell cell, Point tipPosition, Dimension tipDimension) {
+ this.cell = cell;
+ Rectangle parentVisibleRect = parent.getVisibleRect();
+ Rectangle withoutBorderRectangle = parentVisibleRect.intersection(new Rectangle(tipPosition, tipDimension));
+ withoutBorderRectangle.translate(-tipPosition.x, -tipPosition.y);
+
+ DataTipComponent dataTipComponent = new DataTipComponent(cell, withoutBorderRectangle, parent.getBackground());
+
+ Dimension tipDimensionClipped = new Dimension(tipDimension.width, tipDimension.height);
+ Window windowAncestor = SwingUtilities.getWindowAncestor(parent);
+ GraphicsConfiguration gc = windowAncestor.getGraphicsConfiguration();
+ Rectangle screenBounds = gc.getBounds();
+ Point tipScreenPosition = new Point(tipPosition.x, tipPosition.y);
+ SwingUtilities.convertPointToScreen(tipScreenPosition, parent);
+ Point tipPositionClipped = new Point();
+ tipPositionClipped.x = Math.max(tipScreenPosition.x, screenBounds.x);
+ tipPositionClipped.y = Math.max(tipScreenPosition.y, screenBounds.y);
+ tipDimensionClipped.width = Math.min(screenBounds.x + screenBounds.width - tipPositionClipped.x, tipDimensionClipped.width);
+ tipDimensionClipped.height = Math.min(screenBounds.y + screenBounds.height - tipPositionClipped.y, tipDimensionClipped.height);
+ SwingUtilities.convertPointFromScreen(tipPositionClipped, parent);
+ dataTipComponent.setPreferredSize(tipDimensionClipped);
+ SwingUtilities.convertPointToScreen(tipPosition, parent);
+
+ PopupFactory popupFactory = PopupFactory.getSharedInstance();
+ popup = popupFactory.getPopup(parent, dataTipComponent, tipPosition.x, tipPosition.y);
+ popup.show();
+ Window componentWindow = SwingUtilities.windowForComponent(parent);
+ Window tipWindow = SwingUtilities.windowForComponent(dataTipComponent);
+ //noinspection ObjectEquality
+ boolean isHeavyWeight = tipWindow != null && tipWindow != componentWindow;
+ dataTipComponent.setHeavyWeight(isHeavyWeight);
+ if (isHeavyWeight) {
+// ToolTipManager.sharedInstance().registerComponent(dataTipComponent);
+ DataTipManager.get().setTipWindow(parent, tipWindow);
+ }
+ }
+
+ DataTipCell getCell() {
+ return cell;
+ }
+
+ void hideTip() {
+ if (popup != null) {
+ popup.hide();
+ popup = null;
+
+ DataTipManager.get().setTipWindow(null, null);
+ }
+ }
+
+ public boolean isTipShown() {
+ return popup != null;
+ }
+}
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,81 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import org.nuiton.widget.datatips.DataTipCell;
+
+import javax.swing.*;
+import java.awt.*;
+
+class ListDataTipCell implements DataTipCell {
+ private final JList list;
+ private final int rowIndex;
+
+ ListDataTipCell(JList list, int rowIndex) {
+ this.list = list;
+ this.rowIndex = rowIndex;
+ }
+
+ public boolean isSet() {
+ return rowIndex >= 0;
+ }
+
+ public Rectangle getCellBounds() {
+ Rectangle cellRect = list.getCellBounds(rowIndex, rowIndex);
+ return cellRect;
+ }
+
+ public Component getRendererComponent() {
+ Object item = list.getModel().getElementAt(rowIndex);
+ boolean isSelected = list.isSelectedIndex(rowIndex);
+ boolean isFocussed = list.hasFocus() && rowIndex == list.getLeadSelectionIndex();
+ ListCellRenderer renderer = list.getCellRenderer();
+ Component component = renderer.getListCellRendererComponent(list, item, rowIndex, isSelected, isFocussed);
+ return component;
+ }
+
+ public boolean equals(Object o) {
+ if(this == o) {
+ return true;
+ }
+ if(o == null || getClass() != o.getClass()) {
+ return false;
+ }
+
+ ListDataTipCell listDataTipCell = (ListDataTipCell) o;
+
+ if(rowIndex != listDataTipCell.rowIndex) {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return rowIndex;
+ }
+}
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import org.nuiton.widget.datatips.DataTipCell;
+import org.nuiton.widget.datatips.DataTipListener;
+import org.nuiton.widget.datatips.ListDataTipCell;
+
+import javax.swing.*;
+import java.awt.*;
+
+class ListDataTipListener extends DataTipListener {
+ ListDataTipListener() {
+ }
+
+ DataTipCell getCell(JComponent component, Point point) {
+ JList list = (JList) component;
+ int index = list.locationToIndex(point);
+ if (index < 0) {
+ return DataTipCell.NONE;
+ }
+ return new ListDataTipCell(list, index);
+ }
+}
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,87 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import org.nuiton.widget.datatips.DataTipCell;
+
+import javax.swing.*;
+import javax.swing.table.TableCellRenderer;
+import java.awt.*;
+
+class TableDataTipCell implements DataTipCell {
+ private final JTable table;
+ private final int rowIndex;
+ private final int columnIndex;
+
+ TableDataTipCell(JTable table, int rowIndex, int columnIndex) {
+ this.table = table;
+ this.rowIndex = rowIndex;
+ this.columnIndex = columnIndex;
+ }
+
+ public boolean isSet() {
+ return rowIndex >= 0 && columnIndex >= 0;
+ }
+
+ public Rectangle getCellBounds() {
+ Rectangle cellRect = table.getCellRect(rowIndex, columnIndex, false);
+ return cellRect;
+ }
+
+ public Component getRendererComponent() {
+ TableCellRenderer cellRenderer = table.getCellRenderer(rowIndex, columnIndex);
+ Component component = table.prepareRenderer(cellRenderer, rowIndex, columnIndex);
+ return component;
+ }
+
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+
+ TableDataTipCell cellPosition = (TableDataTipCell) o;
+
+ if (columnIndex != cellPosition.columnIndex) {
+ return false;
+ }
+ if (rowIndex != cellPosition.rowIndex) {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ int result;
+ result = rowIndex;
+ result = 29 * result + columnIndex;
+ return result;
+ }
+}
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import org.nuiton.widget.datatips.DataTipCell;
+import org.nuiton.widget.datatips.DataTipListener;
+import org.nuiton.widget.datatips.TableDataTipCell;
+
+import javax.swing.*;
+import java.awt.*;
+
+class TableDataTipListener extends DataTipListener {
+ TableDataTipListener() {
+ }
+
+ DataTipCell getCell(JComponent component, Point point) {
+ JTable table = (JTable) component;
+ int rowIndex = table.rowAtPoint(point);
+ int columnIndex = table.columnAtPoint(point);
+ if (rowIndex < 0 || columnIndex < 0) {
+ return DataTipCell.NONE;
+ }
+ TableDataTipCell cellPosition = new TableDataTipCell(table, rowIndex, columnIndex);
+ return cellPosition;
+ }
+}
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,98 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import java.awt.Component;
+import java.awt.Rectangle;
+
+import javax.swing.JTree;
+import javax.swing.UIManager;
+import javax.swing.tree.TreeCellRenderer;
+import javax.swing.tree.TreeModel;
+import javax.swing.tree.TreePath;
+
+class TreeDataTipCell implements DataTipCell {
+ private final JTree tree;
+ private final int rowIndex;
+
+ public TreeDataTipCell(JTree tree, int rowIndex) {
+ this.tree = tree;
+ this.rowIndex = rowIndex;
+ }
+
+ public boolean isSet() {
+ return rowIndex >= 0;
+ }
+
+ public Rectangle getCellBounds() {
+ TreePath treePath = tree.getPathForRow(rowIndex);
+ Rectangle cellRect = tree.getPathBounds(treePath);
+ return cellRect;
+ }
+
+ public Component getRendererComponent() {
+ TreeModel treeModel = tree.getModel();
+ TreePath treePath = tree.getPathForRow(rowIndex);
+ TreeCellRenderer renderer = tree.getCellRenderer();
+ boolean isSelected = tree.isPathSelected(treePath);
+ boolean isExpanded = tree.isExpanded(treePath);
+ boolean hasFocus = tree.hasFocus() && rowIndex == tree.getLeadSelectionRow();
+ Object item = treePath.getLastPathComponent();
+ boolean isLeaf = treeModel.isLeaf(item);
+ Component component = renderer.getTreeCellRendererComponent(tree, item, isSelected, isExpanded, isLeaf, rowIndex, hasFocus);
+ component.setFont(tree.getFont());
+
+ // FIX Nimbus white foreground on white background
+ if (isSelected) {
+ component.setForeground(UIManager.getColor("Tree.textForeground"));
+ }
+
+ return component;
+ }
+
+ public boolean equals(Object o) {
+ if(this == o) {
+ return true;
+ }
+ if(o == null || getClass() != o.getClass()) {
+ return false;
+ }
+
+ TreeDataTipCell treeDataTipCell = (TreeDataTipCell) o;
+
+ if(rowIndex != treeDataTipCell.rowIndex) {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode() {
+ return rowIndex;
+ }
+}
+
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright notice, this list
+ * of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ * - Neither the name of the copyright holder nor the names of its contributors may be
+ * used to endorse or promote products derived from this software without specific
+ * prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.nuiton.widget.datatips;
+
+import org.nuiton.widget.datatips.DataTipCell;
+import org.nuiton.widget.datatips.DataTipListener;
+import org.nuiton.widget.datatips.TreeDataTipCell;
+
+import javax.swing.*;
+import java.awt.*;
+
+class TreeDataTipListener extends DataTipListener {
+ TreeDataTipListener() {
+ }
+
+ DataTipCell getCell(JComponent component, Point point) {
+ JTree tree = (JTree) component;
+ int rowIndex = tree.getRowForLocation(point.x, point.y);
+ if (rowIndex < 0) {
+ return DataTipCell.NONE;
+ }
+ return new TreeDataTipCell(tree, rowIndex);
+ }
+}
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/main/java/org/nuiton/widget/datatips/package-info.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/datatips/package-info.java (rev 0)
+++ trunk/src/main/java/org/nuiton/widget/datatips/package-info.java 2010-03-25 09:51:44 UTC (rev 251)
@@ -0,0 +1,8 @@
+/**
+ * Add data tips to your Swing table, tree or list.
+ *
+ * Those classes has been copied from original project :
+ * https://datatips.dev.java.net/ and just contains some bugfixes
+ * for nimbus look'n'feel.
+ */
+package org.nuiton.widget.datatips;
Property changes on: trunk/src/main/java/org/nuiton/widget/datatips/package-info.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
1
0
r250 - in trunk/src/main: java/org/nuiton/widget/tooltip resources/i18n
by echatellier@users.nuiton.org 24 Mar '10
by echatellier@users.nuiton.org 24 Mar '10
24 Mar '10
Author: echatellier
Date: 2010-03-24 14:13:33 +0100 (Wed, 24 Mar 2010)
New Revision: 250
Log:
Replace RessourceBundle by nuiton-i18n
Removed:
trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.properties
trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip_fr.properties
Modified:
trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java
trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java
trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties
trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties
Modified: trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java 2010-03-15 14:56:12 UTC (rev 249)
+++ trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java 2010-03-24 13:13:33 UTC (rev 250)
@@ -75,8 +75,8 @@
*/
private static final int MARGIN = 10;
- private static final String MSG = "org.nuiton.widget.tooltip.FocusableTip";
- private static final ResourceBundle msg = ResourceBundle.getBundle(MSG);
+ //private static final String MSG = "org.nuiton.widget.tooltip.FocusableTip";
+ //private static final ResourceBundle msg = ResourceBundle.getBundle(MSG);
public FocusableTip(JComponent attachedComponent, HyperlinkListener listener) {
@@ -169,15 +169,15 @@
}
- /**
+ /*
* Returns localized text for the given key.
*
* @param key The key into the resource bundle.
* @return The localized text.
- */
+ *
static String getString(String key) {
return msg.getString(key);
- }
+ }*/
/**
Deleted: trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.properties
===================================================================
--- trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.properties 2010-03-15 14:56:12 UTC (rev 249)
+++ trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.properties 2010-03-24 13:13:33 UTC (rev 250)
@@ -1 +0,0 @@
-FocusHotkey=Press 'F2' for focus
\ No newline at end of file
Deleted: trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip_fr.properties
===================================================================
--- trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip_fr.properties 2010-03-15 14:56:12 UTC (rev 249)
+++ trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip_fr.properties 2010-03-24 13:13:33 UTC (rev 250)
@@ -1 +0,0 @@
-FocusHotkey=Appuyez sur 'F2' pour agrandir
\ No newline at end of file
Modified: trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java
===================================================================
--- trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java 2010-03-15 14:56:12 UTC (rev 249)
+++ trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java 2010-03-24 13:13:33 UTC (rev 250)
@@ -22,6 +22,8 @@
*/
package org.nuiton.widget.tooltip;
+import static org.nuiton.i18n.I18n._;
+
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
@@ -244,7 +246,7 @@
}
else {
panel.setOpaque(false);
- JLabel label = new JLabel(FocusableTip.getString("FocusHotkey"));
+ JLabel label = new JLabel(_("nuitonwidgets.tootilp.focushotkey")/*FocusableTip.getString("FocusHotkey")*/);
Color fg = UIManager.getColor("Label.disabledForeground");
Font font = textArea.getFont();
font = font.deriveFont(font.getSize2D() - 1.0f);
Modified: trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties
===================================================================
--- trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties 2010-03-15 14:56:12 UTC (rev 249)
+++ trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties 2010-03-24 13:13:33 UTC (rev 250)
@@ -22,3 +22,4 @@
nuitonwidgets.monitor.stream.log=Log stream
nuitonwidgets.monitor.stream.output=Output stream
nuitonwidgets.monitor.title=Application console
+nuitonwidgets.tootilp.focushotkey=Press 'F2' for focus
Modified: trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties
===================================================================
--- trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties 2010-03-15 14:56:12 UTC (rev 249)
+++ trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties 2010-03-24 13:13:33 UTC (rev 250)
@@ -22,3 +22,4 @@
nuitonwidgets.monitor.stream.log=Logs
nuitonwidgets.monitor.stream.output=Sortie standard
nuitonwidgets.monitor.title=Moniteur de l'application
+nuitonwidgets.tootilp.focushotkey=Appuyez sur 'F2' pour agrandir
1
0