Package com.simplicite.util.tools
Class EditorTool.Editor
- java.lang.Object
-
- com.simplicite.util.tools.EditorTool.Editor
-
- Enclosing class:
- EditorTool
public static class EditorTool.Editor extends java.lang.Object
Single editor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getKey()
Get unique keyboolean
init(Grant g)
Prepare editororg.json.JSONObject
toJSON()
To JSONorg.json.JSONObject
toJSONPref()
To JSON preferences
-
-
-
Field Detail
-
obj
public java.lang.String obj
-
inst
public java.lang.String inst
-
field
public java.lang.String field
-
rowId
public java.lang.String rowId
-
type
public java.lang.String type
-
scope
public java.lang.String scope
-
title
public java.lang.String title
-
filename
public java.lang.String filename
-
help
public java.lang.String help
-
icon
public java.lang.String icon
-
-
Constructor Detail
-
Editor
public Editor(java.lang.String o, java.lang.String i, java.lang.String f, java.lang.String id, java.lang.String t, java.lang.String s)
Constructor- Parameters:
o
- Object namei
- Instance namef
- Document field nameid
- Row IDt
- Content type (css, js...)s
- Ace editor scope (global, extobject...)
-
Editor
public Editor(org.json.JSONObject tab)
Constructor- Parameters:
tab
- Tab definition
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Get unique key- Returns:
- Unique key
-
init
public boolean init(Grant g)
Prepare editor- Parameters:
g
- Grant- Returns:
- true if granted
-
toJSONPref
public org.json.JSONObject toJSONPref()
To JSON preferences- Returns:
- JSON prefrences
-
toJSON
public org.json.JSONObject toJSON()
To JSON- Returns:
- JSON
-
-