|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--flatscape.editor.Editor
The base class for uform property editors. Each editor is for editing of one type of property defined by the configuration XML element.
The editors are displayed in an EditorPanel.
Copyright (c) 2001 Rutgers, The State University of New Jersey
EditorPanel| Field Summary | |
protected java.awt.Component |
component_
The editor component |
protected java.lang.String |
description_
The description of the property |
protected int |
height_
Relative height of editor |
protected EditorModel |
model_
The model |
protected java.lang.String |
name_
The property name |
protected EditorPanel |
parent_
The parent |
| Constructor Summary | |
Editor()
|
|
| Method Summary | |
java.lang.Object |
config(java.lang.Object parent,
org.w3c.dom.Element config)
Loads the configuration |
java.awt.Component |
getComponent()
|
java.lang.String |
getDescription()
|
int |
getHeight()
|
java.lang.String |
getName()
|
abstract java.lang.Object |
getPropertyValue()
|
void |
init(EditorModel model)
Initializing the editor. |
boolean |
isVisible()
|
void |
propertyUpdated(java.lang.String name,
java.lang.Object value)
Called by EditorPanel, when a property has been updated. |
abstract void |
setPropertyValue(java.lang.Object value)
Sets the value of the property |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected EditorPanel parent_
protected EditorModel model_
protected java.lang.String name_
protected java.lang.String description_
protected java.awt.Component component_
protected int height_
| Constructor Detail |
public Editor()
| Method Detail |
public abstract java.lang.Object getPropertyValue()
public abstract void setPropertyValue(java.lang.Object value)
public boolean isVisible()
public java.lang.String getName()
public java.lang.String getDescription()
public java.awt.Component getComponent()
public int getHeight()
public void init(EditorModel model)
init method is called.
public void propertyUpdated(java.lang.String name,
java.lang.Object value)
public java.lang.Object config(java.lang.Object parent,
org.w3c.dom.Element config)
throws java.lang.Exception
config in interface Configurableparent - The argument passed into the FConfig.getList methodconfig - The DOM element representing the XML element that
loaded this class.
java.lang.Exception - Thrown if there is any problem configuring this class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||