com.vaadin.client.ui.calendar.schedule
Class FocusableGrid

java.lang.Object
  extended by Grid
      extended by com.vaadin.client.ui.calendar.schedule.FocusableGrid
All Implemented Interfaces:
Focusable
Direct Known Subclasses:
MonthGrid

public class FocusableGrid
extends Grid
implements Focusable

A Grid that can be focused

Since:
7.1
Author:
Vaadin Ltd.

Constructor Summary
FocusableGrid()
          Constructor
FocusableGrid(int rows, int columns)
           
 
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)
           
 void focus()
          Focus the panel
protected  void makeFocusable()
           
 void setFocus(boolean focus)
          Sets/Removes the keyboard focus to the panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusableGrid

public FocusableGrid()
Constructor


FocusableGrid

public FocusableGrid(int rows,
                     int columns)
Method Detail

makeFocusable

protected void makeFocusable()

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)

setFocus

public void setFocus(boolean focus)
Sets/Removes the keyboard focus to the panel.

Parameters:
focus - If set to true then the focus is moved to the panel, if set to false the focus is removed

focus

public void focus()
Focus the panel

Specified by:
focus in interface Focusable


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