org.prorefactor.refactor.messages
Class DataEntryDialog

java.lang.Object
  extended by org.prorefactor.refactor.messages.DataEntryDialog

public class DataEntryDialog
extends java.lang.Object

DataEntryDialog class uses org.eclipse.swt libraries to implement a dialog that accepts basic personal information that is added to a Table widget or edits a TableItem entry to represent the entered data.


Constructor Summary
DataEntryDialog(Shell parent)
           
 
Method Summary
 java.lang.String[] getLabels()
           
 java.lang.String getTitle()
           
 java.lang.String[] getValues()
          Returns the contents of the Text widgets in the dialog in a String array.
 java.lang.String[] open()
          Opens the dialog in the given state.
 void setLabels(java.lang.String[] labels)
           
 void setTitle(java.lang.String title)
           
 void setValues(java.lang.String[] itemInfo)
          Sets the values of the Text widgets of the dialog to the values supplied in the parameter array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataEntryDialog

public DataEntryDialog(Shell parent)
Method Detail

getLabels

public java.lang.String[] getLabels()

getTitle

public java.lang.String getTitle()

getValues

public java.lang.String[] getValues()
Returns the contents of the Text widgets in the dialog in a String array.

Returns:
String[] The contents of the text widgets of the dialog. May return null if all text widgets are empty.

open

public java.lang.String[] open()
Opens the dialog in the given state. Sets Text widget contents and dialog behaviour accordingly.

Parameters:
dialogState - int The state the dialog should be opened in.

setLabels

public void setLabels(java.lang.String[] labels)

setTitle

public void setTitle(java.lang.String title)

setValues

public void setValues(java.lang.String[] itemInfo)
Sets the values of the Text widgets of the dialog to the values supplied in the parameter array.

Parameters:
itemInfo - String[] The values to which the dialog contents will be set.


Copyright © 2008 Joanju Software. All Rights Reserved.