Class ObjectTemplate

  • All Implemented Interfaces:
    java.io.Serializable

    public class ObjectTemplate
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  ObjectTemplate.Node  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELT_AREA
      Area tab element
      static java.lang.String ELT_DIV
      Div tab element
      static java.lang.String ELT_PANEL
      Panel tab element
      static java.lang.String ROOT
      Template single root node
      static java.lang.String STRING
      Template unparsed elements (html block, script...)
      static java.lang.String TAG_ACTION
      Action or State transition button
      static java.lang.String TAG_ACTION_ICONS
      Icon buttons (export, copy, delete...)
      static java.lang.String TAG_AGENDA
      Agenda
      static java.lang.String TAG_APP_NAME
      Application name [APPNAME]
      static java.lang.String TAG_AREA
      Object area
      static java.lang.String TAG_CLOSE
      Close button
      static java.lang.String TAG_CLOSE_ZONE
      Close zone
      static java.lang.String TAG_CONFIRM_DELETE
      Confirm deletion button
      static java.lang.String TAG_CONTENTURL
      Content URL [CONTENTURL:name]
      static java.lang.String TAG_CSSRESOURCEURL
      CSS resource URL [CSSRESOURCEURL:name]
      static java.lang.String TAG_EXTOBJECTPUBLICURL
      External object public URL [EXTOBJECTPUBLICURL:name]
      static java.lang.String TAG_EXTOBJECTURL
      External object URL [EXTOBJECTURL:name]
      static java.lang.String TAG_FIELD_INPUT
      Field input
      static java.lang.String TAG_FIELD_LABEL
      Field label in user language
      static java.lang.String TAG_FIELD_LABELINPUT
      Field label and input in 2 TD
      static java.lang.String TAG_FIELD_VALUE
      Field value (readonly)
      static java.lang.String TAG_HOMEURL
      Home page URL [HOMEURL]
      static java.lang.String TAG_HTMLRESOURCEURL
      HTML resource URL [HTMLRESOURCEURL:name]
      static java.lang.String TAG_ICONRESOURCEURL
      Icon resource URL [ICONRESOURCEURL:name]
      static java.lang.String TAG_IMAGERESOURCEURL
      Image resource URL [IMAGERESOURCEURL:name]
      static java.lang.String TAG_JSRESOURCEURL
      Javascript resource URL [JSRESOURCEURL:name]
      static java.lang.String TAG_MAP
      Place map
      static java.lang.String TAG_MDRESOURCEURL
      Markdown resource URL [MDRESOURCEURL:name]
      static java.lang.String TAG_NAVBAR
      Record navigation bar
      static java.lang.String TAG_OBJECT_INST
      Object instance name [OBJECTINST]
      static java.lang.String TAG_OBJECT_LABEL
      Object label in user language [OBJECTLABEL]
      static java.lang.String TAG_OBJECT_NAME
      Object name [OBJECTNAME]
      static java.lang.String TAG_OPEN_ZONE
      Open zone
      static java.lang.String TAG_PANEL
      Panel of parent object
      static java.lang.String TAG_PARAM
      Object parameter [PARAM:param]
      static java.lang.String TAG_PDFRESOURCEURL
      PDF resource URL [PDFRESOURCEURL:name]
      static java.lang.String TAG_RESOURCEURL
      Resource URL [RESOURCEURL:name]
      static java.lang.String TAG_SAVE
      Save button
      static java.lang.String TAG_SAVECLOSE
      Save/close button
      static java.lang.String TAG_SYSPARAM
      System parameter [SYSPARAM:param]
      static java.lang.String TAG_TEXT
      Translated text [TEXT:code]
      static java.lang.String TAG_TIMESHEET
      Timesheet
      static java.lang.String TAG_ZONE
      Zone
    • Method Summary

      Modifier and Type Method Description
      ObjectTemplate.Node getRoot()
      Root of template
      static java.lang.String[] getTags()  
      ObjectTemplate.Node parse()
      Parse the object Template + FieldArea templates
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • TAG_OPEN_ZONE

        public static final java.lang.String TAG_OPEN_ZONE
        Open zone
        See Also:
        Constant Field Values
      • TAG_CLOSE_ZONE

        public static final java.lang.String TAG_CLOSE_ZONE
        Close zone
        See Also:
        Constant Field Values
      • TAG_APP_NAME

        public static final java.lang.String TAG_APP_NAME
        Application name [APPNAME]
        See Also:
        Constant Field Values
      • TAG_SYSPARAM

        public static final java.lang.String TAG_SYSPARAM
        System parameter [SYSPARAM:param]
        See Also:
        Constant Field Values
      • TAG_TEXT

        public static final java.lang.String TAG_TEXT
        Translated text [TEXT:code]
        See Also:
        Constant Field Values
      • TAG_OBJECT_NAME

        public static final java.lang.String TAG_OBJECT_NAME
        Object name [OBJECTNAME]
        See Also:
        Constant Field Values
      • TAG_OBJECT_INST

        public static final java.lang.String TAG_OBJECT_INST
        Object instance name [OBJECTINST]
        See Also:
        Constant Field Values
      • TAG_OBJECT_LABEL

        public static final java.lang.String TAG_OBJECT_LABEL
        Object label in user language [OBJECTLABEL]
        See Also:
        Constant Field Values
      • TAG_HOMEURL

        public static final java.lang.String TAG_HOMEURL
        Home page URL [HOMEURL]
        See Also:
        Constant Field Values
      • TAG_EXTOBJECTURL

        public static final java.lang.String TAG_EXTOBJECTURL
        External object URL [EXTOBJECTURL:name]
        See Also:
        Constant Field Values
      • TAG_EXTOBJECTPUBLICURL

        public static final java.lang.String TAG_EXTOBJECTPUBLICURL
        External object public URL [EXTOBJECTPUBLICURL:name]
        See Also:
        Constant Field Values
      • TAG_CONTENTURL

        public static final java.lang.String TAG_CONTENTURL
        Content URL [CONTENTURL:name]
        See Also:
        Constant Field Values
      • TAG_RESOURCEURL

        public static final java.lang.String TAG_RESOURCEURL
        Resource URL [RESOURCEURL:name]
        See Also:
        Constant Field Values
      • TAG_IMAGERESOURCEURL

        public static final java.lang.String TAG_IMAGERESOURCEURL
        Image resource URL [IMAGERESOURCEURL:name]
        See Also:
        Constant Field Values
      • TAG_ICONRESOURCEURL

        public static final java.lang.String TAG_ICONRESOURCEURL
        Icon resource URL [ICONRESOURCEURL:name]
        See Also:
        Constant Field Values
      • TAG_CSSRESOURCEURL

        public static final java.lang.String TAG_CSSRESOURCEURL
        CSS resource URL [CSSRESOURCEURL:name]
        See Also:
        Constant Field Values
      • TAG_JSRESOURCEURL

        public static final java.lang.String TAG_JSRESOURCEURL
        Javascript resource URL [JSRESOURCEURL:name]
        See Also:
        Constant Field Values
      • TAG_HTMLRESOURCEURL

        public static final java.lang.String TAG_HTMLRESOURCEURL
        HTML resource URL [HTMLRESOURCEURL:name]
        See Also:
        Constant Field Values
      • TAG_MDRESOURCEURL

        public static final java.lang.String TAG_MDRESOURCEURL
        Markdown resource URL [MDRESOURCEURL:name]
        See Also:
        Constant Field Values
      • TAG_PDFRESOURCEURL

        public static final java.lang.String TAG_PDFRESOURCEURL
        PDF resource URL [PDFRESOURCEURL:name]
        See Also:
        Constant Field Values
      • TAG_FIELD_LABEL

        public static final java.lang.String TAG_FIELD_LABEL
        Field label in user language
        See Also:
        Constant Field Values
      • TAG_FIELD_VALUE

        public static final java.lang.String TAG_FIELD_VALUE
        Field value (readonly)
        See Also:
        Constant Field Values
      • TAG_FIELD_INPUT

        public static final java.lang.String TAG_FIELD_INPUT
        Field input
        See Also:
        Constant Field Values
      • TAG_FIELD_LABELINPUT

        public static final java.lang.String TAG_FIELD_LABELINPUT
        Field label and input in 2 TD
        See Also:
        Constant Field Values
      • TAG_PARAM

        public static final java.lang.String TAG_PARAM
        Object parameter [PARAM:param]
        See Also:
        Constant Field Values
      • TAG_NAVBAR

        public static final java.lang.String TAG_NAVBAR
        Record navigation bar
        See Also:
        Constant Field Values
      • TAG_ACTION

        public static final java.lang.String TAG_ACTION
        Action or State transition button
        See Also:
        Constant Field Values
      • TAG_SAVECLOSE

        public static final java.lang.String TAG_SAVECLOSE
        Save/close button
        See Also:
        Constant Field Values
      • TAG_CONFIRM_DELETE

        public static final java.lang.String TAG_CONFIRM_DELETE
        Confirm deletion button
        See Also:
        Constant Field Values
      • TAG_ACTION_ICONS

        public static final java.lang.String TAG_ACTION_ICONS
        Icon buttons (export, copy, delete...)
        See Also:
        Constant Field Values
      • TAG_PANEL

        public static final java.lang.String TAG_PANEL
        Panel of parent object
        See Also:
        Constant Field Values
      • TAG_TIMESHEET

        public static final java.lang.String TAG_TIMESHEET
        Timesheet
        See Also:
        Constant Field Values
      • ROOT

        public static final java.lang.String ROOT
        Template single root node
        See Also:
        Constant Field Values
      • STRING

        public static final java.lang.String STRING
        Template unparsed elements (html block, script...)
        See Also:
        Constant Field Values
      • ELT_AREA

        public static final java.lang.String ELT_AREA
        Area tab element
        See Also:
        Constant Field Values
      • ELT_PANEL

        public static final java.lang.String ELT_PANEL
        Panel tab element
        See Also:
        Constant Field Values
    • Constructor Detail

      • ObjectTemplate

        public ObjectTemplate​(ObjectDB object)
    • Method Detail

      • getTags

        public static java.lang.String[] getTags()
      • parse

        public ObjectTemplate.Node parse()
        Parse the object Template + FieldArea templates
        Returns:
        The root node
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object