JIDE 3.5.15

com.jidesoft.docking
Interface Refocusable

All Known Implementing Classes:
DockableFrame, Workspace

public interface Refocusable

An interface to provide a method to return focus to the last previous focus owner, or to a default focus component if the last previous focus owner is null or unknown. An implementing class is responsible for maintaining last focused and default focus components.


Method Summary
 Component getDefaultFocusComponent()
          Gets the default focus component.
 Component getFocusedComponent()
          Gets the subcomponent which holds the focus.
 boolean requestFocusInInternalWindow()
          Requests that internal window receive focus.
 void setDefaultFocusComponent(Component defaultFocusComponent)
          Sets the default focus component.
 

Method Detail

requestFocusInInternalWindow

boolean requestFocusInInternalWindow()
Requests that internal window receive focus.

Returns:
was focus requested on some Component

getFocusedComponent

Component getFocusedComponent()
Gets the subcomponent which holds the focus. When the container is deactivated this will be the component that would receive focus on activation returned to it.

See also setLastFocusedComponent, getDefaultFocusComponent, setDefaultFocusComponent

Returns:
the last-focused subcomponent

getDefaultFocusComponent

Component getDefaultFocusComponent()
Gets the default focus component. When the container is activated for the first time, this component will get focus.

See also setDefaultFocusComponent, getLastFocusedComponent, setLastFocusedComponent

Returns:
the default component.

setDefaultFocusComponent

void setDefaultFocusComponent(Component defaultFocusComponent)
Sets the default focus component. When the container is activated for the first time, this component will get focus.

See also getDefaultFocusComponent, getLastFocusedComponent, setLastFocusedComponent

Parameters:
defaultFocusComponent -

JIDE 3.5.15