org.richfaces.service

## Class FocusManagerImpl

- java.lang.Object
- - org.richfaces.service.FocusManagerImpl

- All Implemented Interfaces:
    FocusManager

      public class FocusManagerImpl
      extends Object
      implements FocusManager

- - ### Field Summary

    - ### Fields inherited from interface org.richfaces.focus.FocusManager

      `FOCUS_CONTEXT_ATTRIBUTE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FocusManagerImpl()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `focus(String componentId)` Enforces to focus given component.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FocusManagerImpl

          public FocusManagerImpl()

  - ### Method Detail

    - #### focus

          public void focus(String componentId)

      Description copied from interface: `FocusManager`

      Enforces to focus given component.

      In order to ensure the focus will be given to component, this method must be used before `PhaseId.RENDER_RESPONSE` phase takes place.

      Specified by:
        `focus` in interface `FocusManager`
      Parameters:
        `componentId` - ID of the component to be focused; or null if focus should not be enforced

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.