|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2009 EclipseSource and others. All rights reserved. |
2 |
* Copyright (c) 2009, 2010 EclipseSource and others. All rights reserved. |
| 3 |
* This program and the accompanying materials are made available under the |
3 |
* This program and the accompanying materials are made available under the |
| 4 |
* terms of the Eclipse Public License v1.0 which accompanies this distribution, |
4 |
* terms of the Eclipse Public License v1.0 which accompanies this distribution, |
| 5 |
* and is available at http://www.eclipse.org/legal/epl-v10.html |
5 |
* and is available at http://www.eclipse.org/legal/epl-v10.html |
|
Lines 149-154
Link Here
|
| 149 |
this._removeEventListeners(); |
149 |
this._removeEventListeners(); |
| 150 |
this._text = ""; |
150 |
this._text = ""; |
| 151 |
this._linksCount = 0; |
151 |
this._linksCount = 0; |
|
|
152 |
this._currentFocusedLink = -1; |
| 152 |
}, |
153 |
}, |
| 153 |
|
154 |
|
| 154 |
_applyHyperlinksStyleProperties : function() { |
155 |
_applyHyperlinksStyleProperties : function() { |
|
Lines 304-317
Link Here
|
| 304 |
var linkElement = this.getElement(); |
305 |
var linkElement = this.getElement(); |
| 305 |
if( linkElement ) { |
306 |
if( linkElement ) { |
| 306 |
var hyperlinks = linkElement.getElementsByTagName( "span" ); |
307 |
var hyperlinks = linkElement.getElementsByTagName( "span" ); |
| 307 |
if( this._currentFocusedLink >= 0 ) { |
308 |
if( this._currentFocusedLink >= 0 && this._currentFocusedLink < hyperlinks.length ) { |
| 308 |
hyperlinks[ this._currentFocusedLink ].blur(); |
309 |
hyperlinks[ this._currentFocusedLink ].blur(); |
| 309 |
if( qx.core.Variant.isSet( "qx.client", "webkit" ) ) { |
310 |
if( qx.core.Variant.isSet( "qx.client", "webkit" ) ) { |
| 310 |
hyperlinks[ this._currentFocusedLink ].style.outline = "none"; |
311 |
hyperlinks[ this._currentFocusedLink ].style.outline = "none"; |
| 311 |
} |
312 |
} |
| 312 |
} |
313 |
} |
| 313 |
this._currentFocusedLink = id; |
314 |
this._currentFocusedLink = id; |
| 314 |
if( this._currentFocusedLink >= 0 ) { |
315 |
if( this._currentFocusedLink >= 0 && this._currentFocusedLink < hyperlinks.length ) { |
| 315 |
hyperlinks[ this._currentFocusedLink ].focus(); |
316 |
hyperlinks[ this._currentFocusedLink ].focus(); |
| 316 |
if( qx.core.Variant.isSet( "qx.client", "webkit" ) ) { |
317 |
if( qx.core.Variant.isSet( "qx.client", "webkit" ) ) { |
| 317 |
hyperlinks[ this._currentFocusedLink ].style.outline = "1px dotted"; |
318 |
hyperlinks[ this._currentFocusedLink ].style.outline = "1px dotted"; |