org.jfree.ui.tabbedui

Class DetailEditor

public abstract class DetailEditor extends JComponent

A detail editor.

Author: Thomas Morgner

Constructor Summary
DetailEditor()
Creates a new editor.
Method Summary
abstract voidclear()
Clears the editor.
protected abstract voidfillObject()
Edits the object.
ObjectgetObject()
Returns the object.
booleanisConfirmed()
Returns the confirmed flag.
protected static intparseInt(String text, int def)
Parses an integer.
protected voidsetConfirmed(boolean confirmed)
Sets the confirmed flag.
voidsetObject(Object object)
Sets the object to be edited.
voidupdate()
Updates the object.
protected abstract voidupdateObject(Object object)
Updates the object.

Constructor Detail

DetailEditor

public DetailEditor()
Creates a new editor.

Method Detail

clear

public abstract void clear()
Clears the editor.

fillObject

protected abstract void fillObject()
Edits the object. The object itself should not be modified, until update or create was called.

getObject

public Object getObject()
Returns the object.

Returns: The object.

isConfirmed

public boolean isConfirmed()
Returns the confirmed flag.

Returns: The confirmed flag.

parseInt

protected static int parseInt(String text, int def)
Parses an integer.

Parameters: text the text. def the default value.

Returns: The parsed integer, or the default value if the string didn't contain a value.

setConfirmed

protected void setConfirmed(boolean confirmed)
Sets the confirmed flag.

Parameters: confirmed the confirmed flag.

setObject

public void setObject(Object object)
Sets the object to be edited.

Parameters: object the object.

update

public void update()
Updates the object.

updateObject

protected abstract void updateObject(Object object)
Updates the object.

Parameters: object the object.