com.objectwave.viewUtility
Class PropertyPanelAdapter

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--com.objectwave.viewUtility.PropertyPanelAdapter
All Implemented Interfaces:
javax.accessibility.Accessible, javax.swing.event.ChangeListener, javax.swing.event.DocumentListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, PropertyPanel, java.io.Serializable, java.awt.event.TextListener

public class PropertyPanelAdapter
extends java.awt.Panel
implements PropertyPanel, javax.swing.event.ChangeListener, java.awt.event.ItemListener, javax.swing.event.DocumentListener, java.awt.event.TextListener

Allows for tighter interaction with property dialog. This implements many of the component listeners so that it can update that a screen has changed.

See Also:
Serialized Form

Field Summary
protected  boolean changed
           
protected  boolean rendered
           
protected  java.lang.String tab
           
 
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
PropertyPanelAdapter(java.lang.String tabName)
           
 
Method Summary
 void acceptChanges()
           
 void addChangeListener(javax.swing.event.ChangeListener x)
           
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
 void fillDomainObject()
          Subclass me to fill my values when my screen has changed.
 java.lang.String getTabName()
           
 void hasChanged(boolean aValue)
           
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
 boolean isRendered()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void removeChangeListener(javax.swing.event.ChangeListener x)
           
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
 void renderTab()
          Entry point for creating all of the parts of a tab.
 void setTabName(java.lang.String aValue)
           
 void stateChanged()
           
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 void tabSelected()
           
 void textValueChanged(java.awt.event.TextEvent e)
           
 
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, 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, 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

tab

protected java.lang.String tab

rendered

protected boolean rendered

changed

protected boolean changed
Constructor Detail

PropertyPanelAdapter

public PropertyPanelAdapter(java.lang.String tabName)
Method Detail

acceptChanges

public void acceptChanges()
Specified by:
acceptChanges in interface PropertyPanel

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener x)
Specified by:
addChangeListener in interface PropertyPanel

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

fillDomainObject

public void fillDomainObject()
Subclass me to fill my values when my screen has changed.


getTabName

public java.lang.String getTabName()
Specified by:
getTabName in interface PropertyPanel

hasChanged

public void hasChanged(boolean aValue)

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

isRendered

public boolean isRendered()
Specified by:
isRendered in interface PropertyPanel

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener x)
Specified by:
removeChangeListener in interface PropertyPanel

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

renderTab

public void renderTab()
Entry point for creating all of the parts of a tab. This should be overridden.

Specified by:
renderTab in interface PropertyPanel

setTabName

public void setTabName(java.lang.String aValue)

stateChanged

public void stateChanged()

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

tabSelected

public void tabSelected()
Specified by:
tabSelected in interface PropertyPanel

textValueChanged

public void textValueChanged(java.awt.event.TextEvent e)
Specified by:
textValueChanged in interface java.awt.event.TextListener