Class TabInfo
java.lang.Object
ro.sync.ecss.extensions.commons.table.properties.TabInfo
Information associated with a tab from the 'Table Properties' dialog.
-
Constructor Summary
ConstructorsConstructorDescriptionTabInfo
(String key, List<TableProperty> properties, List<AuthorElement> nodes) Constructor.TabInfo
(String key, List<TableProperty> properties, List<AuthorElement> nodes, List<AuthorDocumentFragment> fragmentsToInsert, Position[] offsets) Constructor.TabInfo
(String key, List<TableProperty> properties, List<AuthorElement> nodes, List<AuthorDocumentFragment> fragmentsToInsert, Position[] offsets, String contextInfo) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionObtain the context information of the current tab.Get the fragments which will be inserted in the document.Position[]
Get the position where the fragments will be inserted.getNodes()
The nodes whose properties will be edited.Obtain the list with the properties which will be presented in the current tab.Return the tab key name.void
setContextInfo
(String contextInfo) Set the context information.void
setFragmentsToInsert
(List<AuthorDocumentFragment> fragmentsToInsert) Set the fragments which will be inserted in the document.void
setInsertOffsets
(Position[] positions) Sets the position where the fragments will be inserted.void
setNodes
(List<AuthorElement> nodes) Set the nodes whose properties will be edited.void
setProperties
(List<TableProperty> properties) Set the list with the properties which will be presented in the current tab.void
Set the tab key name.
-
Constructor Details
-
TabInfo
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 ofAuthorDocumentFragment
s 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 benull
.
-
-
Method Details
-
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
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
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
Set the list with the properties which will be presented in the current tab.- Parameters:
properties
- The new properties to set.
-
getNodes
The nodes whose properties will be edited.- Returns:
- Returns the nodes whose properties will be edited..
-
setNodes
Set the nodes whose properties will be edited.- Parameters:
nodes
- The new list of nodes to set.
-
getFragmentsToInsert
Get the fragments which will be inserted in the document.- Returns:
- Returns the fragments which will be inserted in the document.
-
setFragmentsToInsert
Set the fragments which will be inserted in the document.- Parameters:
fragmentsToInsert
- The fragments which will be inserted in the document.
-
getInsertOffsets
Get the position where the fragments will be inserted.- Returns:
- Returns the position where the fragments will be inserted.
-
setInsertOffsets
Sets the position where the fragments will be inserted.- Parameters:
positions
- The position where the fragments will be inserted.
-
getContextInfo
Obtain the context information of the current tab.- Returns:
- Returns the context information.
-
setContextInfo
Set the context information.- Parameters:
contextInfo
- The context information to set.
-