org.beanfabrics.swt.samples.login
Class LoginDialog

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by org.beanfabrics.swt.samples.login.LoginDialog
All Implemented Interfaces:
View<LoginPM>

public class LoginDialog
extends org.eclipse.swt.widgets.Dialog
implements View<LoginPM>

The LoginDialog is a dialog for entering user credentials.


Field Summary
protected  java.lang.Object result
           
protected  org.eclipse.swt.widgets.Shell shlLogin
           
 
Constructor Summary
LoginDialog(org.eclipse.swt.widgets.Shell parent, int style)
          Create the dialog.
 
Method Summary
 LoginPM getPresentationModel()
          Returns the PresentationModel of this view.
 java.lang.Object open()
          Open the dialog.
 void setPresentationModel(LoginPM pModel)
          Sets the PresentationModel of this view.
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected java.lang.Object result

shlLogin

protected org.eclipse.swt.widgets.Shell shlLogin
Constructor Detail

LoginDialog

public LoginDialog(org.eclipse.swt.widgets.Shell parent,
                   int style)
Create the dialog.

Parameters:
parent -
style -
Method Detail

open

public java.lang.Object open()
Open the dialog.

Returns:
the result

getPresentationModel

public LoginPM getPresentationModel()
Description copied from interface: View
Returns the PresentationModel of this view.

Specified by:
getPresentationModel in interface View<LoginPM>
Returns:
the PresentationModel

setPresentationModel

public void setPresentationModel(LoginPM pModel)
Description copied from interface: View
Sets the PresentationModel of this view.

Specified by:
setPresentationModel in interface View<LoginPM>
Parameters:
pModel - the PresentationModel