com.extjs.gxt.ui.client.aria
Class FocusFrame

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.aria.FocusFrame
All Implemented Interfaces:
Observable

public class FocusFrame
extends BaseObservable

Adds a frame around a given component to indicate a component has focus.


Method Summary
 void frame(Component newComponent)
          Frames the given component.
 void frame(Component newComponent, com.google.gwt.user.client.Element newElement)
          Frames the given component.
static FocusFrame get()
           
 void hide(Component c)
          Hides the frame.
protected  void init()
           
 void show(Component c)
          Shows the frame on a component that has been previously framed.
 void sync(Component c)
          Updates the frame's size and position to match the component.
 void sync(Component c, com.google.gwt.user.client.Element elem)
          Updates the frame's size and position to match the component's child element.
 void unframe()
          Removes and visible frames.
 void unframe(Component c)
          Remove the comonent's frame.
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static FocusFrame get()

frame

public void frame(Component newComponent)
Frames the given component.

Parameters:
newComponent - the component to be framed

frame

public void frame(Component newComponent,
                  com.google.gwt.user.client.Element newElement)
Frames the given component.

Parameters:
newComponent - the component to be framed
newElement - a child element of the component where the frame should be applied

hide

public void hide(Component c)
Hides the frame.

Parameters:
c - the framed component

show

public void show(Component c)
Shows the frame on a component that has been previously framed.

Parameters:
c - the component

sync

public void sync(Component c)
Updates the frame's size and position to match the component.

Parameters:
c - the component

sync

public void sync(Component c,
                 com.google.gwt.user.client.Element elem)
Updates the frame's size and position to match the component's child element.

Parameters:
c - the component
elem - the child element

unframe

public void unframe()
Removes and visible frames.


unframe

public void unframe(Component c)
Remove the comonent's frame.

Parameters:
c - the component

init

protected void init()