JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.swing
Interface JCSpinBoxEditor


public interface JCSpinBoxEditor

The editor component used for JCSpinBox components.


Method Summary
 void addActionListener(ActionListener l)
          Adds an ActionListener.
 Component getEditorComponent()
          Returns the component that should be added to the tree hierarchy for this editor.
 Object getItem()
          Returns the edited item.
 void removeActionListener(ActionListener l)
          Removes an ActionListener.
 void selectAll()
          Asks the editor to start editing and to select everything.
 void setItem(Object anObject)
          Sets the item that should be edited.
 

Method Detail

getEditorComponent

public Component getEditorComponent()
Returns the component that should be added to the tree hierarchy for this editor.

Returns:
component that should be added to the tree hierarchy

setItem

public void setItem(Object anObject)
Sets the item that should be edited. Cancel any editing if necessary.

Parameters:
anObject -

getItem

public Object getItem()
Returns the edited item.

Returns:
edited item

selectAll

public void selectAll()
Asks the editor to start editing and to select everything.


addActionListener

public void addActionListener(ActionListener l)
Adds an ActionListener. An action event is generated when the edited item changes.

Parameters:
l - The action listener to be added

removeActionListener

public void removeActionListener(ActionListener l)
Removes an ActionListener.

Parameters:
l - The action listener to be removed

Copyright © 2004 Quest Software Inc..
All rights reserved.