org.nakedobjects.viewer.lightweight
Interface KeyboardAccessible

All Known Implementing Classes:
AbstractValueView

public interface KeyboardAccessible


Method Summary
 boolean canChangeValue()
          Determines if the user is able to change the held value.
 boolean canFocus()
           
 void editComplete()
          Indicates that editing has been completed and the entry should be saved.
 void focusLost()
           
 void focusRecieved()
           
 boolean hasFocus()
           
 void keyPressed(int keyCode, int modifiers)
          Called when the user presses any key on the keyboard while this view has the focus.
 void keyReleased(int keyCode, int modifiers)
          Called when the user releases any key on the keyboard while this view has the focus.
 void keyTyped(char keyCode)
          Called when the user presses a non-control key (i.e. data entry keys and not shift, up-arrow etc).
 void redraw()
           
 

Method Detail

canChangeValue

public boolean canChangeValue()
Determines if the user is able to change the held value.


canFocus

public boolean canFocus()

editComplete

public void editComplete()
Indicates that editing has been completed and the entry should be saved. Will be called by the view manager when other action place within the parent.


focusLost

public void focusLost()

focusRecieved

public void focusRecieved()

hasFocus

public boolean hasFocus()

keyPressed

public void keyPressed(int keyCode,
                       int modifiers)
Called when the user presses any key on the keyboard while this view has the focus.

Parameters:
keyCode -
modifiers -

keyReleased

public void keyReleased(int keyCode,
                        int modifiers)
Called when the user releases any key on the keyboard while this view has the focus.

Parameters:
keyCode -
modifiers -

keyTyped

public void keyTyped(char keyCode)
Called when the user presses a non-control key (i.e. data entry keys and not shift, up-arrow etc). Such a key press will result in a prior call to keyPressed and a subsequent call to keyReleased.

Parameters:
keyCode -

redraw

public void redraw()