TPTP 4.4.0 Monitoring Tools Project
Internal API Specification

org.eclipse.tptp.wsdm.tooling.editor.dde.dialogs.internal
Class ReferenceParamPropertyDialog

java.lang.Object
  extended byorg.eclipse.tptp.wsdm.tooling.editor.dde.dialogs.internal.ReferenceParamPropertyDialog

public class ReferenceParamPropertyDialog
extends java.lang.Object

This class forms the UI component for adding or editing a custom serializer type.


Constructor Summary
ReferenceParamPropertyDialog(DescriptorEditor editor, int dialogType)
          This constructor takes a DescriptorEditor object and int value which specifies the type of dialog.
 
Method Summary
 org.eclipse.swt.widgets.Button getBtnCancel()
          Getter method for Cancel button in this dialog
 org.eclipse.swt.widgets.Button getBtnOk()
          Getter method for Ok button in this dialog
 DescriptorEditor getEditor()
          Getter method for DescriptorEditor object for this dialog instance
 org.eclipse.swt.widgets.Shell getParent()
           
 org.eclipse.swt.widgets.Text getTxtName()
           
 org.eclipse.swt.widgets.Text getTxtNameSpace()
           
 org.eclipse.swt.widgets.Text getTxtPrefix()
           
 org.eclipse.swt.widgets.Text getTxtValue()
           
 void setData(java.lang.String data)
           
 java.lang.String showDialog()
          Method that opens and displays the dialog on the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceParamPropertyDialog

public ReferenceParamPropertyDialog(DescriptorEditor editor,
                                    int dialogType)
This constructor takes a DescriptorEditor object and int value which specifies the type of dialog.
e.g if dialogType = 1, then it is for adding a custom serializer
else if dialogType = 2, then it is for editing a custom serializer

Parameters:
editor - - DescriptorEditor object
dialogType - - int value representing the type of dialog
Method Detail

getBtnCancel

public org.eclipse.swt.widgets.Button getBtnCancel()
Getter method for Cancel button in this dialog

Returns:
the Cancel button component

getBtnOk

public org.eclipse.swt.widgets.Button getBtnOk()
Getter method for Ok button in this dialog

Returns:
the Ok button component

getEditor

public DescriptorEditor getEditor()
Getter method for DescriptorEditor object for this dialog instance

Returns:
the DescriptorEditor object

showDialog

public java.lang.String showDialog()
Method that opens and displays the dialog on the screen.

Returns:
the CustomSerializerType object after the Ok button is clicked.
null if the operation is cancelled.

getParent

public org.eclipse.swt.widgets.Shell getParent()

setData

public void setData(java.lang.String data)

getTxtName

public org.eclipse.swt.widgets.Text getTxtName()

getTxtNameSpace

public org.eclipse.swt.widgets.Text getTxtNameSpace()

getTxtPrefix

public org.eclipse.swt.widgets.Text getTxtPrefix()

getTxtValue

public org.eclipse.swt.widgets.Text getTxtValue()

TPTP 4.4.0 Monitoring Tools Project
Internal API Specification