    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.config.PropertyEditor

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

public class PropertyEditor
extends HTTPResource

##

PropertyEditor()

##

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

##

PropertyEditor

      public PropertyEditor()

##

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.

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

registerPropertySet

      public void registerPropertySet(PropertySet set)

  Register a given set of resources for editing.
  Parameters:
    set - The PropertySet to provide an editor for.

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

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