org.nakedobjects.plugins.dnd.viewer.focus
Class AbstractFocusManager

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.focus.AbstractFocusManager
All Implemented Interfaces:
FocusManager
Direct Known Subclasses:
ActionDialogFocusManager, SubviewFocusManager

public abstract class AbstractFocusManager
extends java.lang.Object
implements FocusManager

Abstract focus manager that uses the set of views to move focus between from the concrete subclass.

See Also:
getChildViews()

Field Summary
protected  View container
           
protected  View focus
           
 
Constructor Summary
AbstractFocusManager(View container)
           
AbstractFocusManager(View container, View initalFocus)
           
 
Method Summary
 void focusFirstChildView()
          The first child view within the container to move the focus to; move down to the first view within the current view.
 void focusInitialChildView()
           
 void focusLastChildView()
           
 void focusNextView()
          The next view within the container to move the focus to; move to next field.
 void focusParentView()
          The parent view within the container to move the focus to; move up to containing view in the hierachy.
 void focusPreviousView()
          The previous view within the container to move the focus to; move to previous field.
protected abstract  View[] getChildViews()
           
 View getFocus()
           
 void setFocus(View view)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

container

protected View container

focus

protected View focus
Constructor Detail

AbstractFocusManager

public AbstractFocusManager(View container)

AbstractFocusManager

public AbstractFocusManager(View container,
                            View initalFocus)
Method Detail

focusFirstChildView

public void focusFirstChildView()
Description copied from interface: FocusManager
The first child view within the container to move the focus to; move down to the first view within the current view.

Specified by:
focusFirstChildView in interface FocusManager

focusInitialChildView

public void focusInitialChildView()
Specified by:
focusInitialChildView in interface FocusManager

focusLastChildView

public void focusLastChildView()
Specified by:
focusLastChildView in interface FocusManager

focusNextView

public void focusNextView()
Description copied from interface: FocusManager
The next view within the container to move the focus to; move to next field.

Specified by:
focusNextView in interface FocusManager

focusParentView

public void focusParentView()
Description copied from interface: FocusManager
The parent view within the container to move the focus to; move up to containing view in the hierachy.

Specified by:
focusParentView in interface FocusManager

focusPreviousView

public void focusPreviousView()
Description copied from interface: FocusManager
The previous view within the container to move the focus to; move to previous field.

Specified by:
focusPreviousView in interface FocusManager

getChildViews

protected abstract View[] getChildViews()

getFocus

public View getFocus()
Specified by:
getFocus in interface FocusManager

setFocus

public void setFocus(View view)
Specified by:
setFocus in interface FocusManager

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.