Class LayoutLockedFieldPanelCoordinator
java.lang.Object
docking.widgets.fieldpanel.internal.FieldPanelCoordinator
docking.widgets.fieldpanel.internal.LineLockedFieldPanelCoordinator
docking.widgets.fieldpanel.internal.LayoutLockedFieldPanelCoordinator
- All Implemented Interfaces:
ViewListener
A LayoutLockedFieldPanelCoordinator is an extension of a LineLockedFieldPanelCoordinator that
handles the fact that field panel layouts vary in size. It coordinates the scrolling of a set
of field panels by sharing bound scroll models that are locked together by a set of index
numbers for the FieldPanel Layouts. All the field panels are locked together at the index
numbers specified in the locked line array.
In other words this coordinator tries to keep the layout indicated by the line (or index)
for each field panel side by side with the indicated layout for each other field panel.
Note: The layouts that are locked together will be positioned so that the bottom of those layouts line up within the field panels.
Note: The layouts that are locked together will be positioned so that the bottom of those layouts line up within the field panels.
-
Field Summary
Fields inherited from class docking.widgets.fieldpanel.internal.LineLockedFieldPanelCoordinator
lockedLineNumbers
-
Constructor Summary
ConstructorDescriptionLayoutLockedFieldPanelCoordinator
(FieldPanel... panels) Constructor for the coordinator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
viewChanged
(FieldPanel fp, BigInteger index, int xPos, int yPos) Notifies the listener that the top of the screen has changed position.Methods inherited from class docking.widgets.fieldpanel.internal.LineLockedFieldPanelCoordinator
add, getLockedLineForPanel, lockLines, remove, resetLockedLines
Methods inherited from class docking.widgets.fieldpanel.internal.FieldPanelCoordinator
dispose
-
Constructor Details
-
LayoutLockedFieldPanelCoordinator
Constructor for the coordinator.- Parameters:
panels
- the field panels that will have their positions coordinated with each other.
-
-
Method Details
-
viewChanged
Description copied from interface:ViewListener
Notifies the listener that the top of the screen has changed position.- Specified by:
viewChanged
in interfaceViewListener
- Overrides:
viewChanged
in classLineLockedFieldPanelCoordinator
- Parameters:
fp
- the field panel whose view changed.index
- the index of the layout at the top of the screen.xPos
- the x coordinate of the layout displayed at the left of the screen.yPos
- the y coordinate of the layout displayed at the top of the screen.
-