org.progeeks.meta.swing.editor
Class BooleanEditor

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

public class BooleanEditor
extends AbstractPropertyEditor

An editor implementation for Boolean values.

Version:
$Revision: 1.4 $
Author:
Paul Speed

Constructor Summary
BooleanEditor()
           
 
Method Summary
protected  void componentChanged()
           
 java.awt.Component getUIComponent()
          Returns the component that allows modification of the associated property mutator.
 boolean isLabeled()
          Returns true if the editor provides its own label.
protected  void releaseComponent()
          Implemented by subclasses to release any component-related resources.
protected  void resetComponentValue()
          Called to set the component value to a default state.
protected  void setComponentValue(java.lang.Object value)
          Called to set the current value displayed in the component.
 void setPropertyMutator(PropertyMutator mutator)
          Called when the property mutator changes.
 
Methods inherited from class org.progeeks.meta.swing.AbstractPropertyEditor
flushEdits
 
Methods inherited from class org.progeeks.meta.swing.AbstractPropertyUI
getPropertyMutator, getViewContext, initializeView, isSingleColumn, propertyChanged, release, 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, isSingleColumn, release
 

Constructor Detail

BooleanEditor

public BooleanEditor()
Method Detail

setPropertyMutator

public void setPropertyMutator(PropertyMutator mutator)
Called when the property mutator changes. This implementation calls the superclass implementation and then uses the mutator's property info to set the check-box label.

Specified by:
setPropertyMutator in interface MetaPropertyUI
Overrides:
setPropertyMutator in class AbstractPropertyUI

isLabeled

public boolean isLabeled()
Returns true if the editor provides its own label. Check boxes label themselves, so this returns true.

Specified by:
isLabeled in interface MetaPropertyUI
Overrides:
isLabeled in class AbstractPropertyUI

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

releaseComponent

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

Specified by:
releaseComponent in class AbstractPropertyEditor

setComponentValue

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

Specified by:
setComponentValue in class AbstractPropertyUI

resetComponentValue

protected void resetComponentValue()
Called to set the component value to a default state. The default implementation calls setComponentValue(null).

Overrides:
resetComponentValue in class AbstractPropertyUI

componentChanged

protected void componentChanged()


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