|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wrq.vhi.script.api.EntityEventHandler movecursor.AddressEdit
public class AddressEdit
Handle the move cursor event for the Address_edit entity.
This event handler moves the cursor between tabstops while writing
attribute values. Handling the MoveCursor
event bypasses
the Verastream tabstop logic.
Without this event handler, the Verastream server will move the cursor between tabstops, and will write a new attribute value whenever it reaches a tabstop corresponding to an attribute that needs to be updated.
When using a MoveCursor
event handler, Verastream will
write the attribute values in an arbitrary order (usually the order in
which the attributes were defined in the model). This is usually
less optimal, unless the host application provides a way to quickly
move between attributes.
The event handler logic is simple. Compare the current row the cursor is in and the desired row. Move the cursor forward or backward until it reaches the desired row. If the cursor is not in the desired column, use the find key to move it there.
Field Summary | |
---|---|
static java.lang.String |
description
|
static int |
entityArrivalTimeout
Timeout in seconds for the entityArrival() event. |
static int |
entityDepartureTimeout
Timeout in seconds for the entityDeparture() event. |
static int |
moveCursorTimeout
Timeout in seconds for the moveCursor() event. |
static int |
writeAttributesTimeout
Timeout in seconds for the writeAttributes() event. |
Fields inherited from interface com.wrq.vhi.script.api.EventHandler |
---|
DEFAULT_TIMEOUT |
Constructor Summary | |
---|---|
AddressEdit()
|
Method Summary | |
---|---|
void |
moveCursor(com.wrq.vhi.script.api.EntityMoveCursorEvent event)
Move the cursor to a tabstop. |
Methods inherited from class com.wrq.vhi.script.api.EntityEventHandler |
---|
entityArrival, entityDeparture, writeAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String description
public static final int entityArrivalTimeout
public static final int entityDepartureTimeout
public static final int moveCursorTimeout
public static final int writeAttributesTimeout
Constructor Detail |
---|
public AddressEdit()
Method Detail |
---|
public void moveCursor(com.wrq.vhi.script.api.EntityMoveCursorEvent event) throws com.wrq.apptrieve.agent.ApptrieveException
moveCursor
in class com.wrq.vhi.script.api.EntityEventHandler
event
- the event instance
com.wrq.apptrieve.agent.ApptrieveException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |