java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic JMakiWidgetDoc (9 - 05 Jun 2008 - Main.carlavmott)
Line: 1 to 1
 
META TOPICPARENT name="JMaki"
-- Main.carlavmott - 25 Jan 2008
Line: 69 to 69
 Using JSON schema to describe widget.json
{
Changed:
<
<
"description" : "jMaki Widget Tooling Schema",
>
>
"description" : "jMaki Widget.json",
  "type":"object", "properties": { "name" : {"type" : "string"},
"type"
{"type" : "string"},
Changed:
<
<
"version"
{"type" : "number"},
"jmakiVersion"
{"type" : "number"},
>
>
"version"
{"type" : "string"},
"jmakiVersion"
{"type" : "string"},
 
"image"
{"type" : "string"},
"description"
{"type" : "string"},
"docs"
{"type": "array",
Line: 85 to 85
  "jsDoc":{"type":"string", "optional" : true}, "usageDoc":{"type":"string"} }
Changed:
<
<
"args"
{"type": "array", "items":"object" },
"value"
{"type": "object",
>
>
},
"args"
{"type": "array", "optional":true },
"value"
{"type": "object", "optional":true,
  "properties": { "type":{"type":"string"}, "required":{"type":"boolean"},
Line: 98 to 99
 
"type"
{"type": "object", "properties": { "id": {"type": "string"},
Changed:
<
<
"lib": {"type":"array"}, "style":{"type":'array"},
>
>
"lib": {"type":"array", "optional":true}, "style":{"type":"array", "optional":true},
  "resources":{"type":"array"} } }
Added:
>
>
}
  },
Changed:
<
<
topicInfo"
{
>
>
"topicInfo"
{
  "defaultPublish" : {"type": "string"},
"defaultSubscribe"
{ "type": ["string" | "array"]},
"commands"
{"type": "object",
Line: 115 to 117
  "payload": {"type": "object", "properties": {
"targetId"
{"type": "string" },
Changed:
<
<
"value" : {"type" : "object", optional} }
>
>
"value" : {"type" : "object"}
  } }, "description": {"type":"string"},

 <<O>>  Difference Topic JMakiWidgetDoc (8 - 05 Jun 2008 - Main.carlavmott)
Line: 1 to 1
 
META TOPICPARENT name="JMaki"
-- Main.carlavmott - 25 Jan 2008
Line: 68 to 68
  Using JSON schema to describe widget.json
Added:
>
>
{ "description" : "jMaki Widget Tooling Schema", "type":"object", "properties": {
 "name" : {"type" : "string"}, "type": {"type" : "string"}, "version": {"type" : "number"}, "jmakiVersion": {"type" : "number"}, "image": {"type" : "string"}, "description": {"type" : "string"},
Changed:
<
<
"docs": {"type": {[
>
>
"docs"
{"type": "array",
"items"
"object",
"properites"
{
  "modelURL" : {"type":"string"},
Changed:
<
<
"jsDoc":{"type":"string"}, "usageDoc":{"type":"string"}], "args": {"type": "array", },
>
>
"jsDoc":{"type":"string", "optional" : true}, "usageDoc":{"type":"string"} }
"args"
{"type": "array", "items":"object" },
 "value": {"type": "object",
"properties"
{ "type":{"type":"string"},
Line: 97 to 104
  } } },
Added:
>
>
topicInfo"
{ "defaultPublish" : {"type": "string"},
"defaultSubscribe"
{ "type": ["string" | "array"]},
"commands"
{"type": "object",
"properties"
{
"name"
{"type": "string" } } }, "payload": {"type": "object", "properties": {
"targetId"
{"type": "string" }, "value" : {"type" : "object", optional} } } }, "description": {"type":"string"}, "events" : {"type": "string" } } }
}
 
Deleted:
<
<
Using JSON schema to describe the pub/sub related properites:
 
Added:
>
>
The specific JSON schema for the topicInfo sections is
 
Changed:
<
<
"topicInfo": {
>
>
topicInfo": {
  "defaultPublish" : {"type": "string"},
"defaultSubscribe"
{ "type": ["string" | "array"]},
"commands"
{"type": "object",
Line: 117 to 144
  {"value": "removeChildren"} ] }
Added:
>
>
}
  }, "payload": {"type": "object", "properties": {
Line: 135 to 163
  } } }
Added:
>
>
}
 

 <<O>>  Difference Topic JMakiWidgetDoc (7 - 01 Mar 2008 - Main.carlavmott)
Line: 1 to 1
 
META TOPICPARENT name="JMaki"
-- Main.carlavmott - 25 Jan 2008
Line: 66 to 66
  } }
Changed:
<
<
>
>
Using JSON schema to describe widget.json
"name" : {"type" : "string"},
"type": {"type" : "string"},
"version": {"type" : "number"},
"jmakiVersion": {"type" : "number"},
"image": {"type" : "string"},
"description": {"type" : "string"},
"docs": {"type": {[ 
    "modelURL" : {"type":"string"},
    "jsDoc":{"type":"string"},
    "usageDoc":{"type":"string"}], 
"args": {"type": "array", },
"value": {"type": "object", 
      "properties": {
            "type":{"type":"string"},
            "required":{"type":"boolean"},
            "defaultValue":{"type":"object"}
      }
},
"config":{"type": "object", 
      "properties": {
                  "type": {"type": "object", 
                   "properties": {
                         "id": {"type": "string"}, 
                         "lib": {"type":"array"},
                         "style":{"type":'array"},
                         "resources":{"type":"array"}
                   }
        }
},
 Using JSON schema to describe the pub/sub related properites:

"topicInfo":  {
   "defaultPublish" : {"type": "string"},
Changed:
<
<
"defaultSubscribe"
{ "type": "string" | "type" : "array"},
>
>
"defaultSubscribe"
{ "type": ["string" | "array"]},
 
"commands"
{"type": "object",
"properties"
{
"name"
{"type": "string",

 <<O>>  Difference Topic JMakiWidgetDoc (6 - 22 Feb 2008 - Main.carlavmott)
Line: 1 to 1
 
META TOPICPARENT name="JMaki"
-- Main.carlavmott - 25 Jan 2008
Line: 80 to 80
  {"value": "expandNode"}, {"value": "collapseNode"}, {"value": "removeNode"},
Added:
>
>
{"value": "expandAll"}, {"value": "collapseAll"}, {"value": "addNodes"},
  {"value": "removeChildren"} ] } }, "payload": {"type": "object", "properties": {
Changed:
<
<
"targetId": {"type": "string" | "type" : "object"}
>
>
"targetId": {"type": "string" }, "value" : {"type" : "object", optional} }
  } }, "description": {"type":"string"},

 <<O>>  Difference Topic JMakiWidgetDoc (5 - 21 Feb 2008 - Main.carlavmott)
Line: 1 to 1
 
META TOPICPARENT name="JMaki"
-- Main.carlavmott - 25 Jan 2008
Line: 78 to 78
 
"name"
{"type": "string",
"options"
[ {"value": "expandNode"},
Changed:
<
<
{value": "collapseNode"}, {value": "removeNode"}, {value": "removeChildren"}
>
>
{"value": "collapseNode"}, {"value": "removeNode"}, {"value": "removeChildren"}
  ] } },
Line: 89 to 89
  "targetId": {"type": "string" | "type" : "object"} } },
Changed:
<
<
"description"
{"type":"string"}
>
>
"description": {"type":"string"}, "events" : {"type": "string", "options" : [
{"value"
"onClick"}, {"value": "onCollapse"}, {"value": "onExpand"} ] } }
 } \ No newline at end of file

 <<O>>  Difference Topic JMakiWidgetDoc (4 - 21 Feb 2008 - Main.carlavmott)
Line: 1 to 1
 
META TOPICPARENT name="JMaki"
Deleted:
<
<
 -- Main.carlavmott - 25 Jan 2008

This page describes the format of the widget.json file that is provided with the wrapped widgets. This file is read by tools such as NetBeans IDE and the widget documentation generator in the widget project (widgets.dev.java.net). Below is a sample of a widget.json file.

Line: 78 to 77
 
"properties"
{
"name"
{"type": "string",
"options"
[
Changed:
<
<
{"value": "expand"}, {value": "collapse:}, {value": "select"}, {value": "addNodes"}
>
>
{"value": "expandNode"}, {value": "collapseNode"}, {value": "removeNode"}, {value": "removeChildren"}
  ] } },

 <<O>>  Difference Topic JMakiWidgetDoc (3 - 21 Feb 2008 - Main.carlavmott)
Line: 1 to 1
 
META TOPICPARENT name="JMaki"
Deleted:
<
<
 -- Main.carlavmott - 25 Jan 2008

This page describes the format of the widget.json file that is provided with the wrapped widgets. This file is read by tools such as NetBeans IDE and the widget documentation generator in the widget project (widgets.dev.java.net). Below is a sample of a widget.json file.

Line: 68 to 67
  } }
