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

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

public class IntegerEditor
extends StringEditor

A property editor for integer values used by the property browser. By default, components returned to the property browser for both editing and displaying are both induvidual JTextFields, however, should the porperty be read only, then the display component will be a JLable, and the editor component will return a null.

Author:
Andreas Putz

Field Summary
 
Fields inherited from class org.openbp.jaspira.propertybrowser.editor.standard.StringEditor
textField
 
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
IntegerEditor()
          Default constructor.
 
Method Summary
 java.lang.Object getComponentValue()
          Gets the current editor component value.
 
Methods inherited from class org.openbp.jaspira.propertybrowser.editor.standard.StringEditor
changedUpdate, createComponent, highlight, insertUpdate, keyPressed, removeUpdate, setComponentValue
 
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, initialize, initializeComponent, isReadonly, 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

IntegerEditor

public IntegerEditor()
Default constructor.

Method Detail

getComponentValue

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

Overrides:
getComponentValue in class StringEditor
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.


Copyright © 2011. All Rights Reserved.