Overview | Module | Use | Devguide | Index

Elements' Summary | Elements' Details

:: com :: sun :: star :: awt ::
struct FocusEvent
  Base Hierarchy
      FocusEvent
       ┗ ::com::sun::star::lang::EventObject
Description specifies a keyboard focus event. There are two levels of focus change events: permanent and temporary. Permanent focus change events occur when focus is directly moved from one component to another, such as through calls to requestFocus() or as the user uses the Tab key to traverse components. Temporary focus change events occur when focus is gained or lost for a component as the indirect result of another operation, such as window deactivation or a scrollbar drag. In this case, the original focus state will automatically be restored once that operation is finished, or for the case of window deactivation, when the window is reactivated. Both permanent and temporary focus events are delivered using the FOCUS_GAINED and FOCUS_LOST event ids; the levels may be distinguished in the event using the isTemporary() method.

Elements' Summary
FocusFlags | specifies the reason for the focus change as an arithmetic-or combination of FocusChangeReason.
NextFocus | contains the window which gets the focus on a lose focus event.
Temporary | specifies if this focus change event is a temporary change.

Elements' Details
FocusFlags
short FocusFlags; Description specifies the reason for the focus change as an arithmetic-or combination of FocusChangeReason. See also FocusChangeReason
NextFocus
::com::sun::star::uno::XInterface NextFocus; Description contains the window which gets the focus on a lose focus event.
Temporary
boolean Temporary; Description specifies if this focus change event is a temporary change.

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.