org.objectweb.jac.aspects.gui
Interface FieldEditor

All Superinterfaces:
FieldView, View, ViewIdentity
All Known Subinterfaces:
ReferenceEditor
All Known Implementing Classes:
AbstractFieldEditor, AbstractFieldEditor, AbstractFileEditor, BooleanEditor, BooleanEditor, FileEditor, FilePathEditor, FormatEditor, ImageURLEditor, IndicesSelector, ObjectChooser, ObjectChooser, PasswordFieldEditor, PointEditor, PrimitiveFieldEditor, TextEditor, URLEditor, URLEditor

public interface FieldEditor
extends FieldView

This interface is implemented to define different value editors depending on the type of the value to edit.


Method Summary
 void commit()
          Commits the changes in this editor.
 Object getValue()
          Gets the value of the edited object.
 boolean isEnabled()
           
 void onSetFocus(Object extraOption)
          Called when the focus is given to the editor
 void setEditedType(ClassItem type)
          Sets the type of the edited value
 void setEmbedded(boolean isEmbedded)
          Sets wether the editor is embedded in a view.
 void setEnabled(boolean enabled)
           
 
Methods inherited from interface org.objectweb.jac.aspects.gui.FieldView
getField, getSubstance, setAutoUpdate, setField, setSubstance, setValue
 
Methods inherited from interface org.objectweb.jac.aspects.gui.View
close, getContext, getDescription, getFactory, getLabel, getMessage, getParentView, getRootView, getStyle, getViewBorder, isClosed, isDescendantOf, setContext, setDescription, setFactory, setFocus, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder
 
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity
equalsView, equalsView, getParameters, getType, setParameters, setType
 

Method Detail

getValue

public Object getValue()
Gets the value of the edited object.

Returns:
an object of the edited type

setEmbedded

public void setEmbedded(boolean isEmbedded)
Sets wether the editor is embedded in a view.


onSetFocus

public void onSetFocus(Object extraOption)
Called when the focus is given to the editor

Parameters:
extraOption - an optional parameter

commit

public void commit()
Commits the changes in this editor.


isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

setEditedType

public void setEditedType(ClassItem type)
Sets the type of the edited value

Parameters:
type - the type of the edited value