|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--pamanager.AirfareAgentCustomizer
The AirfareAgentCustomizer
class implements the
customizer for the AirfareAgent.
intelligent agent classes.
Inner classes inherited from class javax.swing.JDialog |
javax.swing.JDialog.AccessibleJDialog |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
(package private) java.util.Hashtable |
abbrevToMonths
|
(package private) javax.swing.JTextField |
actionTextField
|
(package private) AirfareAgent |
agent
|
(package private) javax.swing.JComboBox |
agentsComboBox
|
(package private) java.util.Hashtable |
airportsToCities
|
(package private) java.awt.BorderLayout |
borderLayout1
|
(package private) javax.swing.JButton |
CancelButton
|
(package private) boolean |
cancelled
|
(package private) java.util.Vector |
cities
|
(package private) java.util.Hashtable |
citiesToAirports
|
(package private) javax.swing.JComboBox |
departCityComboBox
|
(package private) javax.swing.JComboBox |
departDayComboBox
|
(package private) javax.swing.JComboBox |
departMonthComboBox
|
(package private) javax.swing.JComboBox |
destCityComboBox
|
(package private) javax.swing.JButton |
initializeButton
|
(package private) javax.swing.JLabel |
jLabel1
|
(package private) javax.swing.JLabel |
jLabel2
|
(package private) javax.swing.JLabel |
jLabel3
|
(package private) javax.swing.JLabel |
jLabel4
|
(package private) javax.swing.JLabel |
jLabel5
|
(package private) javax.swing.JLabel |
jLabel6
|
(package private) javax.swing.JLabel |
jLabel7
|
(package private) javax.swing.JPanel |
jPanel1
|
(package private) javax.swing.JPanel |
jPanel2
|
(package private) java.util.Vector |
months
|
(package private) javax.swing.JTextField |
nameTextField
|
(package private) javax.swing.JRadioButton |
notifyRadioButton
|
(package private) javax.swing.JPanel |
panel1
|
(package private) javax.swing.JComboBox |
returnDayComboBox
|
(package private) javax.swing.JComboBox |
returnMonthComboBox
|
Fields inherited from class javax.swing.JDialog |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
modal,
resizable,
title |
Fields inherited from class java.awt.Window |
inputContext,
OPENED,
ownedWindowList,
state,
warningString,
windowListener |
Fields inherited from class java.awt.Container |
component,
containerListener,
layoutMgr,
ncomponents |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
componentListener,
componentListenerK,
componentOrientation,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
AirfareAgentCustomizer()
Creates an AirfareAgentCustomizer object. |
|
AirfareAgentCustomizer(java.awt.Frame frame,
java.lang.String title,
boolean modal)
Creates an AirfareAgentCustomizer object. |
Method Summary | |
(package private) void |
CancelButton_actionPerformed(java.awt.event.ActionEvent e)
Cancels the customizer. |
(package private) void |
departCityComboBox_actionPerformed(java.awt.event.ActionEvent e)
Does nothing. |
(package private) void |
destCityComboBox_actionPerformed(java.awt.event.ActionEvent e)
Does nothing. |
void |
getDataFromBean()
Gets data from bean and sets GUI controls. |
protected void |
init()
Initializes the values in this customizer. |
(package private) void |
initializeButton_actionPerformed(java.awt.event.ActionEvent e)
Initializes the agent with the values set in the customizer. |
(package private) void |
jbInit()
Initializes the customizer GUI components. |
void |
postCIAgentEvent(CIAgentEvent event)
Processes a CIAgentEvent (does not queue it). |
void |
processCIAgentEvent(CIAgentEvent event)
Processes a CIAgentEvent. |
void |
setDataOnBean()
Sets properties on the agent bean using data from the GUI. |
void |
setObject(java.lang.Object obj)
Sets the object to customize. |
Methods inherited from class javax.swing.JDialog |
addImpl,
createRootPane,
dialogInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processWindowEvent,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setLocationRelativeTo,
setRootPane,
setRootPaneCheckingEnabled,
update |
Methods inherited from class java.awt.Dialog |
|
Methods inherited from class java.awt.Window |
addOwnedWindow,
addWindowListener,
applyResourceBundle,
applyResourceBundle,
connectOwnedWindow,
dispatchEventImpl,
dispose,
eventEnabled,
finalize,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
isActive,
isShowing,
nextFocus,
pack,
postEvent,
postProcessKeyEvent,
postWindowEvent,
preProcessKeyEvent,
processEvent,
removeOwnedWindow,
removeWindowListener,
setFocusOwner,
toBack,
toFront,
transferFocus |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventToSelf,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getMouseEventTarget,
getPreferredSize,
getWindow,
insets,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
postsOldMouseEvents,
preferredSize,
print,
printComponents,
processContainerEvent,
proxyEnableEvents,
proxyRequestFocus,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkitImpl,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
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,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
javax.swing.JPanel panel1
java.awt.BorderLayout borderLayout1
javax.swing.JPanel jPanel1
javax.swing.JButton initializeButton
javax.swing.JButton CancelButton
javax.swing.JPanel jPanel2
javax.swing.JLabel jLabel1
javax.swing.JComboBox destCityComboBox
javax.swing.JLabel jLabel2
javax.swing.JComboBox departCityComboBox
javax.swing.JLabel jLabel3
AirfareAgent agent
javax.swing.JLabel jLabel4
javax.swing.JTextField nameTextField
javax.swing.JLabel jLabel5
javax.swing.JLabel jLabel6
javax.swing.JComboBox departMonthComboBox
javax.swing.JComboBox returnMonthComboBox
javax.swing.JComboBox departDayComboBox
javax.swing.JComboBox returnDayComboBox
java.util.Vector months
java.util.Vector cities
boolean cancelled
java.util.Hashtable citiesToAirports
java.util.Hashtable airportsToCities
java.util.Hashtable abbrevToMonths
javax.swing.JRadioButton notifyRadioButton
javax.swing.JComboBox agentsComboBox
javax.swing.JLabel jLabel7
javax.swing.JTextField actionTextField
Constructor Detail |
public AirfareAgentCustomizer(java.awt.Frame frame, java.lang.String title, boolean modal)
AirfareAgentCustomizer
object.frame
- the Frame object for this customizertitle
- the String object that contains the title of this
customizermodal
- the boolean flag indicating the modalitypublic AirfareAgentCustomizer()
AirfareAgentCustomizer
object.Method Detail |
public void setObject(java.lang.Object obj)
obj
- the Object to be customizedprotected void init()
void jbInit() throws java.lang.Exception
void departCityComboBox_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent objectvoid destCityComboBox_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent objectvoid initializeButton_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when the initialize
button was pressedvoid CancelButton_actionPerformed(java.awt.event.ActionEvent e)
e
- the ActionEvent object generated when the cancel button
was pressedpublic void getDataFromBean()
public void setDataOnBean()
public void processCIAgentEvent(CIAgentEvent event)
event
- the CIAgentEvent object to be processedpublic void postCIAgentEvent(CIAgentEvent event)
event
- the CIAgentEvent object to be processed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |