Class EditorTool.Editor

  • Enclosing class:
    EditorTool

    public static class EditorTool.Editor
    extends java.lang.Object
    Single editor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String field  
      java.lang.String filename  
      java.lang.String help  
      java.lang.String icon  
      java.lang.String inst  
      java.lang.String obj  
      java.lang.String rowId  
      java.lang.String scope  
      java.lang.String title  
      java.lang.String type  
    • Constructor Summary

      Constructors 
      Constructor Description
      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
      Editor​(org.json.JSONObject tab)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getKey()
      Get unique key
      boolean init​(Grant g)
      Prepare editor
      org.json.JSONObject toJSON()
      To JSON
      org.json.JSONObject toJSONPref()
      To JSON preferences
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 name
        i - Instance name
        f - Document field name
        id - Row ID
        t - 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