Package com.pnfsoftware.jeb.client.api
Class UnitFragmentPosition
java.lang.Object
com.pnfsoftware.jeb.client.api.UnitFragmentPosition
Position in a unit fragment.
-
Constructor Summary
ConstructorsConstructorDescriptionUnitFragmentPosition(IUnit unit, IUnitFragment fragment, IGenericDocument doc, String address, IItem item) Create a position descriptor. -
Method Summary
Modifier and TypeMethodDescriptionGet the active address in the unit fragment.getDoc()Get the document rendered by the fragment.Get the UI fragment associated with this position.getItem()Get the active item in the unit fragment.getUnit()Get the unit associated with this position.toString()
-
Constructor Details
-
UnitFragmentPosition
public UnitFragmentPosition(IUnit unit, IUnitFragment fragment, IGenericDocument doc, String address, IItem item) Create a position descriptor.- Parameters:
unit- unit associated with the positionfragment- fragment associated with the positiondoc- optional document rendered by the fragmentaddress- optional active unit addressitem- optional active item
-
-
Method Details
-
getUnit
Get the unit associated with this position.- Returns:
- non-null unit
-
getFragment
Get the UI fragment associated with this position.- Returns:
- non-null UI fragment
-
getDoc
Get the document rendered by the fragment.- Returns:
- optional document (some fragments render unit information directly, without making use of documents)
-
getAddress
Get the active address in the unit fragment.- Returns:
- optional active address in the unit fragment (in which case the unit likely inherits
IAddressableUnit)
-
getItem
Get the active item in the unit fragment.- Returns:
- optional active item in the unit fragment (in which case the unit likely inherits
IAddressableUnit)
-
toString
-