|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.new_lib.navigator_base
This class provides a simple base class for objects which represents a current position within an interactor tree and provide an API for moving that position around in the tree (i.e., implement navigable).
Field Summary | |
protected interactor |
_current_location
The current location of the navigator in the tree. |
Constructor Summary | |
navigator_base(interactor cur_loc)
Construct a navigator based on an initial position in the tree. |
Method Summary | |
void |
arrive(interactor at_interactor)
Provide feedback and/or actions associated with arriving at a particular interactor node. |
interactor |
current_location()
The current location of the navigator in the tree. |
void |
depart(interactor from_interactor)
Provide feedback and/or actions associated with leaving a particular interactor node. |
protected boolean |
do_move(interactor target)
Do a local area move to the given target object. |
protected boolean |
do_preview(interactor target)
Do the preview for a local area move to the given target object. |
boolean |
enter_text_entry_mode(event evt,
java.lang.Object user_info)
Request to enter text entry mode. |
boolean |
exit_text_entry_mode(event evt,
java.lang.Object user_info)
Indicate that we are leaving text entry mode and returning to navigation mode. |
protected interactor |
find_down(interactor from_loc)
Find the next node moving down, returning null if we hit the bottom. |
protected interactor |
find_left(interactor from_loc)
Find the next node moving left, returning null if we go beyond the first child. |
protected interactor |
find_right(interactor from_loc)
Find the next node moving right, returning null if we go beyond the last child. |
protected interactor |
find_up(interactor from_loc)
Find the next node moving up, returning null if we hit the top. |
void |
focus_set_enter(event cause_evt,
focus_dispatch_agent of_agent,
java.lang.Object user_info)
Method called when we go in the focus set. |
void |
focus_set_exit(event cause_evt,
focus_dispatch_agent of_agent,
java.lang.Object user_info)
Method called when we go in the focus set. |
void |
hit_bottom()
Provide feedback for attempting to move down past a leaf. |
void |
hit_left()
Provide feedback for attempting to move left past the first sibling. |
void |
hit_right()
Provide feedback for attempting to move right past the last sibling. |
void |
hit_top()
Provide feedback for attempting to move up past the root. |
boolean |
navigate_down(event evt,
java.lang.Object user_info)
Navigate downwards in the tree (move to first child). |
boolean |
navigate_left(event evt,
java.lang.Object user_info)
Navigate left in the tree (move to the previous sibling). |
boolean |
navigate_right(event evt,
java.lang.Object user_info)
Navigate right in the tree (move to the next sibling). |
boolean |
navigate_to_top(event evt,
java.lang.Object user_info)
Navigate to the root of the tree. |
void |
navigate_to(interactor target_location)
Move the current location to an arbitrary interactor |
boolean |
navigate_up(event evt,
java.lang.Object user_info)
Navigate upwards in the tree (move to the parent). |
boolean |
perform_action(int act_num,
event evt,
java.lang.Object user_info)
Do an associated with the interactor at the current location. |
void |
preview_arrive(interactor at_interactor)
Provide preview feedback associated with arriving at a particular interactor node. |
void |
preview_depart(interactor from_interactor)
Provide preview feedback associated with leaving a particular interactor node. |
boolean |
preview_down(event evt,
java.lang.Object user_info)
Perform a preview of the actions that would be taken on a navigate_down(). |
void |
preview_hit_bottom()
Provide preview feedback for attempting to move down past a leaf. |
void |
preview_hit_left()
Provide preview feedback for attempting to move left past the first sibling. |
void |
preview_hit_right()
Provide preview feedback for attempting to move right past the last sibling. |
void |
preview_hit_top()
Provide preview feedback for attempting to move up past the root. |
boolean |
preview_left(event evt,
java.lang.Object user_info)
Perform a preview of the actions that would be taken on a navigate_left(). |
boolean |
preview_right(event evt,
java.lang.Object user_info)
Perform a preview of the actions that would be taken on a navigate_right(). |
boolean |
preview_to_top(event evt,
java.lang.Object user_info)
Perform a preview of the actions that would be taken on a navigate_to_top(). |
void |
preview_to(interactor target_location)
Perform a preview of the actions that moving to an arbitrary interactor would do. |
boolean |
preview_up(event evt,
java.lang.Object user_info)
Perform a preview of the actions that would be taken on a navigate_up(). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected interactor _current_location
Constructor Detail |
public navigator_base(interactor cur_loc)
interactor
- cur_loc initial location for the navigatorMethod Detail |
public interactor current_location()
public void navigate_to(interactor target_location)
interactor
- target_location the position in the tree we should
move toprotected interactor find_up(interactor from_loc)
interactor
- from_loc the interactor we are moving up fromprotected interactor find_down(interactor from_loc)
interactor
- from_loc the interactor we are moving down fromprotected interactor find_left(interactor from_loc)
interactor
- from_loc the interactor we are moving left fromprotected interactor find_right(interactor from_loc)
interactor
- from_loc the interactor we are moving right fromprotected boolean do_move(interactor target)
interactor
- target the interactor we are moving topublic boolean navigate_up(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean navigate_down(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean navigate_left(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean navigate_right(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean navigate_to_top(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timeprotected boolean do_preview(interactor target)
interactor
- target the interactor we are previewing the moving topublic void preview_to(interactor target_location)
interactor
- target_location the position in the tree we should
preview to.public boolean preview_up(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean preview_down(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean preview_left(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean preview_right(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean preview_to_top(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean enter_text_entry_mode(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean exit_text_entry_mode(event evt, java.lang.Object user_info)
event
- evt the event causing this inputObject
- user_info information supplied at focus timepublic boolean perform_action(int act_num, event evt, java.lang.Object user_info)
int
- act_num number of the action to performevent
- evt the event causing this inputObject
- user_info information supplied at focus timepublic void hit_top()
public void hit_bottom()
public void hit_left()
public void hit_right()
public void preview_hit_top()
public void preview_hit_bottom()
public void preview_hit_left()
public void preview_hit_right()
public void depart(interactor from_interactor)
interactor
- from_interactorpublic void arrive(interactor at_interactor)
interactor
- at_interactorpublic void preview_depart(interactor from_interactor)
interactor
- from_interactorpublic void preview_arrive(interactor at_interactor)
interactor
- at_interactorpublic void focus_set_enter(event cause_evt, focus_dispatch_agent of_agent, java.lang.Object user_info)
event
- cause_evt the event that caused the focus.focus_dispatch_agent
- of_agent the agent doing the focus.Object
- user_info uninterpreted information that was
given to the agent when the focus
was established.public void focus_set_exit(event cause_evt, focus_dispatch_agent of_agent, java.lang.Object user_info)
event
- cause_evt the event that caused this.focus_dispatch_agent
- of_agent the agent doing the this.Object
- user_info uninterpreted information that was
given to the agent when the focus
was established.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |