<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FGWT%2FImage_Hyperlink</id>
		<title>Java/GWT/Image Hyperlink - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FGWT%2FImage_Hyperlink"/>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/GWT/Image_Hyperlink&amp;action=history"/>
		<updated>2026-04-07T02:37:47Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://jexp.ru/index.php?title=Java/GWT/Image_Hyperlink&amp;diff=7121&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/GWT/Image_Hyperlink&amp;diff=7121&amp;oldid=prev"/>
				<updated>2010-06-01T06:35:53Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 06:35, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://jexp.ru/index.php?title=Java/GWT/Image_Hyperlink&amp;diff=7120&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/GWT/Image_Hyperlink&amp;diff=7120&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:44Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== ImageHyperlink component for GWT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
ImageHyperlink component for GWT&lt;br /&gt;
Copyright (C) 2006 Alexei Sokolov http://gwt.ruponents.googlepages.ru/&lt;br /&gt;
This library is free software; you can redistribute it and/or&lt;br /&gt;
modify it under the terms of the GNU Lesser General Public&lt;br /&gt;
License as published by the Free Software Foundation; either&lt;br /&gt;
version 2.1 of the License, or (at your option) any later version.&lt;br /&gt;
This library is distributed in the hope that it will be useful,&lt;br /&gt;
but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU&lt;br /&gt;
Lesser General Public License for more details.&lt;br /&gt;
You should have received a copy of the GNU Lesser General Public&lt;br /&gt;
License along with this library; if not, write to the Free Software&lt;br /&gt;
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA&lt;br /&gt;
*/&lt;br /&gt;
package com.gwt.ruponents.client;&lt;br /&gt;
import com.google.gwt.user.client.DOM;&lt;br /&gt;
import com.google.gwt.user.client.Event;&lt;br /&gt;
import com.google.gwt.user.client.ui.Hyperlink;&lt;br /&gt;
import com.google.gwt.user.client.ui.Image;&lt;br /&gt;
import com.google.gwt.user.client.ui.MouseListener;&lt;br /&gt;
import com.google.gwt.user.client.ui.MouseListenerCollection;&lt;br /&gt;
import com.google.gwt.user.client.ui.SourcesMouseEvents;&lt;br /&gt;
public class ImageHyperlink extends Hyperlink implements SourcesMouseEvents {&lt;br /&gt;
  private MouseListenerCollection mouseListeners;&lt;br /&gt;
  public ImageHyperlink(Image img) {&lt;br /&gt;
    this(img, &amp;quot;&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  public ImageHyperlink(Image img, String targetHistoryToken) {&lt;br /&gt;
    super();&lt;br /&gt;
    DOM.appendChild(DOM.getFirstChild(getElement()), img.getElement());&lt;br /&gt;
    setTargetHistoryToken(targetHistoryToken);&lt;br /&gt;
    img.unsinkEvents(Event.ONCLICK | Event.MOUSEEVENTS);&lt;br /&gt;
    sinkEvents(Event.ONCLICK | Event.MOUSEEVENTS);&lt;br /&gt;
  }&lt;br /&gt;
  public void addMouseListener(MouseListener listener) {&lt;br /&gt;
    if (mouseListeners == null)&lt;br /&gt;
      mouseListeners = new MouseListenerCollection();&lt;br /&gt;
    mouseListeners.add(listener);&lt;br /&gt;
  }&lt;br /&gt;
  public void removeMouseListener(MouseListener listener) {&lt;br /&gt;
    if (mouseListeners != null)&lt;br /&gt;
      mouseListeners.remove(listener);&lt;br /&gt;
  }&lt;br /&gt;
  public void onBrowserEvent(Event event) {&lt;br /&gt;
    super.onBrowserEvent(event);&lt;br /&gt;
    switch (DOM.eventGetType(event)) {&lt;br /&gt;
    case Event.ONMOUSEDOWN:&lt;br /&gt;
    case Event.ONMOUSEUP:&lt;br /&gt;
    case Event.ONMOUSEMOVE:&lt;br /&gt;
    case Event.ONMOUSEOVER:&lt;br /&gt;
    case Event.ONMOUSEOUT: {&lt;br /&gt;
      if (mouseListeners != null)&lt;br /&gt;
        mouseListeners.fireMouseEvent(this, event);&lt;br /&gt;
      break;&lt;br /&gt;
    }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}  &lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>