org.xwiki.gwt.wysiwyg.client.plugin.macro.input
Interface HasFocus

All Known Implementing Classes:
AbstractInput, ChoiceInput, TextInput

public interface HasFocus

Interface to an object that can have focus.

NOTE: We use our own interface and not the one provided by GWT HasFocus because we need only a way to focus the object without implementing SourcesFocusEvents and SourcesKeyboardEvents.

Version:
$Id: f3bb20d3d9ed4f24ee97bb02cb7e8f3318c1e337 $

Method Summary
 void setFocus(boolean focused)
          Gives or takes the focus to/from this object.
 

Method Detail

setFocus

void setFocus(boolean focused)
Gives or takes the focus to/from this object. Only one object can have focus at a time.

Parameters:
focused - true to give the focus to this object, false to take it


Copyright © 2004–2014 XWiki. All rights reserved.