com.sas.swing.visuals.dataselectors.calculateditems
Interface AdvancedCalculatedItemEditorInterface

All Known Implementing Classes:
AdvancedCalculatedItemEditDialog, AdvancedExpressionEditDialog

@SASScope(value="ALL")
public interface AdvancedCalculatedItemEditorInterface

Description: Copyright: Copyright (c) 2002 Company: SAS


Field Summary
static int CANCEL
           
static int OK
           
 
Method Summary
abstract  CalculatedItemInterface getCalculatedItem()
          Simple accessor to get the modified expression.
abstract  int getMaxOutputObservations()
          Returns the current maximum number of output observations returned when gathering a list of possible values for a data item or physical item in the data source tree.
abstract  int getReturnValue()
          Simple accessor to find out why the dialog closed.
abstract  java.awt.event.ActionListener getValidateActionListener()
           
abstract  boolean isExpressionValid()
          If the getReturnValue method returns OK then this methodr returns true if the expression returned passed validation and false if it failed.
abstract  boolean isSaveInvalidExpressionsEnabled()
           
abstract  boolean isValidationButtonVisible()
           
abstract  boolean reportAndCheckOkToContinue(java.lang.String message)
           
abstract  boolean reportAndCheckOkToContinue(java.lang.String message, java.lang.String title)
           
abstract  void reportAndDisplayError(java.lang.Exception e)
           
abstract  void reportAndDisplayError(java.lang.Exception e, java.lang.String title)
           
abstract  void reportAndDisplayError(java.lang.String message)
           
abstract  void reportAndDisplayError(java.lang.String message, java.lang.String title)
           
abstract  void setCalculatedItem(CalculatedItemInterface calcItem)
           
abstract  void setMaxOutputObservations(int max)
          Sets the current maximum number of output observations to be returned when gathering a list of possible values for a data item or physical item in the data source tree.
abstract  void setSaveInvalidExpressionsEnabled(boolean enable)
          An enable value of true indicates the user can save an item that has invalid expression text, false indicates the filter item text must be valid if isEditOK() is true.
abstract  void setTypeEnabled(boolean enabled)
           
abstract  void setValidateActionListener(java.awt.event.ActionListener listener)
           
abstract  void setValidationButtonVisible(boolean visible)
           
 

Field Detail

OK

static final int OK
See Also:
Constant Field Values

CANCEL

static final int CANCEL
See Also:
Constant Field Values
Method Detail

getReturnValue

int getReturnValue()
Simple accessor to find out why the dialog closed. OK or CANCEL?


getCalculatedItem

CalculatedItemInterface getCalculatedItem()
Simple accessor to get the modified expression.


setCalculatedItem

void setCalculatedItem(CalculatedItemInterface calcItem)

setTypeEnabled

void setTypeEnabled(boolean enabled)

reportAndCheckOkToContinue

boolean reportAndCheckOkToContinue(java.lang.String message)

reportAndCheckOkToContinue

boolean reportAndCheckOkToContinue(java.lang.String message,
                                   java.lang.String title)

reportAndDisplayError

void reportAndDisplayError(java.lang.String message,
                           java.lang.String title)

reportAndDisplayError

void reportAndDisplayError(java.lang.String message)

reportAndDisplayError

void reportAndDisplayError(java.lang.Exception e)

reportAndDisplayError

void reportAndDisplayError(java.lang.Exception e,
                           java.lang.String title)

isValidationButtonVisible

boolean isValidationButtonVisible()

setValidationButtonVisible

void setValidationButtonVisible(boolean visible)

getValidateActionListener

java.awt.event.ActionListener getValidateActionListener()

setValidateActionListener

void setValidateActionListener(java.awt.event.ActionListener listener)

getMaxOutputObservations

int getMaxOutputObservations()
Returns the current maximum number of output observations returned when gathering a list of possible values for a data item or physical item in the data source tree.

Returns:
the maximum number of output observations

setMaxOutputObservations

void setMaxOutputObservations(int max)
Sets the current maximum number of output observations to be returned when gathering a list of possible values for a data item or physical item in the data source tree.

Parameters:
max - the new maximum number of output observations
See Also:
Governing

setSaveInvalidExpressionsEnabled

void setSaveInvalidExpressionsEnabled(boolean enable)
An enable value of true indicates the user can save an item that has invalid expression text, false indicates the filter item text must be valid if isEditOK() is true. Default is true

Parameters:
enable - a value of true indicates the user can change the type of the filter item; false indicates the type cannot be changed.

isSaveInvalidExpressionsEnabled

boolean isSaveInvalidExpressionsEnabled()

isExpressionValid

boolean isExpressionValid()
If the getReturnValue method returns OK then this methodr returns true if the expression returned passed validation and false if it failed. If the getReturnValue() method returns CANCEL this methods return is undefined.

Returns:
boolean



Copyright © 2009 SAS Institute Inc. All Rights Reserved.