org.openbp.jaspira.propertybrowser.editor.standard
Class BooleanEditor

java.lang.Object
  extended by org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor
      extended by org.openbp.jaspira.propertybrowser.editor.standard.BooleanEditor
All Implemented Interfaces:
java.awt.event.FocusListener, java.awt.event.KeyListener, java.lang.Cloneable, java.util.EventListener, javax.swing.event.ChangeListener, Copyable, PropertyEditor

public class BooleanEditor
extends AbstractPropertyEditor
implements javax.swing.event.ChangeListener

Property editor for boolean values used by the property browser.

Author:
Erich Lauterbach

Field Summary
 
Fields inherited from class org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor
component, listener, object, owner, parameterParser, params, propertyBrowser, propertyName, readonly, validator, value, valueChanged, valueLoaded
 
Fields inherited from interface org.openbp.common.generic.Copyable
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW
 
Constructor Summary
BooleanEditor()
          Default constructor.
 
Method Summary
 void createComponent()
          Creates the editor component of the property editor.
 java.lang.Object getComponentValue()
          Gets the current editor component value.
 void setComponentValue()
          Sets the display component value.
 void stateChanged(javax.swing.event.ChangeEvent e)
          Invoked when the target of the listener has changed its state.
 
Methods inherited from class org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor
clone, copyFrom, focusGained, focusLost, forwardKeyEvent, getComponent, getObject, getOwner, getParameterParser, getParams, getPropertyBrowser, getPropertyComponent, getPropertyName, getSafeString, getValidator, getValue, highlight, initialize, initializeComponent, isReadonly, keyPressed, keyReleased, keyTyped, loadProperty, parseParams, propertyChanged, resetComponentDisplay, resetProperty, saveProperty, setObject, setOwner, setParams, setPropertyBrowser, setPropertyName, setReadonly, setValidator, setValue, validateProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanEditor

public BooleanEditor()
Default constructor.

Method Detail

createComponent

public void createComponent()
Creates the editor component of the property editor.

Specified by:
createComponent in class AbstractPropertyEditor

setComponentValue

public void setComponentValue()
Sets the display component value.

Specified by:
setComponentValue in class AbstractPropertyEditor

getComponentValue

public java.lang.Object getComponentValue()
Gets the current editor component value.

Specified by:
getComponentValue in class AbstractPropertyEditor
Returns:
The current value of the component (can be null)
Note that this value might be different from the actual property value if the property hasn't been saved yet.

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Invoked when the target of the listener has changed its state.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
e - a ChangeEvent object


Copyright © 2011. All Rights Reserved.