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 void
clear()
Clears the editor.
protected abstract void
fillObject()
Edits the object.
Object
getObject()
Returns the object.
boolean
isConfirmed()
Returns the confirmed flag.
protected static int
parseInt(String text, int def)
Parses an integer.
protected void
setConfirmed(boolean confirmed)
Sets the confirmed flag.
void
setObject(Object object)
Sets the object to be edited.
void
update()
Updates the object.
protected abstract void
updateObject(Object object)
Updates the object.

Constructor Details

DetailEditor

public DetailEditor()
Creates a new editor.

Method Details

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.