Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Release 3.0

Interface ISystemAddListener

public interface ISystemAddListener

This is an interface used by the AS400SelectFieldForm, AS400SelectFieldDialog and AS400SelectFieldAction classes to enable the caller to be informed when the user presses the Add button for the selected field.

If you call the enableAddButton method you must pass an object that implements this interface. The dialog will call you back when the user presses the Add button, so you can take appropriate action.

Method Summary
  String addButtonPressed ( IHost selectedConnection, Object selectedObject)
          The user has pressed the Add button.
  String okToEnableAddButton ( IHost selectedConnection, Object selectedObject)
          The user has selected an object.

Method Detail


String addButtonPressed(
IHost selectedConnection,
Object selectedObject)
The user has pressed the Add button. Do something appropriate with the request. If this action fails for some reason, or you wish to display a completion message, return message text that will be displayed in the dialog's message line. Else, return null.


String okToEnableAddButton(
IHost selectedConnection,
Object selectedObject)
The user has selected an object. Is this field valid to be added? If so, return null. If not, return a string to display on the message line indicating why it is not valid, such as it already has been added

Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire