Class Section
java.lang.Object
com.saperion.ngc.viewer.virtualviewer.annotation.ini.Section
A Section is HashMap of a data structure we read from the ini. We have a type (HIGHLIGHT] and
Key-Value Pairs.
[HIGHLIGHT] CUSTOMPROPERTY = 1 X = 745 Y = 63 WIDTH = 203 HEIGHT = 156 PAGE = 1 EDIT = 1
FILLCOLOR = 255, 255, 0 TRANSPARENT = 1 LINEWIDTH = 0
- Author:
- jek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCustomerProperty .static Section
getSectionByType
(List<Section> sections, String type) getType()
static String
Resolve a String value from a Section with the given key.boolean
hasAcls()
boolean
boolean
isCustom()
boolean
isVisible in Virtual Viewer.renderSection .void
setKeyValuePair
(Map<String, String> aKeyValuePair) void
int
size()
-
Constructor Details
-
Section
Constructor.- Parameters:
aType
- type of sectionaKeyValuePair
- keyValuePairs of Parameter
-
-
Method Details
-
getKeyValuePair
- Returns:
- the keyValuePair
-
size
public int size()- Returns:
- size
-
setKeyValuePair
- Parameters:
aKeyValuePair
- the keyValuePair to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
aType
- the type to set
-
getSectionByType
- Parameters:
sections
- ArrayList of Sectionstype
- type- Returns:
- Section Section
-
renderSection
renderSection .- Returns:
- renderedSection renderedSection
-
getCustomerProperty
getCustomerProperty .- Returns:
- customerProperty customerProperty
-
isVisible
public boolean isVisible()isVisible in Virtual Viewer.- Returns:
- isVisible in Virtual Viewer
-
getValue
Resolve a String value from a Section with the given key.- Parameters:
section
- sectionkey
- key- Returns:
- customerProperty customerProperty
-
isCustom
public boolean isCustom()- Returns:
- whether this is the CUSTOM section
-
hasAcls
public boolean hasAcls()- Returns:
- whether the section has acls. Will only be written to the CUSTOM section
-
hasBlackMarkers
public boolean hasBlackMarkers()- Returns:
- whether the section has black markers. Will only be written to the CUSTOM section.
-