Files
Brainstorm/Foundation SWT/src/com/foundation/view/swt/Dialog.java

46 lines
1.2 KiB
Java
Raw Normal View History

2014-05-30 10:31:51 -07:00
/*
* 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//