|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.controls.CustomEventsHandler
public class CustomEventsHandler
The custom events handler.
Constructor Summary | |
---|---|
CustomEventsHandler()
Constructor |
|
CustomEventsHandler(ICustomEventsDelegate delegate,
int eventsFlags)
Constructor |
Method Summary | |
---|---|
void |
drawFocus(java.lang.Object field,
int controlID,
net.rim.device.api.ui.Graphics g,
boolean on)
Delegates the drawFocus method to custom events delegate |
ICustomEventsDelegate |
getDelegate()
Returns the custom events delegate |
int |
getEventsFlags()
Returns the events flags |
boolean |
isOnClickRegistered()
Returns whether onClick event is registered. |
boolean |
isOnDrawRegistered()
Returns whether onDraw event is registered. |
boolean |
isOnLoadRegistered()
Returns whether onLoad event is registered. |
boolean |
isOnOrientationChangeRegistered()
Returns whether onOrientationChange event is registered. |
boolean |
isOnRecordChangeRegistered()
Returns whether onRecordChange event is registered. |
boolean |
isOnValueChangeRegistered()
Returns whether onValueChange event is registered. |
boolean |
navigationClick(java.lang.Object field,
int controlID,
ActionList actions,
int status,
int time)
Delegates the navigationClick method to custom events delegate |
boolean |
navigationMovement(java.lang.Object field,
int controlID,
int dx,
int dy,
int status,
int time)
Delegates the navigationMovement method to custom events delegate |
boolean |
navigationUnclick(java.lang.Object field,
int controlID,
int status,
int time)
Delegates the navigationUnclick method to custom events delegate |
void |
onFocus(java.lang.Object field,
int controlID,
int direction)
Delegates the onFocus method to custom events delegate |
boolean |
onLoad(java.lang.Object field,
int controlID)
Delegates the onLoad method to custom events delegate, returns true if custom events delegate onLoad is called and false otherwise. |
void |
onOrientationChange(java.lang.Object field,
int controlID,
int width,
int height)
Delegates the onOrientationChange method to custom events delegate |
void |
onRecordChange(java.lang.Object field,
int controlID)
Delegates the onRecordChange method to custom events delegate |
void |
onUnfocus(java.lang.Object field,
int controlID)
Delegates the onUnfocus method to custom events delegate |
void |
onValueChange(java.lang.Object field,
int controlID,
int context)
Delegates the onValueChange method to custom events delegate |
void |
paint(java.lang.Object field,
int controlID,
net.rim.device.api.ui.Graphics g)
Delegates the paint method to custom events delegate |
void |
setDelegate(ICustomEventsDelegate delegate)
Sets the custom events delegate |
void |
setEventsFlags(int eventsFlags)
Sets the events flags |
boolean |
touchEvent(java.lang.Object field,
int controlID,
net.rim.device.api.ui.TouchEvent message)
Delegates the touchEvent method to custom events delegate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomEventsHandler()
public CustomEventsHandler(ICustomEventsDelegate delegate, int eventsFlags)
delegate
- the custom events delegateeventsFlags
- the event flagsMethod Detail |
---|
public ICustomEventsDelegate getDelegate()
public void setDelegate(ICustomEventsDelegate delegate)
delegate
- the custom events delegate to setpublic int getEventsFlags()
public void setEventsFlags(int eventsFlags)
eventsFlags
- the events flags to setpublic void onOrientationChange(java.lang.Object field, int controlID, int width, int height)
field
- the controlcontrolID
- the control IDwidth
- amount of available horizontal space.height
- amount of available vertical space.public void paint(java.lang.Object field, int controlID, net.rim.device.api.ui.Graphics g)
field
- the controlcontrolID
- the control IDg
- Graphics context for drawing the focus.
public void drawFocus(java.lang.Object field, int controlID, net.rim.device.api.ui.Graphics g, boolean on)
field
- the controlcontrolID
- the control IDg
- Graphics context for drawing the focus.on
- true if the focus should be set; otherwise, false.
public boolean onLoad(java.lang.Object field, int controlID)
field
- the controlcontrolID
- the control ID
public void onFocus(java.lang.Object field, int controlID, int direction)
field
- the controlcontrolID
- the control IDdirection
- indicates from which direction the focus enters the field.public void onUnfocus(java.lang.Object field, int controlID)
field
- the controlcontrolID
- the control IDpublic boolean navigationClick(java.lang.Object field, int controlID, ActionList actions, int status, int time)
field
- the controlcontrolID
- the control IDstatus
- Bitfield of values defined by KeypadListener.time
- number of milliseconds since the device was turned on.
- Returns:
public boolean navigationUnclick(java.lang.Object field, int controlID, int status, int time)
field
- the controlcontrolID
- the control IDstatus
- Bitfield of values defined by KeypadListener.time
- number of milliseconds since the device was turned on.
- Returns:
public boolean navigationMovement(java.lang.Object field, int controlID, int dx, int dy, int status, int time)
field
- the controlcontrolID
- the control IDdx
- magnitude of navigational motion: negative for a move left and postive for a move right.dy
- magnitude of navigational motion: negative for an upwards move, and positive for a downwards move.status
- Bitfield of values defined by KeypadListener.time
- number of milliseconds since the device was turned on.
- Returns:
public boolean touchEvent(java.lang.Object field, int controlID, net.rim.device.api.ui.TouchEvent message)
field
- the controlcontrolID
- the control IDmessage
- TouchEvent
object containing various input parameters including the event type and touch coordinates.public void onValueChange(java.lang.Object field, int controlID, int context)
field
- the controlcontrolID
- the control IDcontext
- information specifying the origin of the change.public void onRecordChange(java.lang.Object field, int controlID)
field
- the controlcontrolID
- the control IDpublic boolean isOnClickRegistered()
public boolean isOnLoadRegistered()
public boolean isOnDrawRegistered()
public boolean isOnOrientationChangeRegistered()
public boolean isOnRecordChangeRegistered()
public boolean isOnValueChangeRegistered()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |