Rule Execution Server API

ilog.rules.studio.res.ui.generator.impl.wizard.page
Class IlrRulesetParameterWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by ilog.rules.studio.res.ui.generator.impl.wizard.page.IlrFileGeneratorWizardPage
              extended by ilog.rules.studio.res.ui.generator.impl.wizard.page.IlrRulesetParameterWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class IlrRulesetParameterWizardPage
extends IlrFileGeneratorWizardPage

Extends the IlrFileGeneratorWizardPage class to request the ruleset parameter values for each ruleset of the RuleApp.

Since:
JRules 6.0

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
IlrRulesetParameterWizardPage(String name)
          Creates a new wizard page with the given name, and with no title or image.
 
Method Summary
 void addContent(org.eclipse.swt.widgets.Composite parent)
          The IlrRulesetParameterWizardPage implementation of this IlrFileGeneratorWizardPage method creates a table with the ruleset name and the ruleset parameter name and type.
 IlrSignature[] getSignatures()
          Gets an array with the list of in or inout ruleset parameters name, type, and values for each ruleset of the RuleApp.
protected  boolean isPageCompleteAtCreation()
          Deprecated. use isValidatedPageAtCreation() instead
protected  boolean isValidatedPageAtCreation()
          The IlrRulesetParameterWizardPage implementation of this IlrFileGeneratorWizardPage method returns true if all lines of the table are filled.
 void setVisible(boolean visible)
          The IlrRulesetParameterWizardPage implementation of this IDialogPage method fills the table with the ruleset parameter name and type.
protected  boolean validatePage()
          Gets the state of the page to put the value as the parameter of the setCompletePage method.
 
Methods inherited from class ilog.rules.studio.res.ui.generator.impl.wizard.page.IlrFileGeneratorWizardPage
createControl, dispose, getHelpContextId
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
 

Constructor Detail

IlrRulesetParameterWizardPage

public IlrRulesetParameterWizardPage(String name)
Creates a new wizard page with the given name, and with no title or image.

Parameters:
name - the name of the page
Method Detail

setVisible

public void setVisible(boolean visible)
The IlrRulesetParameterWizardPage implementation of this IDialogPage method fills the table with the ruleset parameter name and type. Subclasses may extend.

Specified by:
setVisible in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
setVisible in class IlrFileGeneratorWizardPage

getSignatures

public IlrSignature[] getSignatures()
Gets an array with the list of in or inout ruleset parameters name, type, and values for each ruleset of the RuleApp.

Returns:
An array of the signature of the ruleset parameters.

addContent

public void addContent(org.eclipse.swt.widgets.Composite parent)
The IlrRulesetParameterWizardPage implementation of this IlrFileGeneratorWizardPage method creates a table with the ruleset name and the ruleset parameter name and type. Subclasses may extend.

Specified by:
addContent in class IlrFileGeneratorWizardPage
Parameters:
parent - The composite created in the createControl method.
See Also:
IlrFileGeneratorWizardPage.addContent(org.eclipse.swt.widgets.Composite)

isPageCompleteAtCreation

protected boolean isPageCompleteAtCreation()
Deprecated. use isValidatedPageAtCreation() instead

The IlrRulesetParameterWizardPage implementation of this IlrFileGeneratorWizardPage method returns true if all lines of the table are filled. Subclasses may extend.

Overrides:
isPageCompleteAtCreation in class IlrFileGeneratorWizardPage
Returns:
True, if the page is complete at creation. Otherwise, false.
See Also:
IlrFileGeneratorWizardPage.isPageCompleteAtCreation()

isValidatedPageAtCreation

protected boolean isValidatedPageAtCreation()
The IlrRulesetParameterWizardPage implementation of this IlrFileGeneratorWizardPage method returns true if all lines of the table are filled. Subclasses may extend.

Overrides:
isValidatedPageAtCreation in class IlrFileGeneratorWizardPage
Returns:
True, if the page is complete at creation. Otherwise, false.
See Also:
IlrFileGeneratorWizardPage.isPageCompleteAtCreation()

validatePage

protected boolean validatePage()
Gets the state of the page to put the value as the parameter of the setCompletePage method.

Returns:
True if the page is complete.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013