All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.config.PropertyEditor

java.lang.Object
   |
   +----w3c.tools.store.AttributeHolder
           |
           +----w3c.tools.store.Resource
                   |
                   +----w3c.jigsaw.resources.HTTPResource
                           |
                           +----w3c.jigsaw.config.PropertyEditor

public class PropertyEditor
extends HTTPResource

Constructor Index

 o PropertyEditor()

Method Index

 o get(Request)
Get the content of the property editor.
 o initialize(Object[])
Initialize the property editor.
 o lookup(LookupState, LookupResult)
Lookup for a property set editor.
 o registerPropertySet(PropertySet)
Register a given set of resources for editing.
 o saveProperties(Request)
Save edited our properties.

Constructors

 o PropertyEditor
 public PropertyEditor()

Methods

 o saveProperties
 protected Reply saveProperties(Request request) throws HTTPException
Save edited our properties.

Parameters:
request - The request that triggered the save.
Throws: HTTPException
If saving the properties failed.
 o lookup
 public boolean lookup(LookupState ls,
                       LookupResult lr) throws HTTPException
Lookup for a property set editor. After checking that the set was registered, this method will either reuse a cached editor, or create a fresh one for the given set, that will be returned to complete lookup.

Parameters:
ls - The current lookup state.
lr - The lookup result under construction.
Returns:
A boolean, true if lookup is done, false otherwise.
Throws: HTTPException
If some error occurs.
Overrides:
lookup in class HTTPResource
 o registerPropertySet
 public void registerPropertySet(PropertySet set)
Register a given set of resources for editing.

Parameters:
set - The PropertySet to provide an editor for.
 o get
 public Reply get(Request request) throws HTTPException
Get the content of the property editor. Display some links to the registered sets of properties.

Parameters:
request - The incoming request.
Returns:
A suitable reply.
Throws: HTTPException
If something breaks.
Overrides:
get in class HTTPResource
 o initialize
 public void initialize(Object values[])
Initialize the property editor.

Parameters:
values - The default attribute values for the editor.
Overrides:
initialize in class AttributeHolder

All Packages  Class Hierarchy  This Package  Previous  Next  Index