Rabbit 1.1

Class Rabbit

Object
   |
   +--Rabbit

class Rabbit


Rabbit is a framework for providing kind of rapid application prototyping features in Helma.
Defined in Global/Rabbit.js


Field Summary
<static>  <final> Number DATE
          Constant representing the date datatype
<static>  <final> String DATEFORMAT
          Constant representing the format of the date datatype
<static>  <final> Number EMAIL
          Constant representing the e-mail datatype
<static>  <final> Number FILE
          Constant representing the file datatype
<static>  <final> Number IMAGE
          Constant representing the image datatype
<static>  <final> Number NUMBER
          Constant representing the numeric datatype
<static>  <final> Number TEXT
          Constant representing the alphanumeric datatype
<static>  <final> Number VERSION
          Constant representing the current version number
 
Constructor Summary
Rabbit (<Boolean> restricted)
            Constructs a new instance of the Rabbit class.
 
Method Summary
 void editor(<HopObject> object)
           Renders an editor for a HopObject instance.
 HopObject getChildElement(<String> child)
           Retrieves the child element of an HopObject instance.
 Object getMeta(<String> prototype, <String> property)
           For convenience, easier access and also better performance all settings of a prototype are serialized to a file which serves as object cache.
 Object getSetup(<HopObject> object)
           Gets a map of key/value pairs defining the database mapping of an arbitrary HopObject instance's prototype.
 java.sql.Statement init()
           Initializes the Rabbit framework.
 Object readPropertiesFile(<String> dir, <String> name)
           Reads a Java properties file into a JavaScript map.
 void registerGlobals()
           Registers some global and HopObject-related fields and methods for convenience.
 void reset()
           Drops all previously created tables from the database and clear the object cache of the Helma application.
 void setMeta(<String> prototype, <String> property, <Object> value)
           For convenience, easier access and also better performance all settings of a prototype are serialized to a file which serves as object cache.
 void setup(<String> prototype, <Object> map)
           Defines a HopObject prototype and its database mapping.
 void update(object, data)
           Updates a HopObject instance from a map of key/value pairs derived from the corresponding Rabbit editor.
 void viewer(<HopObject> object)
           Renders a viewer for a HopObject instance.
 String writePropertiesFile(<String> dir, <String> name, <Object> data)
           Creates a Java properties file from a JavaScript map.
<static> String chooser(<String> name, <Object> options, <String> selected, buffer)
           Helper method to render an HTML drop down element.
<static> String dateEditor(<String> name, <Date> date, buffer)
           Helper method to render a combination of HTML drop down elements representing an editor for a datetime value.
<static> Object getPropertyMeta(<HopObject> object, <String> property, <String> name)
           Helper method to retrieve property meta data.
<static> HopObject property(<String> property)
           Helper method to render a property of a HopObject instance.
<static> void setPropertyMeta(<HopObject> object, <String> property, <String> name, <Object> value)
           Helper method to set property meta data.
<static> Object snippet(<String> name, <Object> param, <String> buffer)
           Renders a snippet.

Field Detail

DATE

<static> <final> Number DATE

DATEFORMAT

<static> <final> String DATEFORMAT

EMAIL

<static> <final> Number EMAIL

FILE

<static> <final> Number FILE

IMAGE

<static> <final> Number IMAGE

NUMBER

<static> <final> Number NUMBER

TEXT

<static> <final> Number TEXT

VERSION

<static> <final> Number VERSION

Constructor Detail

Rabbit

Rabbit(<Boolean> restricted)

Method Detail

editor

void editor(<HopObject> object)

getChildElement

HopObject getChildElement(<String> child)

getMeta

Object getMeta(<String> prototype, <String> property)

getSetup

Object getSetup(<HopObject> object)

init

java.sql.Statement init()

readPropertiesFile

Object readPropertiesFile(<String> dir, <String> name)

registerGlobals

void registerGlobals()

reset

void reset()

setMeta

void setMeta(<String> prototype, <String> property, <Object> value)

setup

void setup(<String> prototype, <Object> map)

update

void update(object, data)

viewer

void viewer(<HopObject> object)

writePropertiesFile

String writePropertiesFile(<String> dir, <String> name, <Object> data)

chooser

<static> String chooser(<String> name, <Object> options, <String> selected, buffer)

dateEditor

<static> String dateEditor(<String> name, <Date> date, buffer)

getPropertyMeta

<static> Object getPropertyMeta(<HopObject> object, <String> property, <String> name)

property

<static> HopObject property(<String> property)

setPropertyMeta

<static> void setPropertyMeta(<HopObject> object, <String> property, <String> name, <Object> value)

snippet

<static> Object snippet(<String> name, <Object> param, <String> buffer)

Rabbit 1.1

Documentation generated by JSDoc on Thu Feb 15 20:58:41 2007