org.eclipse.datatools.sqltools.sqlbuilder.expressionbuilder.caseexpr
Class CaseSimplePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.datatools.sqltools.sqlbuilder.expressionbuilder.caseexpr.CaseSimplePage
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class CaseSimplePage
extends org.eclipse.jface.wizard.WizardPage
implements org.eclipse.swt.events.SelectionListener


Field Summary
static java.lang.String ADDCASE
           
static java.lang.String ADDCAST
           
static java.lang.String ADDCONSTANT
           
static java.lang.String ADDEXPRBYOPERATOR
           
static java.lang.String ADDFUNCTION
           
static java.lang.String SELECTSUBQUERY
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
CaseSimplePage(SQLDomainModel domainModel, SQLQueryObject sqlStatementArg, QueryValueExpression sqlExpr)
           
 
Method Summary
 boolean canFlipToNextPage()
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 boolean currentPage()
           
 CaseSimpleWhenContentElement getElementToUpdate()
           
 QueryValueExpression getSQLExpression()
           
 boolean performOk()
           
 void setElementToUpdate(CaseSimpleWhenContentElement element)
           
 void setVisible(boolean visible)
           
 void updateFinishButton()
           
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent se)
           
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getMessageType, getTitle, performHelp, setMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
 

Field Detail

ADDFUNCTION

public static java.lang.String ADDFUNCTION

ADDCASE

public static java.lang.String ADDCASE

ADDCAST

public static java.lang.String ADDCAST

ADDCONSTANT

public static java.lang.String ADDCONSTANT

SELECTSUBQUERY

public static java.lang.String SELECTSUBQUERY

ADDEXPRBYOPERATOR

public static java.lang.String ADDEXPRBYOPERATOR
Constructor Detail

CaseSimplePage

public CaseSimplePage(SQLDomainModel domainModel,
                      SQLQueryObject sqlStatementArg,
                      QueryValueExpression sqlExpr)
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent se)
Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener

getSQLExpression

public QueryValueExpression getSQLExpression()

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
setVisible in class org.eclipse.jface.dialogs.DialogPage

canFlipToNextPage

public boolean canFlipToNextPage()
Specified by:
canFlipToNextPage in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
canFlipToNextPage in class org.eclipse.jface.wizard.WizardPage

setElementToUpdate

public void setElementToUpdate(CaseSimpleWhenContentElement element)

getElementToUpdate

public CaseSimpleWhenContentElement getElementToUpdate()

updateFinishButton

public void updateFinishButton()

performOk

public boolean performOk()

currentPage

public boolean currentPage()