Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.progeeks.meta.swing.editor
Class AbstractSpinnerEditor  view AbstractSpinnerEditor download AbstractSpinnerEditor.java

java.lang.Object
  extended byorg.progeeks.meta.swing.AbstractPropertyUI
      extended byorg.progeeks.meta.swing.AbstractPropertyEditor
          extended byorg.progeeks.meta.swing.editor.AbstractSpinnerEditor
All Implemented Interfaces:
org.progeeks.meta.swing.MetaPropertyEditor, org.progeeks.meta.swing.MetaPropertyUI
Direct Known Subclasses:
DoubleEditor, FloatEditor, IntegerEditor

public abstract class AbstractSpinnerEditor
extends org.progeeks.meta.swing.AbstractPropertyEditor

Basic spinner control editor implementation.

Version:
$Revision: 1.7 $

Nested Class Summary
private  class AbstractSpinnerEditor.EditorListener
           
 
Nested classes inherited from class org.progeeks.meta.swing.AbstractPropertyUI
 
Field Summary
private  javax.swing.JSpinner component
           
private  AbstractSpinnerEditor.EditorListener editListener
           
private  java.lang.Object spinnerValue
           
 
Fields inherited from class org.progeeks.meta.swing.AbstractPropertyUI
 
Constructor Summary
protected AbstractSpinnerEditor()
           
 
Method Summary
protected  void componentChanged()
           
protected abstract  javax.swing.JSpinner createSpinner()
           
protected abstract  java.lang.Object getEmptyValue()
           
 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 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.
 
Methods inherited from class org.progeeks.meta.swing.AbstractPropertyEditor
flushEdits
 
Methods inherited from class org.progeeks.meta.swing.AbstractPropertyUI
getPropertyMutator, isLabeled, isSingleColumn, propertyChanged, release, setPropertyMutator, setPropertyValue
 
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
isLabeled, isSingleColumn, release, setPropertyMutator
 

Field Detail

component

private javax.swing.JSpinner component

spinnerValue

private java.lang.Object spinnerValue

editListener

private AbstractSpinnerEditor.EditorListener editListener
Constructor Detail

AbstractSpinnerEditor

protected AbstractSpinnerEditor()
Method Detail

getUIComponent

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


releaseComponent

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


createSpinner

protected abstract javax.swing.JSpinner createSpinner()

getEmptyValue

protected abstract java.lang.Object getEmptyValue()

resetComponentValue

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


setComponentValue

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


componentChanged

protected void componentChanged()