POGO Java Program


pogo.appli
Class AttributeDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--pogo.appli.AttributeDialog

public class AttributeDialog
extends javax.swing.JDialog
implements PogoAppliDefs, PogoDefs

A Dialog Class to get the Attribute parameters.

See Also:
Serialized Form

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  java.lang.String assAttr
           
private  javax.swing.JLabel assAttrLBL
           
private  javax.swing.JTextField assAttrTF
           
private  int attrType
           
private  javax.swing.JComboBox attrTypeCB
           
private  javax.swing.JButton cancelBtn
           
private  javax.swing.JComboBox dataTypeCB
           
private  int EMPTY_FIELD
           
private  javax.swing.JLabel jLabel1
           
private  javax.swing.JLabel jLabel2
           
private  javax.swing.JLabel jLabel3
           
private  javax.swing.JLabel jLabel4
           
private  javax.swing.JLabel jLabel5
           
private  javax.swing.JPanel jPanel1
           
private  javax.swing.JPanel jPanel2
           
private  java.lang.String name
           
private  javax.swing.JLabel nameLbl
           
private  javax.swing.JTextField nameText
           
private  int NEGATIVE_FIELD
           
private  javax.swing.JButton okBtn
           
private static int returnStatus
           
private  javax.swing.JComboBox rwTypeCB
           
private  javax.swing.JLabel rwTypeLBL
           
private  javax.swing.JLabel xDataLBL
           
private  javax.swing.JTextField xDataTF
           
private  int xSize
           
private  javax.swing.JLabel yDataLBL
           
private  javax.swing.JTextField yDataTF
           
private  int ySize
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
base, keepBlocking, 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
 
Fields inherited from interface pogo.appli.PogoAppliDefs
ATTRIBUTES, BTN1, BTN2, BTN3, COLLECTION, COMMANDS, FILE_SAVE, GENE_DOC, GENE_SRC, helpAbout, helpContents, IMPORT_FILE, LEAF_ITEM, OPEN_FILE, PALETTE_CREATE_ATTR, PALETTE_CREATE_CMD, PALETTE_CREATE_PROP, PALETTE_CREATE_STATE, PALETTE_EDIT_CLASS, PROPERTIES, RET_CANCEL, RET_ERROR, RET_OK, STATES, TangoTypesArray, TREE_ROOT
 
Fields inherited from interface pogo.gene.PogoDefs
ALREADY_OVERRIDING, ATTR_IMAGE, ATTR_READ, ATTR_READ_WITH_WRITE, ATTR_READ_WRITE, ATTR_SCALAR, ATTR_SPECTRUM, ATTR_WRITE, AttrDataArray, AttrRWtypeArray, AttrTypeArray, authorRes, classDescRes, cppAddAttrib, cppAddCommands, cppExtention, cppFile, cppLang, dataCommands, dataExtention, dataFile, dataStartCmd, dataStartStates, endGeneTag, errDetected, javaAddAttrib, javaAddCommands, javaExtention, javaFile, javaLang, languageRes, NEW_STR, NOT_OVERRIDE, outputFiles, OVERRIDE, pageTitleRes, pogoLang, projectTitleRes, readAttrProto1, readAttrProto2, readAttrProto3, readFile, revisionRes, startGeneTag, STATE, statesDescRes, STATUS, Tango_ALARM, Tango_CLOSE, Tango_CONST_DEV_STRING, Tango_DISABLE, Tango_EXTRACT, Tango_FAULT, Tango_INSERT, Tango_MOVING, Tango_OFF, Tango_ON, Tango_OPEN, Tango_RUNNING, Tango_STANDBY, Tango_TYPE_UNKNOWN, Tango_UNKNOWN, Tango_WARMUP, TangoStatesArray, templateBlock, templateClass, templateClassCmd, templateCmd, templateExecuteCmd, templateFile, writeAttrProto, writeFile
 
Constructor Summary
AttributeDialog(java.awt.Frame parent, boolean modal)
          Initializes the Form
 