Added:
>
>
Using JSON schema to describe the pub/sub related properites:

"topicInfo":  {
   "defaultPublish" : {"type": "string"},
   "defaultSubscribe": { "type": "string" | "type" : "array"},
   "commands":  {"type": "object", 
            "properties": {
                  "name": {"type": "string", 
                        "options":  [
                                {"value": "expand"},
                                {value":  "collapse:},
                                {value":  "select"},
                                {value":  "addNodes"}
                         ]
                   }
       },
       "payload": {"type": "object",
                          "properties": {
                               "targetId": {"type": "string" | "type" : "object"}
                          }
        },
         "description": {"type":"string"}
}
 \ No newline at end of file

 <<O>>  Difference Topic JMakiWidgetDoc (2 - 25 Jan 2008 - Main.carlavmott)
Line: 1 to 1
 
META TOPICPARENT name="JMaki"
Line: 2 to 2
 
META TOPICPARENT name="JMaki"
Deleted:
<
<
 -- Main.carlavmott - 25 Jan 2008
Changed:
<
<
>
>
This page describes the format of the widget.json file that is provided with the wrapped widgets. This file is read by tools such as NetBeans IDE and the widget documentation generator in the widget project (widgets.dev.java.net). Below is a sample of a widget.json file.
 { 'name': 'Tree', 'type': 'yahoo',
Line: 18 to 16
 configured.', 'docs' : [ 'modelURL' : 'http://wiki.java.net/bin/view/Projects/jMakiTreeModel',
Changed:
<
<
'jsDoc' : 'http://jmaki.dev.java.net/jsdoc/yahoo_button',
>
>
'jsDoc' : 'http://jmaki.dev.java.net/jsdoc/yahoo_tree
  'usageDoc' : 'docs/index.html' ], 'args': [
Line: 69 to 67
  ] } } \ No newline at end of file
Added:
>
>

 <<O>>  Difference Topic JMakiWidgetDoc (1 - 25 Jan 2008 - Main.carlavmott)
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="JMaki"

-- Main.carlavmott - 25 Jan 2008

{ 'name': 'Tree', 'type': 'yahoo', 'version': '1.0', 'jmakiVersion': '1.0', 'image': 'images/yahoo-tree.jpg', 'description': 'This widget is a dynamic tree that can easily be configured.', 'docs' : [ 'modelURL' : 'http://wiki.java.net/bin/view/Projects/jMakiTreeModel', 'jsDoc' : 'http://jmaki.dev.java.net/jsdoc/yahoo_button', 'usageDoc' : 'docs/index.html' ], 'args': [ ], 'value': {'required':'true', 'type': 'OBJECT', 'defaultValue':{

'root':{id
'bar', 'title': 'Default Yahoo Tree Root Node',
'expanded'
true,
'children'
[ {'title':'Yahoo Node 1.1', 'onclick': {'url':'foo'}}, {'title':'Yahoo Node 1.2', 'children': [{'title':'Node 3.1'}]} ] } } }, 'config' : { 'type' : { 'id' : 'yahoo.tree', 'libs' : [ '../resources/libs/yahoo/v2.4.1/yahoo/yahoo-min.js', '../resources/libs/yahoo/v2.4.1/event/event-min.js', '../resources/libs/yahoo/v2.4.1/treeview/treeview-min.js' ], 'styles' : [

'../resources/libs/yahoo/v2.4.1/treeview/assets/skins/sam/treeview.css' ], 'resources' : [ '../resources/libs/yahoo/v2.4.1/treeview/assets' ] } }, 'topicInfo': { 'defaultPublish' : '/jmaki/yahoo/tree', 'defaultSubscribe' : ['/jmaki/yahoo/tree', '/tree'], 'commands' : [ {'name' : 'expand', 'payload' : '{'targetId' : 'bar'}', 'description' : 'expand the node whose id is the same as targetId property'}, { 'name' : 'collapse', 'description' : 'collapse tree whose id is the same as targetId property'}, { 'name' : 'select', 'description' : 'select the node whose id is the same as targetId property'}, ], 'events' : [ {'name' : 'onClick', 'description' : 'publish the value of the selected node'} ] } }


Topic JMakiWidgetDoc . { View | Diffs r9 < r8 < r7 < r6 | More }
 XML java.net RSS