Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.uda
Class NFSUDTypesEditor

java.lang.Object
  extended by SystemUDSimpleTypesListEditor
      extended by com.ibm.etools.iseries.rse.ui.uda.NFSUDTypesEditor

public class NFSUDTypesEditor
extends SystemUDSimpleTypesListEditor

This is an "editor" for defining the types part of a named type, for iSeries objects.


Field Summary
static String copyright
           
 
Constructor Summary
NFSUDTypesEditor(Composite parent, int nbrColumns)
          Constructor
 
Method Summary
 void addModifyListener(ModifyListener listener)
          Allow the edit pane (or any consumer) to be informed as changes are made to the list.
 void clearTypes()
          Clear the types.
protected  void createContents(Composite parent, int nbrColumns)
          Create and populate widgets
 Control getControl()
          Return primary control for setting focus, among other things
 void modifyText(ModifyEvent event)
          User has modified text in the type or attribute entry fields
 void removeModifyListener(ModifyListener listener)
          Allow the edit pane (or any consumer) to stop listening as changes are made to the list.
 void setDomain(int domain)
          Set domain.
 void setEditable(boolean editable, String vendor)
          We want to disable editing of IBM or vendor-supplied types, so when one of these is selected, this method is called to enter non-editable mode.
 void setEnabled(boolean enable)
          Enable or disable the input-capability of the constituent controls
 void setTypes(String types)
          Initialize the types.
 SystemMessage validate()
          Validate input, and return the error message if an error is found.
 void widgetDefaultSelected(SelectionEvent event)
          User has selected something by Enter
 void widgetSelected(SelectionEvent event)
          User has selected something
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

NFSUDTypesEditor

public NFSUDTypesEditor(Composite parent,
                        int nbrColumns)
Constructor

Parameters:
parent -
nbrColumns -
Method Detail

setDomain

public void setDomain(int domain)
Set domain. The edit pane may possibly appear differently, depending on the domain. When the domain changes (either in "new" or "edit" mode) this method is called.


createContents

protected void createContents(Composite parent,
                              int nbrColumns)
Create and populate widgets


setTypes

public void setTypes(String types)
Initialize the types. These are stored as a single string using a subsystem-decidable delimiter character.


clearTypes

public void clearTypes()
Clear the types. That is, make sure none are selected. This is called when entering "new" mode.


getControl

public Control getControl()
Return primary control for setting focus, among other things


setEnabled

public void setEnabled(boolean enable)
Enable or disable the input-capability of the constituent controls


setEditable

public void setEditable(boolean editable,
                        String vendor)
We want to disable editing of IBM or vendor-supplied types, so when one of these is selected, this method is called to enter non-editable mode.

Parameters:
editable - Whether to disable editing of this type or not
vendor - When disabling, it contains the name of the vendor for substitution purposes

validate

public SystemMessage validate()
Validate input, and return the error message if an error is found. This is called by the consumer upon receipt of a modify event, to show any error messages and to know if there are errors pending or not.


addModifyListener

public void addModifyListener(ModifyListener listener)
Allow the edit pane (or any consumer) to be informed as changes are made to the list. When events are fired, the consumer will call getTypes() to get the new list.


removeModifyListener

public void removeModifyListener(ModifyListener listener)
Allow the edit pane (or any consumer) to stop listening as changes are made to the list.


widgetSelected

public void widgetSelected(SelectionEvent event)
User has selected something


widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent event)
User has selected something by Enter


modifyText

public void modifyText(ModifyEvent event)
User has modified text in the type or attribute entry fields


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.