|
POGO Java Program |
|||||
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 | +--ClassDialog
This class manage a dialog window to get or modify class parametes.
these parameters are Class name, Project title and Class description.
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 | |
private javax.swing.JButton |
cancelBtn
|
private javax.swing.JTextArea |
descText
|
private javax.swing.JLabel |
jLabel1
|
private javax.swing.JLabel |
jLabel5
|
private javax.swing.JLabel |
jLabel6
|
private javax.swing.JPanel |
jPanel1
|
private javax.swing.JPanel |
jPanel2
|
private javax.swing.JLabel |
nameLbl
|
private javax.swing.JTextField |
nameText
|
private javax.swing.JButton |
okBtn
|
private javax.swing.JTextField |
projectTitle
|
private static int |
returnStatus
The dialog closed button. |
Fields inherited from class javax.swing.JDialog |
accessibleContext,
defaultCloseOperation,
rootPane,
rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
base,
modal,
nameCounter,
resizable,
serialVersionUID,
title |
Fields inherited from class java.awt.Window |
active,
base,
focusMgr,
inputContext,
nameCounter,
OPENED,
ownedWindowList,
serialVersionUID,
state,
warningString,
weakThis,
windowListener,
windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component,
containerListener,
containerSerializedDataVersion,
dispatcher,
layoutMgr,
maxSize,
ncomponents,
serialVersionUID |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
assert,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
changeSupport,
componentListener,
componentListenerK,
componentOrientation,
componentSerializedDataVersion,
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,
name,
nameExplicitlySet,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
serialVersionUID,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
ClassDialog(java.awt.Frame parent,
boolean modal)
Constructor for the dialog |
Method Summary | |
private void |
cancelBtnActionPerformed(java.awt.event.ActionEvent evt)
method called on Cancel button clicked. |
private void |
closeDialog(java.awt.event.WindowEvent evt)
method called on close window button clicked. |
private void |
doClose(int retStatus)
Close th dialog and set the reurn status. |
java.lang.String |
getClassName()
Read class name text field. |
java.lang.String |
getDescription()
Read class description text field. |
java.lang.String |
getProjectTitle()
Read project title text field. |
private void |
initComponents()
This method is called from within the constructor to initialize the form. |
static void |
main(java.lang.String[] args)
|
private void |
okBtnActionPerformed(java.awt.event.ActionEvent evt)
method called on OK button clicked. |
void |
setClassName(java.lang.String s)
Set class name text field. |
void |
setDescription(java.lang.String s)
Set class description text field. |
void |
setProjectTitle(java.lang.String s)
Set project title text field. |
int |
showClassDialog(java.lang.String name,
java.lang.String description)
Popup the dialog and initialize text field. |
Methods inherited from class javax.swing.JDialog |
addImpl,
createRootPane,
createRootPaneException,
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,
ownedInit,
pack,
postEvent,
postProcessKeyEvent,
postWindowEvent,
preProcessKeyEvent,
processEvent,
readObject,
removeOwnedWindow,
removeWindowListener,
setFocusOwner,
setWarningString,
toBack,
toFront,
transferFocus,
writeObject |
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,
printOneComponent,
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,
getWindowForObject,
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,
registerNatives,
wait,
wait,
wait |
Field Detail |
private static int returnStatus
private javax.swing.JPanel jPanel1
private javax.swing.JPanel jPanel2
private javax.swing.JButton okBtn
private javax.swing.JButton cancelBtn
private javax.swing.JTextField nameText
private javax.swing.JLabel nameLbl
private javax.swing.JLabel jLabel5
private javax.swing.JLabel jLabel6
private javax.swing.JTextArea descText
private javax.swing.JLabel jLabel1
private javax.swing.JTextField projectTitle
Constructor Detail |
public ClassDialog(java.awt.Frame parent, boolean modal)
parent
- This the frame parent to create dialogmodal
- Set the dialog to modal if true.Method Detail |
private void initComponents()
private void cancelBtnActionPerformed(java.awt.event.ActionEvent evt)
evt
- event recieved.private void okBtnActionPerformed(java.awt.event.ActionEvent evt)
evt
- event recieved.private void closeDialog(java.awt.event.WindowEvent evt)
evt
- event recieved.public int showClassDialog(java.lang.String name, java.lang.String description)
name
- Class name.description
- Class description.private void doClose(int retStatus)
retStatus
- value to b used to set the return status.public java.lang.String getProjectTitle()
public void setProjectTitle(java.lang.String s)
s
- the String to set the project title text field.public java.lang.String getClassName()
public void setClassName(java.lang.String s)
s
- the String to set the class name text field.public java.lang.String getDescription()
public void setDescription(java.lang.String s)
s
- the String to set the class description text field.public static void main(java.lang.String[] args)
|
POGO Java Program |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |