com.google.gwt.user.client.ui.impl
Class FocusImpl

java.lang.Object
  extended by com.google.gwt.user.client.ui.impl.FocusImpl
Direct Known Subclasses:
FocusImplIE6, FocusImplStandard

public class FocusImpl
extends java.lang.Object

Implementation interface for creating and manipulating focusable elements that aren't naturally focusable in all browsers, such as DIVs.


Method Summary
 void blur(Element elem)
           
 Element createFocusable()
           
 void focus(Element elem)
           
static FocusImpl getFocusImplForPanel()
          Returns the focus implementation class for creating and manipulating focusable elements that aren't naturally focusable in all browsers, such as DIVs.
static FocusImpl getFocusImplForWidget()
          Returns the focus implementation class for manipulating focusable elements that are naturally focusable in all browsers, such as text boxes.
 int getTabIndex(Element elem)
           
 void setAccessKey(Element elem, char key)
           
 void setTabIndex(Element elem, int index)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFocusImplForPanel

public static FocusImpl getFocusImplForPanel()
Returns the focus implementation class for creating and manipulating focusable elements that aren't naturally focusable in all browsers, such as DIVs.


getFocusImplForWidget

public static FocusImpl getFocusImplForWidget()
Returns the focus implementation class for manipulating focusable elements that are naturally focusable in all browsers, such as text boxes.


blur

public void blur(Element elem)

createFocusable

public Element createFocusable()

focus

public void focus(Element elem)

getTabIndex

public int getTabIndex(Element elem)

setAccessKey

public void setAccessKey(Element elem,
                         char key)

setTabIndex

public void setTabIndex(Element elem,
                        int index)