|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditDialog
public class AdvancedCalculatedItemEditDialog
Fields inherited from interface com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditorInterface |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
protected |
AdvancedCalculatedItemEditDialog(java.awt.Frame parent,
boolean modal)
|
|
AdvancedCalculatedItemEditDialog(java.awt.Frame parent,
boolean modal,
CalculatedItemInterface calcItem,
SASJavaHelp javaHelp)
|
Method Summary | |
---|---|
protected void |
_layoutNewPanel()
|
protected void |
_layoutWidgets()
|
void |
addAllListeners()
|
protected void |
addKeyListeners(java.awt.Container container,
com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditDialog.KeyHandler keyHandler)
Lets the user press the ESCAPE key at anytime and cause the dialog to go away. |
protected void |
bCancel_Action(java.awt.event.ActionEvent event)
|
protected void |
bOK_Action(java.awt.event.ActionEvent event)
|
protected void |
Dialog1_WindowClosing(java.awt.event.WindowEvent event)
|
void |
dispose()
|
CalculatedItemInterface |
getCalculatedItem()
Simple accessor to get the modified expression. |
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. |
java.lang.String |
getRawText()
|
int |
getReturnValue()
Simple accessor to find out why the dialog closed. |
java.awt.event.ActionListener |
getValidateActionListener()
|
protected void |
init(java.awt.Frame parent,
boolean modal,
CalculatedItemInterface calcItem,
SASJavaHelp javaHelp)
|
boolean |
isExpressionValid()
If the getReturnValue method returns OK
then this methodr returns true if the expression returned passed
validation and false if it failed. |
boolean |
isSaveInvalidExpressionsEnabled()
|
boolean |
isValidationButtonVisible()
|
protected javax.swing.JButton |
newNmemonicButton(java.lang.String item)
|
void |
removeAllListeners()
|
boolean |
reportAndCheckOkToContinue(java.lang.String message)
|
boolean |
reportAndCheckOkToContinue(java.lang.String message,
java.lang.String title)
|
void |
reportAndDisplayError(java.lang.Exception e)
|
void |
reportAndDisplayError(java.lang.Exception e,
java.lang.String title)
|
void |
reportAndDisplayError(java.lang.Exception e,
java.lang.String title,
int messageType)
|
void |
reportAndDisplayError(java.lang.String message)
|
void |
reportAndDisplayError(java.lang.String message,
java.lang.String title)
|
void |
reportAndDisplayError(java.lang.String message,
java.lang.String title,
int messageType)
|
void |
reportInternalError(java.lang.String message)
|
void |
reportInternalError(java.lang.Throwable t)
|
void |
setCalculatedItem(CalculatedItemInterface calcItem)
|
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. |
void |
setNameLabel(java.lang.String label)
Sets the label for the name text field that appears at the top of the dialog. |
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 . |
void |
setTypeEnabled(boolean enable)
|
protected void |
setupHelpForCalcItemDialog()
|
void |
setValidateActionListener(java.awt.event.ActionListener listener)
|
void |
setValidationButtonVisible(boolean visible)
|
Field Detail |
---|
public static final java.lang.String RB_KEY
protected AdvancedCalculatedItemSelector m_advCalcPanel
protected CalculatedItemInterface m_calcItem
protected javax.swing.JButton bOK
protected javax.swing.JButton bCancel
protected javax.swing.JButton bHelp
protected boolean m_success
protected com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditDialog.SymWindow aSymWindow
protected com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditDialog.SymAction actionListener
protected javax.swing.JLabel m_existingPane
protected javax.swing.JPanel m_newPanel
protected SASJavaHelp m_javaHelp
protected int m_spacingDialogBoxMargin
protected int m_spacingBetweenButtons
protected int m_spacingLastInGroupBox
protected java.lang.String m_labelTitle
protected java.lang.String m_labelName
protected java.lang.String m_labelDescription
protected java.lang.String m_labelExpression
protected java.lang.String m_labelOkButton
protected java.lang.String m_labelCancelButton
protected java.lang.String m_labelHelpButton
protected java.lang.String m_errorMessageDialogTitle
protected java.lang.String m_errorMessageNameRequired
protected java.lang.String m_errorMessageSyntaxInvalid
protected java.lang.String m_warningMessageIsItOkToSave
protected java.lang.String _expressionOkTitle
protected java.lang.String _expressionOkMessage
protected java.lang.String _expressionInvalidTitle
protected java.lang.String _expressionWarningTitle
public boolean _reportToStdErr
protected com.sas.swing.visuals.dataselectors.calculateditems.MinimumResizeListener m_resizeListener
protected boolean _userSetMaxOutputObservations
protected int _maxMaxOutputObservations
protected boolean _canSaveInvalidExpressions
protected boolean _isExpressionValid
Constructor Detail |
---|
public AdvancedCalculatedItemEditDialog(java.awt.Frame parent, boolean modal, CalculatedItemInterface calcItem, SASJavaHelp javaHelp)
protected AdvancedCalculatedItemEditDialog(java.awt.Frame parent, boolean modal)
Method Detail |
---|
protected void init(java.awt.Frame parent, boolean modal, CalculatedItemInterface calcItem, SASJavaHelp javaHelp)
protected javax.swing.JButton newNmemonicButton(java.lang.String item)
public void setNameLabel(java.lang.String label)
label
- The label to use.public void dispose()
dispose
in class java.awt.Window
public void addAllListeners()
public void removeAllListeners()
protected void _layoutNewPanel()
protected void _layoutWidgets()
protected void addKeyListeners(java.awt.Container container, com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditDialog.KeyHandler keyHandler)
container
- container holding components that need to have the
key listeners assigned.keyHandler
- the key listener to be assigned to all of the componentpublic int getReturnValue()
getReturnValue
in interface AdvancedCalculatedItemEditorInterface
public CalculatedItemInterface getCalculatedItem()
getCalculatedItem
in interface AdvancedCalculatedItemEditorInterface
public void setTypeEnabled(boolean enable)
setTypeEnabled
in interface AdvancedCalculatedItemEditorInterface
public void setCalculatedItem(CalculatedItemInterface calcItem)
setCalculatedItem
in interface AdvancedCalculatedItemEditorInterface
public java.lang.String getRawText()
protected void Dialog1_WindowClosing(java.awt.event.WindowEvent event)
protected void bOK_Action(java.awt.event.ActionEvent event)
protected void bCancel_Action(java.awt.event.ActionEvent event)
protected void setupHelpForCalcItemDialog()
public boolean reportAndCheckOkToContinue(java.lang.String message)
reportAndCheckOkToContinue
in interface AdvancedCalculatedItemEditorInterface
public boolean reportAndCheckOkToContinue(java.lang.String message, java.lang.String title)
reportAndCheckOkToContinue
in interface AdvancedCalculatedItemEditorInterface
public void reportAndDisplayError(java.lang.String message)
reportAndDisplayError
in interface AdvancedCalculatedItemEditorInterface
public void reportAndDisplayError(java.lang.String message, java.lang.String title)
reportAndDisplayError
in interface AdvancedCalculatedItemEditorInterface
public void reportAndDisplayError(java.lang.String message, java.lang.String title, int messageType)
public void reportAndDisplayError(java.lang.Exception e)
reportAndDisplayError
in interface AdvancedCalculatedItemEditorInterface
public void reportAndDisplayError(java.lang.Exception e, java.lang.String title)
reportAndDisplayError
in interface AdvancedCalculatedItemEditorInterface
public void reportAndDisplayError(java.lang.Exception e, java.lang.String title, int messageType)
public void reportInternalError(java.lang.String message)
public void reportInternalError(java.lang.Throwable t)
public boolean isValidationButtonVisible()
isValidationButtonVisible
in interface AdvancedCalculatedItemEditorInterface
public void setValidationButtonVisible(boolean visible)
setValidationButtonVisible
in interface AdvancedCalculatedItemEditorInterface
public java.awt.event.ActionListener getValidateActionListener()
getValidateActionListener
in interface AdvancedCalculatedItemEditorInterface
public void setValidateActionListener(java.awt.event.ActionListener listener)
setValidateActionListener
in interface AdvancedCalculatedItemEditorInterface
public int getMaxOutputObservations()
AdvancedCalculatedItemEditorInterface
getMaxOutputObservations
in interface AdvancedCalculatedItemEditorInterface
public void setMaxOutputObservations(int max)
AdvancedCalculatedItemEditorInterface
setMaxOutputObservations
in interface AdvancedCalculatedItemEditorInterface
max
- the new maximum number of output observationsGoverning
public boolean isSaveInvalidExpressionsEnabled()
isSaveInvalidExpressionsEnabled
in interface AdvancedCalculatedItemEditorInterface
public void setSaveInvalidExpressionsEnabled(boolean enable)
AdvancedCalculatedItemEditorInterface
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
setSaveInvalidExpressionsEnabled
in interface AdvancedCalculatedItemEditorInterface
enable
- a value of true
indicates the user can change the type of the filter item; false
indicates the type cannot be changed.public boolean isExpressionValid()
AdvancedCalculatedItemEditorInterface
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.
isExpressionValid
in interface AdvancedCalculatedItemEditorInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |