org.progeeks.meta.swing
Class DefaultPropertyEditor

java.lang.Object
  extended by org.progeeks.meta.swing.AbstractPropertyUI
      extended by org.progeeks.meta.swing.AbstractPropertyEditor
          extended by org.progeeks.meta.swing.DefaultPropertyEditor
All Implemented Interfaces:
MetaPropertyEditor, MetaPropertyUI

public class DefaultPropertyEditor
extends AbstractPropertyEditor
implements MetaPropertyEditor

Default implementation of MetaPropertyEditor that uses a property format object and a JTextField to apply changes to a PropertyMutator.

Version:
$Revision: 1.8 $
Author:
Paul Speed

Constructor Summary
DefaultPropertyEditor(PropertyFormat format)
           
 
Method Summary
protected  void componentChanged()
           
 void flushEdits()
          Causes any edits in progress to be flushed to the mutator if possible.
 java.awt.Component getUIComponent()
          Returns the component that allows modification of the associated property mutator.
protected  void releaseComponent()
          Implemented by subclasses to release any component-related resources.
protected  void setComponentValue(java.lang.Object value)
          Called to set the current value displayed in the component.
 
Methods inherited from class org.progeeks.meta.swing.AbstractPropertyUI
getPropertyMutator, getViewContext, initializeView, isLabeled, isSingleColumn, propertyChanged, release, resetComponentValue, setPropertyMutator, setPropertyValue, setupToolTipText, terminateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.progeeks.meta.swing.MetaPropertyUI
getViewContext, initializeView, isLabeled, isSingleColumn, release, setPropertyMutator
 

Constructor Detail

DefaultPropertyEditor

public DefaultPropertyEditor(PropertyFormat format)
Method Detail

setComponentValue

protected void setComponentValue(java.lang.Object value)
Called to set the current value displayed in the component.

Specified by:
setComponentValue in class AbstractPropertyUI

releaseComponent

protected void releaseComponent()
Implemented by subclasses to release any component-related resources. Default implementation does nothing.

Specified by:
releaseComponent in class AbstractPropertyEditor

getUIComponent

public java.awt.Component getUIComponent()
Returns the component that allows modification of the associated property mutator.

Specified by:
getUIComponent in interface MetaPropertyUI
Specified by:
getUIComponent in class AbstractPropertyUI

flushEdits

public void flushEdits()
Causes any edits in progress to be flushed to the mutator if possible. Calls componentChanged().

Specified by:
flushEdits in interface MetaPropertyEditor
Overrides:
flushEdits in class AbstractPropertyEditor

componentChanged

protected void componentChanged()


Copyright © 2002-2003 Paul Speed. All Rights Reserved.