Initial commit from SVN.
This commit is contained in:
46
Foundation SWT/src/com/foundation/view/swt/Dialog.java
Normal file
46
Foundation SWT/src/com/foundation/view/swt/Dialog.java
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright (c) 2003,2006 Declarative Engineering LLC.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Declarative Engineering LLC
|
||||
* verson 1 which accompanies this distribution, and is available at
|
||||
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
|
||||
*/
|
||||
package com.foundation.view.swt;
|
||||
|
||||
public abstract class Dialog {
|
||||
private org.eclipse.swt.widgets.Dialog dialog = null;
|
||||
/**
|
||||
* Dialog constructor.
|
||||
*/
|
||||
public Dialog() {
|
||||
super();
|
||||
}//Dialog()//
|
||||
/**
|
||||
* Gets the SWT dialog instance.
|
||||
* @return The SWT dialog.
|
||||
*/
|
||||
protected org.eclipse.swt.widgets.Dialog getSwtDialog() {
|
||||
return dialog;
|
||||
}//getSwtDialog()//
|
||||
/**
|
||||
* Sets the SWT dialog instance.
|
||||
* @return The SWT dialog.
|
||||
*/
|
||||
protected void setSwtDialog(org.eclipse.swt.widgets.Dialog dialog) {
|
||||
this.dialog = dialog;
|
||||
}//setSwtDialog()//
|
||||
/**
|
||||
* Gets the text displayed by the dialog.
|
||||
* @return The dialog text.
|
||||
*/
|
||||
public String getText() {
|
||||
return getSwtDialog().getText();
|
||||
}//getText()//
|
||||
/**
|
||||
* Sets the dialog text.
|
||||
* @param text The text to be displayed in the dialog.
|
||||
*/
|
||||
public void setText(String text) {
|
||||
getSwtDialog().setText(text);
|
||||
}//setText()//
|
||||
}//Dialog//
|
||||
Reference in New Issue
Block a user