com.sas.workspace
Class AppServerDialog
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--javax.swing.JDialog
|
+--com.sas.workspace.WAStandardDialog
|
+--com.sas.workspace.AppServerDialog
- All Implemented Interfaces:
- public class AppServerDialog
- extends WAStandardDialog
Dialog to obtain application defaults for AppServer specification, and to prompt
interactive user for changes. Uses AppServerPanel as its main info-gathering panel.
Usage:
AppServer appServer = new AppServer();
AppServerDialog pDlg = new AppServerDialog(frame, appServer, strInfoText);
pDlg.setTitle("..."); // Optional, can use AppServerDialog default title
pDlg.show();
if( pDlg.getReturnValue() == WADialog.OK ) {
// Do your stuff...
appServer.termAppServer();
}
- See Also:
- Serialized Form
| Fields inherited from class com.sas.workspace.WAStandardDialog |
CANCEL, DATA_CHANGED_PROPERTY, DataChangedPromptProperty, EDITABLE_PROPERTY, m_bDataChanged, m_bEditable, m_btnApply, m_btnCancel, m_btnHelp, m_btnOk, m_eReturnValue, m_KeyHandler, m_lsnrDataChanged, m_lsnrPanelDataChanged, m_pnlButtons, m_pnlMain, m_sBrowse, m_sHelpProduct, m_sHelpTopic, OK |
|
Method Summary |
boolean |
doDataExchange(boolean saveToModel)
Causes the component to transfer data to the model. |
boolean |
hasDataChanged()
Checks if data in AppServerPanel has changed. |
protected void |
initialize()
Initialize visual widgets for dialog. |
protected void |
layoutWidgets()
Arrange widgets in displayed dialog. |
boolean |
onCancel()
Called when Cancel button is pressed. |
boolean |
validateData()
Validate data for dialog. |
| Methods inherited from class com.sas.workspace.WAStandardDialog |
actionPerformed, addKeyListeners, center, createKeyListener, createMainPanelBorder, createRootPane, dispose, getDefaultFocusComponent, getHelpProduct, getHelpTopic, getMainPanel, getReturnValue, isApplyButtonVisible, isCancelButtonVisible, isEditable, isHelpButtonVisible, isOKButtonVisible, onApply, onHelp, onOK, onShow, removeKeyListeners, restoreMainPanelBorder, setApplyButtonVisible, setCancelButtonVisible, setDataChanged, setEditable, setHelpButtonVisible, setHelpProduct, setHelpTopic, setMainPanel, setModal, setOKButtonVisible, show, updateButtonsPanel |
| Methods inherited from class javax.swing.JDialog |
addImpl, 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.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 |
m_centerPanel
protected WAPanel m_centerPanel
m_infoText
protected JLabel m_infoText
m_appServerPanel
protected com.sas.workspace.visuals.AppServerPanel m_appServerPanel
m_appServer
protected AppServer m_appServer
m_strInfo
protected String m_strInfo
AppServerDialog
public AppServerDialog(Frame owner,
AppServer appServer)
- Constructs an AppServerDialog object.
- Parameters:
owner - - Owning frame for this dialog.appServer - - AppServer object to initialize.
AppServerDialog
public AppServerDialog(Frame owner,
AppServer appServer,
String strInfoText)
- Constructs an AppServerDialog object.
- Parameters:
owner - - Owning frame for this dialog.appServer - - AppServer object to initialize.strInfoText - - Application specific text string to display in dialog.
initialize
protected void initialize()
- Initialize visual widgets for dialog.
- Overrides:
initialize in class WAStandardDialog
layoutWidgets
protected void layoutWidgets()
- Arrange widgets in displayed dialog.
- Overrides:
layoutWidgets in class WAStandardDialog
doDataExchange
public boolean doDataExchange(boolean saveToModel)
- Causes the component to transfer data to the model.
- Overrides:
doDataExchange in class WAStandardDialog
- Parameters:
saveToModel - true - move widget values to model values;
false - move model values to widgets values
validateData
public boolean validateData()
- Validate data for dialog.
- Overrides:
validateData in class WAStandardDialog
- Following copied from class:
com.sas.workspace.WAStandardDialog
- Returns:
- true = data is valid
false = data is invalid
- See Also:
WAStandardDialog.onOK(),
WAStandardDialog.onCancel()
onCancel
public boolean onCancel()
- Called when Cancel button is pressed.
- Overrides:
onCancel in class WAStandardDialog
- Following copied from class:
com.sas.workspace.WAStandardDialog
- Returns:
- true = close dialog, false = leave dialog open
hasDataChanged
public boolean hasDataChanged()
- Checks if data in AppServerPanel has changed.
- Overrides:
hasDataChanged in class WAStandardDialog
- Following copied from class:
com.sas.workspace.WAStandardDialog
- Returns:
- true = data is changed
Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 15:46:53