Class ModifyDialogTabPage.DefaultFocusManager
- java.lang.Object
-
- org.eclipse.swt.events.FocusAdapter
-
- org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage.DefaultFocusManager
-
- All Implemented Interfaces:
java.util.EventListener,org.eclipse.swt.events.FocusListener,org.eclipse.swt.internal.SWTEventListener
- Enclosing class:
- ModifyDialogTabPage
protected static final class ModifyDialogTabPage.DefaultFocusManager extends org.eclipse.swt.events.FocusAdapterThis class provides the default way to preserve and re-establish the focus over multiple modify sessions. Each ModifyDialogTabPage has its own instance, and it should add all relevant controls upon creation, always in the same sequence. This established a mapping of controls to indexes, which allows to restore the focus in a later session. The index is saved in the dialog settings, and there is only one common preference for all tab pages. It is always the currently active tab page which stores its focus index.
-
-
Constructor Summary
Constructors Constructor Description DefaultFocusManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ModifyDialogTabPage.Preference preference)voidadd(org.eclipse.swt.widgets.Control control)voidfocusGained(org.eclipse.swt.events.FocusEvent e)booleanisUsed()voidresetFocus()voidrestoreFocus()
-
-
-
Method Detail
-
focusGained
public void focusGained(org.eclipse.swt.events.FocusEvent e)
- Specified by:
focusGainedin interfaceorg.eclipse.swt.events.FocusListener- Overrides:
focusGainedin classorg.eclipse.swt.events.FocusAdapter
-
add
public void add(org.eclipse.swt.widgets.Control control)
-
add
public void add(ModifyDialogTabPage.Preference preference)
-
isUsed
public boolean isUsed()
-
restoreFocus
public void restoreFocus()
-
resetFocus
public void resetFocus()
-
-