public void fieldChanged(final Field field, final int context) {
menuManger.showMenuSendScreen();
}
});
sendMessagesButton.setFocusListener(new FocusChangeListener() {
/**
* @see FocusChangeListener#focusChanged(Field, int)
*/
public void focusChanged(final Field field, final int eventType) {
setInstructions("Test communication and message processing for various data protocols.");
}
});
final FullWidthButton receiveMessagesButton =
new FullWidthButton("Receive Messages");
receiveMessagesButton.setChangeListener(new FieldChangeListener() {
/**
* @see FieldChangeListener#fieldChanged(Field, int)
*/
public void fieldChanged(final Field field, final int context) {
menuManger.showMenuReceiveScreen();
}
});
receiveMessagesButton.setFocusListener(new FocusChangeListener() {
/**
* @see FocusChangeListener#focusChanged(Field, int)
*/
public void focusChanged(final Field field, final int eventType) {
setInstructions("Test push messaging using an external push server, BPDS pushes and IPC communication. ");
}
});
final FullWidthButton cancelMessagesButton =
new FullWidthButton("Cancel Messages");
cancelMessagesButton.setChangeListener(new FieldChangeListener() {
/**
* @see FieldChangeListener#fieldChanged(Field, int)
*/
public void fieldChanged(final Field field, final int context) {
menuManger.showCancellationScreen();
}
});
cancelMessagesButton.setFocusListener(new FocusChangeListener() {
/**
* @see FocusChangeListener#focusChanged(Field, int)
*/
public void focusChanged(final Field field, final int eventType) {
setInstructions("Test message cancellation with different types of settings. ");
}
});
final FullWidthButton authButton =
new FullWidthButton("Basic Authentication");
authButton.setChangeListener(new FieldChangeListener() {
/**
* @see FieldChangeListener#fieldChanged(Field, int)
*/
public void fieldChanged(final Field field, final int context) {
menuManger.showAuthenticationScreen();
}
});
authButton.setFocusListener(new FocusChangeListener() {
/**
* @see FocusChangeListener#focusChanged(Field, int)
*/
public void focusChanged(final Field field, final int eventType) {
setInstructions("Test basic authentication. ");
}
});
final FullWidthButton streamButton =
new FullWidthButton("Stream Data Upload");
streamButton.setChangeListener(new FieldChangeListener() {
/**
* @see FieldChangeListener#fieldChanged(Field, int)
*/
public void fieldChanged(final Field field, final int eventType) {
menuManger.showStreamDataScreen();
}
});
streamButton.setFocusListener(new FocusChangeListener() {
/**
* @see FocusChangeListener#focusChanged(Field, int)
*/
public void focusChanged(final Field field, final int eventType) {
setInstructions("Test handling of stream data.");