com.sas.swing.visuals.dataselectors.calculateditems
Class AdvancedCalculatedItemEditDialog
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--javax.swing.JDialog
|
+--com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditDialog
- All Implemented Interfaces:
- AdvancedCalculatedItemEditorInterface,
- Direct Known Subclasses:
- AdvancedExpressionEditDialog
- public class AdvancedCalculatedItemEditDialog
- extends javax.swing.JDialog
- implements AdvancedCalculatedItemEditorInterface
- See Also:
- Serialized Form
|
Method Summary |
protected void |
_layoutNewPanel()
|
protected void |
_layoutWidgets()
|
void |
addAllListeners()
|
protected void |
addKeyListeners(Container container,
AdvancedCalculatedItemEditDialog.KeyHandler keyHandler)
Lets the user press the ESCAPE key at anytime and cause the dialog to go away. |
protected void |
bCancel_Action(ActionEvent event)
|
protected void |
bOK_Action(ActionEvent event)
|
protected void |
Dialog1_WindowClosing(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. |
String |
getRawText()
|
int |
getReturnValue()
Simple accessor to find out why the dialog closed. |
ActionListener |
getValidateActionListener()
|
protected void |
init(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 JButton |
newNmemonicButton(String item)
|
void |
removeAllListeners()
|
boolean |
reportAndCheckOkToContinue(String message)
|
boolean |
reportAndCheckOkToContinue(String message,
String title)
|
void |
reportAndDisplayError(Exception e)
|
void |
reportAndDisplayError(Exception e,
String title)
|
void |
reportAndDisplayError(Exception e,
String title,
int messageType)
|
void |
reportAndDisplayError(String message)
|
void |
reportAndDisplayError(String message,
String title)
|
void |
reportAndDisplayError(String message,
String title,
int messageType)
|
void |
reportInternalError(String message)
|
void |
reportInternalError(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(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(ActionListener listener)
|
void |
setValidationButtonVisible(boolean visible)
|
| Methods inherited from class javax.swing.JDialog |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Dialog |
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
RB_KEY
public static final String RB_KEY
m_advCalcPanel
protected AdvancedCalculatedItemSelector m_advCalcPanel
m_calcItem
protected CalculatedItemInterface m_calcItem
bOK
protected JButton bOK
bCancel
protected JButton bCancel
bHelp
protected JButton bHelp
m_success
protected boolean m_success
aSymWindow
protected AdvancedCalculatedItemEditDialog.SymWindow aSymWindow
actionListener
protected AdvancedCalculatedItemEditDialog.SymAction actionListener
m_existingPane
protected JLabel m_existingPane
m_newPanel
protected JPanel m_newPanel
m_javaHelp
protected SASJavaHelp m_javaHelp
m_spacingDialogBoxMargin
protected int m_spacingDialogBoxMargin
- Dialog box margins
m_spacingBetweenButtons
protected int m_spacingBetweenButtons
- Between horizontally or vertically arranged buttons
m_spacingLastInGroupBox
protected int m_spacingLastInGroupBox
- Last control in a group box
m_labelTitle
protected String m_labelTitle
m_labelName
protected String m_labelName
m_labelDescription
protected String m_labelDescription
m_labelExpression
protected String m_labelExpression
m_labelOkButton
protected String m_labelOkButton
m_labelCancelButton
protected String m_labelCancelButton
m_labelHelpButton
protected String m_labelHelpButton
m_errorMessageDialogTitle
protected String m_errorMessageDialogTitle
m_errorMessageNameRequired
protected String m_errorMessageNameRequired
m_errorMessageSyntaxInvalid
protected String m_errorMessageSyntaxInvalid
m_warningMessageIsItOkToSave
protected String m_warningMessageIsItOkToSave
_expressionOkTitle
protected String _expressionOkTitle
_expressionOkMessage
protected String _expressionOkMessage
_expressionInvalidTitle
protected String _expressionInvalidTitle
_expressionWarningTitle
protected String _expressionWarningTitle
_reportToStdErr
public boolean _reportToStdErr
- set to true if reports should go to stderr, otherwise silent
m_resizeListener
protected MinimumResizeListener m_resizeListener
_userSetMaxOutputObservations
protected boolean _userSetMaxOutputObservations
_maxMaxOutputObservations
protected int _maxMaxOutputObservations
_canSaveInvalidExpressions
protected boolean _canSaveInvalidExpressions
_isExpressionValid
protected boolean _isExpressionValid
AdvancedCalculatedItemEditDialog
public AdvancedCalculatedItemEditDialog(Frame parent,
boolean modal,
CalculatedItemInterface calcItem,
SASJavaHelp javaHelp)
AdvancedCalculatedItemEditDialog
protected AdvancedCalculatedItemEditDialog(Frame parent,
boolean modal)
init
protected void init(Frame parent,
boolean modal,
CalculatedItemInterface calcItem,
SASJavaHelp javaHelp)
newNmemonicButton
protected JButton newNmemonicButton(String item)
setNameLabel
public void setNameLabel(String label)
- Sets the label for the name text field that appears at the top of the dialog.
- Parameters:
label - The label to use.
dispose
public void dispose()
- Overrides:
dispose in class Dialog
addAllListeners
public void addAllListeners()
removeAllListeners
public void removeAllListeners()
_layoutNewPanel
protected void _layoutNewPanel()
_layoutWidgets
protected void _layoutWidgets()
addKeyListeners
protected void addKeyListeners(Container container,
AdvancedCalculatedItemEditDialog.KeyHandler keyHandler)
- Lets the user press the ESCAPE key at anytime and cause the dialog to go away.
- Parameters:
container - container holding components that need to have the
key listeners assigned.keyHandler - the key listener to be assigned to all of the component
getReturnValue
public int getReturnValue()
- Simple accessor to find out why the dialog closed. OK or CANCEL?
- Specified by:
getReturnValue in interface AdvancedCalculatedItemEditorInterface
getCalculatedItem
public CalculatedItemInterface getCalculatedItem()
- Simple accessor to get the modified expression.
- Specified by:
getCalculatedItem in interface AdvancedCalculatedItemEditorInterface
setTypeEnabled
public void setTypeEnabled(boolean enable)
- Specified by:
setTypeEnabled in interface AdvancedCalculatedItemEditorInterface
setCalculatedItem
public void setCalculatedItem(CalculatedItemInterface calcItem)
- Specified by:
setCalculatedItem in interface AdvancedCalculatedItemEditorInterface
getRawText
public String getRawText()
Dialog1_WindowClosing
protected void Dialog1_WindowClosing(WindowEvent event)
bOK_Action
protected void bOK_Action(ActionEvent event)
bCancel_Action
protected void bCancel_Action(ActionEvent event)
setupHelpForCalcItemDialog
protected void setupHelpForCalcItemDialog()
reportAndCheckOkToContinue
public boolean reportAndCheckOkToContinue(String message)
- Specified by:
reportAndCheckOkToContinue in interface AdvancedCalculatedItemEditorInterface
reportAndCheckOkToContinue
public boolean reportAndCheckOkToContinue(String message,
String title)
- Specified by:
reportAndCheckOkToContinue in interface AdvancedCalculatedItemEditorInterface
reportAndDisplayError
public void reportAndDisplayError(String message)
- Specified by:
reportAndDisplayError in interface AdvancedCalculatedItemEditorInterface
reportAndDisplayError
public void reportAndDisplayError(String message,
String title)
- Specified by:
reportAndDisplayError in interface AdvancedCalculatedItemEditorInterface
reportAndDisplayError
public void reportAndDisplayError(String message,
String title,
int messageType)
reportAndDisplayError
public void reportAndDisplayError(Exception e)
- Specified by:
reportAndDisplayError in interface AdvancedCalculatedItemEditorInterface
reportAndDisplayError
public void reportAndDisplayError(Exception e,
String title)
- Specified by:
reportAndDisplayError in interface AdvancedCalculatedItemEditorInterface
reportAndDisplayError
public void reportAndDisplayError(Exception e,
String title,
int messageType)
reportInternalError
public void reportInternalError(String message)
reportInternalError
public void reportInternalError(Throwable t)
isValidationButtonVisible
public boolean isValidationButtonVisible()
- Specified by:
isValidationButtonVisible in interface AdvancedCalculatedItemEditorInterface
setValidationButtonVisible
public void setValidationButtonVisible(boolean visible)
- Specified by:
setValidationButtonVisible in interface AdvancedCalculatedItemEditorInterface
getValidateActionListener
public ActionListener getValidateActionListener()
- Specified by:
getValidateActionListener in interface AdvancedCalculatedItemEditorInterface
setValidateActionListener
public void setValidateActionListener(ActionListener listener)
- Specified by:
setValidateActionListener in interface AdvancedCalculatedItemEditorInterface
getMaxOutputObservations
public int getMaxOutputObservations()
- Description copied from interface:
AdvancedCalculatedItemEditorInterface
- 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.
- Specified by:
getMaxOutputObservations in interface AdvancedCalculatedItemEditorInterface
- Following copied from interface:
com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditorInterface
- Returns:
- the maximum number of output observations
setMaxOutputObservations
public void setMaxOutputObservations(int max)
- Description copied from interface:
AdvancedCalculatedItemEditorInterface
- 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.
- Specified by:
setMaxOutputObservations in interface AdvancedCalculatedItemEditorInterface
- Following copied from interface:
com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditorInterface
- Parameters:
max - the new maximum number of output observations- See Also:
Governing
isSaveInvalidExpressionsEnabled
public boolean isSaveInvalidExpressionsEnabled()
- Specified by:
isSaveInvalidExpressionsEnabled in interface AdvancedCalculatedItemEditorInterface
setSaveInvalidExpressionsEnabled
public void setSaveInvalidExpressionsEnabled(boolean enable)
- Description copied from interface:
AdvancedCalculatedItemEditorInterface
- 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
- Specified by:
setSaveInvalidExpressionsEnabled in interface AdvancedCalculatedItemEditorInterface
- Following copied from interface:
com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditorInterface
- Parameters:
enable - a value of true indicates the user can change the type of the filter item; false
indicates the type cannot be changed.
isExpressionValid
public boolean isExpressionValid()
- Description copied from interface:
AdvancedCalculatedItemEditorInterface
- 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.
- Specified by:
isExpressionValid in interface AdvancedCalculatedItemEditorInterface
- Following copied from interface:
com.sas.swing.visuals.dataselectors.calculateditems.AdvancedCalculatedItemEditorInterface
- Returns:
- boolean
Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Thu, 16 Feb 2006 02:19:38