org.erights.e.meta.org.eclipse.swt.widgets
Class ControlMakerSugar

java.lang.Object
  |
  +--org.erights.e.meta.org.eclipse.swt.widgets.ControlMakerSugar

public class ControlMakerSugar
extends Object

Untamed:

Author:
Mark S. Miller

Constructor Summary
private ControlMakerSugar()
          prevent instantiation
 
Method Summary
private static boolean anyContainsFocus(Control[] sources)
          Do any of these have or contain the focus?
private static boolean anyIsActive(Shell[] sources)
          Are any of the sources the active shell?
static boolean transferActive(Shell[] sources, Shell dest)
          Enabled: If any of the sources were the active shell, then make dest the active shell.
static boolean transferFocus(Control[] sources, Control dest)
          Enabled: If any of 'sources' currently has or contains the focus, then requests that 'dest' gets the focus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlMakerSugar

private ControlMakerSugar()
prevent instantiation

Method Detail

anyContainsFocus

private static boolean anyContainsFocus(Control[] sources)
Do any of these have or contain the focus?


transferFocus

public static boolean transferFocus(Control[] sources,
                                    Control dest)
Enabled: If any of 'sources' currently has or contains the focus, then requests that 'dest' gets the focus.

Returns:
Whether the operation was authorized by 'sources', and whether the 'setFocus()' succeeded.

anyIsActive

private static boolean anyIsActive(Shell[] sources)
Are any of the sources the active shell?

None of the sources may be null.


transferActive

public static boolean transferActive(Shell[] sources,
                                     Shell dest)
Enabled: If any of the sources were the active shell, then make dest the active shell.

Neither dest nor any of the sources may be null.



comments?