java.lang.Object
ro.sync.ecss.extensions.commons.table.properties.TabInfo

@API(type=INTERNAL, src=PUBLIC) public class TabInfo extends Object
Information associated with a tab from the 'Table Properties' dialog.
  • Constructor Details

    • TabInfo

      public TabInfo(String key, List<TableProperty> properties, List<AuthorElement> nodes)
      Constructor.
      Parameters:
      key - The tab key name. If no translation for the tab, then it represents the name of the tab.
      properties - The list with the properties which will be presented in the current tab.
      nodes - The nodes whose properties will be edited.
    • TabInfo

      public TabInfo(String key, List<TableProperty> properties, List<AuthorElement> nodes, List<AuthorDocumentFragment> fragmentsToInsert, Position[] offsets)
      Constructor.
      Parameters:
      key - The tab key name. If no translation for the tab, then it represents the name of the tab.
      properties - The list with the properties which will be presented in the current tab.
      nodes - The nodes whose properties will be edited.
      fragmentsToInsert - The list of AuthorDocumentFragments to be inserted.
      offsets - The offsets where the new fragments will be inserted.
    • TabInfo

      public TabInfo(String key, List<TableProperty> properties, List<AuthorElement> nodes, List<AuthorDocumentFragment> fragmentsToInsert, Position[] offsets, String contextInfo)
      Constructor.
      Parameters:
      key - The tab key name. If no translation for the tab, then it represents the name of the tab.
      properties - The list with the properties which will be presented in the current tab.
      nodes - The nodes whose properties will be edited.
      fragmentsToInsert - The fragments to be inserted.
      offsets - The offsets where the new fragments will be inserted.
      contextInfo - The context information of the current tab. If no context information, then it will be null.
  • Method Details

    • getTabKey

      public String getTabKey()
      Return the tab key name. If no translation for the tab, then it represents the name of the tab.
      Returns:
      Returns the tab key.
    • setTabKey

      public void setTabKey(String tabKey)
      Set the tab key name. If no translation for the tab, then it represents the name of the tab.
      Parameters:
      tabKey - The new tab Key.
    • getProperties

      public List<TableProperty> getProperties()
      Obtain the list with the properties which will be presented in the current tab.
      Returns:
      Returns the the list with the properties which will be presented in the current tab.
    • setProperties

      public void setProperties(List<TableProperty> properties)
      Set the list with the properties which will be presented in the current tab.
      Parameters:
      properties - The new properties to set.
    • getNodes

      public List<AuthorElement> getNodes()
      The nodes whose properties will be edited.
      Returns:
      Returns the nodes whose properties will be edited..
    • setNodes

      public void setNodes(List<AuthorElement> nodes)
      Set the nodes whose properties will be edited.
      Parameters:
      nodes - The new list of nodes to set.
    • getFragmentsToInsert

      public List<AuthorDocumentFragment> getFragmentsToInsert()
      Get the fragments which will be inserted in the document.
      Returns:
      Returns the fragments which will be inserted in the document.
    • setFragmentsToInsert

      public void setFragmentsToInsert(List<AuthorDocumentFragment> fragmentsToInsert)
      Set the fragments which will be inserted in the document.
      Parameters:
      fragmentsToInsert - The fragments which will be inserted in the document.
    • getInsertOffsets

      public Position[] getInsertOffsets()
      Get the position where the fragments will be inserted.
      Returns:
      Returns the position where the fragments will be inserted.
    • setInsertOffsets

      public void setInsertOffsets(Position[] positions)
      Sets the position where the fragments will be inserted.
      Parameters:
      positions - The position where the fragments will be inserted.
    • getContextInfo

      public String getContextInfo()
      Obtain the context information of the current tab.
      Returns:
      Returns the context information.
    • setContextInfo

      public void setContextInfo(String contextInfo)
      Set the context information.
      Parameters:
      contextInfo - The context information to set.