com.vaadin.client.ui
Class SimpleFocusablePanel

java.lang.Object
  extended by SimplePanel
      extended by com.vaadin.client.ui.SimpleFocusablePanel
All Implemented Interfaces:
Focusable
Direct Known Subclasses:
FocusableScrollPanel, FocusElementPanel, VMenuBar, VSlider

public class SimpleFocusablePanel
extends SimplePanel
implements Focusable

Compared to FocusPanel in GWT this panel does not support eg. accesskeys, but is simpler by its dom hierarchy nor supports focusing via java api.


Constructor Summary
SimpleFocusablePanel()
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addBlurHandler(BlurHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addFocusHandler(FocusHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addKeyDownHandler(KeyDownHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addKeyPressHandler(KeyPressHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addKeyUpHandler(KeyUpHandler handler)
           
 void focus()
          Sets focus to this widget.
 void setFocus(boolean focus)
           
 void setTabIndex(int tabIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFocusablePanel

public SimpleFocusablePanel()
Method Detail

addFocusHandler

public com.google.gwt.event.shared.HandlerRegistration addFocusHandler(FocusHandler handler)

addBlurHandler

public com.google.gwt.event.shared.HandlerRegistration addBlurHandler(BlurHandler handler)

addKeyDownHandler

public com.google.gwt.event.shared.HandlerRegistration addKeyDownHandler(KeyDownHandler handler)

addKeyPressHandler

public com.google.gwt.event.shared.HandlerRegistration addKeyPressHandler(KeyPressHandler handler)

addKeyUpHandler

public com.google.gwt.event.shared.HandlerRegistration addKeyUpHandler(KeyUpHandler handler)

setFocus

public void setFocus(boolean focus)

focus

public void focus()
Description copied from interface: Focusable
Sets focus to this widget.

Specified by:
focus in interface Focusable

setTabIndex

public void setTabIndex(int tabIndex)


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.