Method Summary
private  void attrTypeCBActionPerformed(java.awt.event.ActionEvent evt)
           
private  void cancelBtnActionPerformed(java.awt.event.ActionEvent evt)
           
private  int checkIntField(java.lang.String s)
           
private  void closeDialog(java.awt.event.WindowEvent evt)
          Closes the dialog
private  void dataTypeCBActionPerformed(java.awt.event.ActionEvent evt)
           
private  void doClose(int retStatus)
           
 Attrib getInput()
           
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)
           
private  void rwTypeCBActionPerformed(java.awt.event.ActionEvent evt)
           
 int showDialog(Attrib attr)
           
private  void updateWindow()
           
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, createRootPaneException, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
, addNotify, conditionalShow, constructComponentName, dispose, getTitle, hide, hideAndDisposeHandler, initIDs, isModal, isResizable, setModal, setResizable, setTitle, show
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, eventEnabled, finalize, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, readObject, removeOwnedWindow, removeWindowListener, setCursor, 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, getCursorTarget, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, paint, paintComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, printOneComponent, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, removeAll, removeContainerListener, removeNotify, setFont, updateCursor, 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, getIntrinsicCursor, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, 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, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, 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

returnStatus

private static int returnStatus

name

private java.lang.String name

assAttr

private java.lang.String assAttr

attrType

private int attrType

xSize

private int xSize

ySize

private int ySize

EMPTY_FIELD

private final int EMPTY_FIELD

NEGATIVE_FIELD

private final int NEGATIVE_FIELD

jPanel2

private javax.swing.JPanel jPanel2

nameLbl

private javax.swing.JLabel nameLbl

attrTypeCB

private javax.swing.JComboBox attrTypeCB

jLabel1

private javax.swing.JLabel jLabel1

nameText

private javax.swing.JTextField nameText

jLabel2

private javax.swing.JLabel jLabel2

jLabel3

private javax.swing.JLabel jLabel3

jLabel4

private javax.swing.JLabel jLabel4

dataTypeCB

private javax.swing.JComboBox dataTypeCB

xDataLBL

private javax.swing.JLabel xDataLBL

yDataLBL

private javax.swing.JLabel yDataLBL

xDataTF

private javax.swing.JTextField xDataTF

yDataTF

private javax.swing.JTextField yDataTF

rwTypeCB

private javax.swing.JComboBox rwTypeCB

jLabel5

private javax.swing.JLabel jLabel5

assAttrLBL

private javax.swing.JLabel assAttrLBL

assAttrTF

private javax.swing.JTextField assAttrTF

rwTypeLBL

private javax.swing.JLabel rwTypeLBL

jPanel1

private javax.swing.JPanel jPanel1

okBtn

private javax.swing.JButton okBtn

cancelBtn

private javax.swing.JButton cancelBtn
Constructor Detail

AttributeDialog

public AttributeDialog(java.awt.Frame parent,
                       boolean modal)
Initializes the Form
Method Detail

initComponents

private void initComponents()
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the FormEditor.

rwTypeCBActionPerformed

private void rwTypeCBActionPerformed(java.awt.event.ActionEvent evt)

dataTypeCBActionPerformed

private void dataTypeCBActionPerformed(java.awt.event.ActionEvent evt)

attrTypeCBActionPerformed

private void attrTypeCBActionPerformed(java.awt.event.ActionEvent evt)

cancelBtnActionPerformed

private void cancelBtnActionPerformed(java.awt.event.ActionEvent evt)

checkIntField

private int checkIntField(java.lang.String s)

okBtnActionPerformed

private void okBtnActionPerformed(java.awt.event.ActionEvent evt)

closeDialog

private void closeDialog(java.awt.event.WindowEvent evt)
Closes the dialog

showDialog

public int showDialog(Attrib attr)

doClose

private void doClose(int retStatus)

getInput

public Attrib getInput()

updateWindow

private void updateWindow()

main

public static void main(java.lang.String[] args)

POGO Java Program