|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.samskivert.swing.CollapsiblePanel
com.threerings.editor.swing.BasePropertyEditor
com.threerings.editor.swing.PropertyEditor
public abstract class PropertyEditor
Edits a single object property.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PropertyEditor()
|
|
| Method Summary | |
|---|---|
static PropertyEditor |
createEditor(EditorContext ctx,
Property property,
Property[] ancestors)
Creates a property editor for the specified object property. |
Object |
getObject()
Returns a reference to the object being edited. |
Property |
getProperty()
Returns a reference to the edited property. |
void |
init(EditorContext ctx,
Property property,
Property[] ancestors)
Initializes the editor with its object and property references. |
static void |
registerEditorClass(Class<?> type,
Class<? extends PropertyEditor> clazz)
Adds a custom editor class for properties of the given type. |
static void |
registerEditorClass(String name,
Class<? extends PropertyEditor> clazz)
Adds a custom editor by name. |
void |
setObject(Object object)
Sets the object being edited. |
abstract void |
update()
Updates the state of the editor from the object. |
| Methods inherited from class com.threerings.editor.swing.BasePropertyEditor |
|---|
actionPerformed, addChangeListener, getLabel, getLabels, getLabels, getLabels, getMousePath, removeChangeListener |
| Methods inherited from class com.samskivert.swing.CollapsiblePanel |
|---|
getContent, isCollapsed, setCollapsed, setGap, setTrigger, setTriggerContainer, setTriggerContainer, setTriggerContainer |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyEditor()
| Method Detail |
|---|
public static PropertyEditor createEditor(EditorContext ctx,
Property property,
Property[] ancestors)
ancestors - the ancestor properties from which to inherit constraints, if any.
public static void registerEditorClass(Class<?> type,
Class<? extends PropertyEditor> clazz)
public static void registerEditorClass(String name,
Class<? extends PropertyEditor> clazz)
public void init(EditorContext ctx,
Property property,
Property[] ancestors)
public Property getProperty()
public void setObject(Object object)
public Object getObject()
public abstract void update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||