wt.clients.gui
Class ChangeIdentityPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.gui.ChangeIdentityPanel
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class ChangeIdentityPanel
extends Panel

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private  boolean allowNullName
           
private  ThreadGroup contextGroup
           
private  String currentName
           
private  String currentNumber
           
private  Identified identifiedObject
           
private  Vector identityListeners
           
(package private)  Label nameLabel
           
(package private)  TextField nameTextField
           
(package private)  Label numberLabel
           
(package private)  TextField numberTextField
           
private  Applet parentApplet
           
private  Frame parentFrame
           
protected static ResourceBundle resources
           
protected static String RESOURCES
           
private  Object selectedObject
           
private static String versionID
           
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ChangeIdentityPanel()
           
 
Method Summary
 void addChangeIdentityListener(ChangeIdentityListener acl)
           
 void addKeyListener(KeyListener l)
           
 Identified changeIdentity()
           
protected  void dispatchRefresh(Object obj, int action)
           
 void enablePanel(boolean enable)
           
protected  WTContext getContext()
           
 Identified getIdentifiedObject()
           
protected  String getLocalizedMessage(String key, Object[] params)
          Deprecated.  
protected static PropertyDescriptor getObjectPropertyDescriptor(Identified identified_obj, String attribute)
          Utility method to retrieve PropertyDescriptor of modelled attributes on Persistable objects.
 Applet getParentApplet()
           
 Frame getParentFrame()
           
protected static PropertyDescriptor getPropertyDescriptor(Identified identified_obj, String attribute)
           
protected  void initializeProperties()
           
private  void initResources()
           
private  void localize()
           
protected  void notifyChangeIdentityListeners(ChangeIdentityEvent evt)
           
 void refresh()
           
 void removeChangeIdentityListener(ChangeIdentityListener acl)
           
 void setAllowNullName(boolean nullName)
           
protected  void setAttribute(String attr, String value)
           
 void setIdentifiedObject(Identified identified)
           
 void setParentApplet(Applet parent_applet)
           
 void setParentFrame(Frame parent_frame)
           
 void setSelectedObject(Object selected)
           
protected  void showMessageDialog(String message)
           
private  void updateNameLayout()
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, 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, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, 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, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

nameLabel

Label nameLabel

nameTextField

TextField nameTextField

numberLabel

Label numberLabel

numberTextField

TextField numberTextField

RESOURCES

protected static String RESOURCES

resources

protected static ResourceBundle resources

parentApplet

private Applet parentApplet

parentFrame

private Frame parentFrame

identifiedObject

private Identified identifiedObject

selectedObject

private Object selectedObject

currentName

private String currentName

currentNumber

private String currentNumber

contextGroup

private ThreadGroup contextGroup

identityListeners

private Vector identityListeners

allowNullName

private boolean allowNullName
Constructor Detail

ChangeIdentityPanel

public ChangeIdentityPanel()
Method Detail

initResources

private void initResources()

localize

private void localize()

setParentApplet

public void setParentApplet(Applet parent_applet)

getParentApplet

public Applet getParentApplet()

setParentFrame

public void setParentFrame(Frame parent_frame)

getParentFrame

public Frame getParentFrame()

setIdentifiedObject

public void setIdentifiedObject(Identified identified)
                         throws WTException
Throws:
WTException

getIdentifiedObject

public Identified getIdentifiedObject()

setSelectedObject

public void setSelectedObject(Object selected)

changeIdentity

public Identified changeIdentity()
                          throws WTIntrospectionException,
                                 WTException
Throws:
WTIntrospectionException
WTException

initializeProperties

protected void initializeProperties()
                             throws WTException
Throws:
WTException

showMessageDialog

protected void showMessageDialog(String message)

getContext

protected WTContext getContext()

getLocalizedMessage

protected String getLocalizedMessage(String key,
                                     Object[] params)
Deprecated.  

See WTMessage.getLocalizedMessage( )


dispatchRefresh

protected void dispatchRefresh(Object obj,
                               int action)

setAttribute

protected void setAttribute(String attr,
                            String value)
                     throws WTIntrospectionException,
                            WTException
Throws:
WTIntrospectionException
WTException

enablePanel

public void enablePanel(boolean enable)

updateNameLayout

private void updateNameLayout()

refresh

public void refresh()

addChangeIdentityListener

public void addChangeIdentityListener(ChangeIdentityListener acl)

removeChangeIdentityListener

public void removeChangeIdentityListener(ChangeIdentityListener acl)

notifyChangeIdentityListeners

protected void notifyChangeIdentityListeners(ChangeIdentityEvent evt)

addKeyListener

public void addKeyListener(KeyListener l)

getObjectPropertyDescriptor

protected static PropertyDescriptor getObjectPropertyDescriptor(Identified identified_obj,
                                                                String attribute)
                                                         throws WTIntrospectionException,
                                                                WTException
Utility method to retrieve PropertyDescriptor of modelled attributes on Persistable objects. Note that this method gets the PropertyDescriptor of attributes directly on the Identified object and not on the IdentificationObject.

Throws:
WTIntrospectionException
WTException

getPropertyDescriptor

protected static PropertyDescriptor getPropertyDescriptor(Identified identified_obj,
                                                          String attribute)
                                                   throws WTIntrospectionException,
                                                          WTException
Throws:
WTIntrospectionException
WTException

setAllowNullName

public void setAllowNullName(boolean nullName)