public interface IlvVerticalScrollable
The IlvVerticalScrollable interface defines the behavior of a
UI component that can be scrolled vertically. There are three interrelated
integer properties: maxVerticalPosition, verticalPosition, and
verticalExtent.
These three values define two nested ranges like this:
0 <= verticalPosition <= verticalPosition+verticalExtent <= maxVerticalPosition
The scrollable enforces this relationship by correcting or trimming properties according to the following rules:
setMaxVerticalPosition(int) method first validates
that:
0 <= maxVisibleTime
If not, an IllegalArgumentException is thrown. Next, the
vertical position and extent properties may be trimmed (in that order),
to fit within the new 0-max range.
setVerticalPosition(int) and
setVerticalExtent(int) methods trim their argument to fit within
the limits defined by the other two properties.
| Modifier and Type | Method and Description |
|---|---|
void |
addVerticalScrollListener(VerticalScrollListener listener)
Adds the specified listener to receive vertical scroll events from this
scrollable.
|
int |
getMaxVerticalPosition()
Returns the maximum vertical position that the scrollable can display.
|
int |
getVerticalExtent()
Returns the extent of the vertical range displayed by the scrollable.
|
int |
getVerticalPosition()
Returns the beginning of the vertical range displayed by the scrollable.
|
void |
removeVerticalScrollListener(VerticalScrollListener listener)
Removes the specified listener so that it will no longer receive vertical
scroll events from this scrollable.
|
void |
setMaxVerticalPosition(int max)
Sets the maximum vertical position that the scrollable can display.
|
void |
setVerticalExtent(int extent)
Sets the extent of the vertical range displayed by the scrollable.
|
void |
setVerticalPosition(int position)
Sets the beginning of the vertical range displayed by the scrollable.
|
int getMaxVerticalPosition()
setMaxVerticalPosition(int)void setMaxVerticalPosition(int max)
position and
extent are trimmed to fit the new 0-max range.
A maxVerticalPositionChanged event is then fired to all
registered listeners.
If max < 0 an IllegalArgumentException will
be thrown.max - The maximum position.getMaxVerticalPosition()int getVerticalPosition()
setVerticalPosition(int)void setVerticalPosition(int position)
max
displayable value and is trimmed if necessary. A
verticalPositionChanged event is then fired to all
registered listeners.position - The new position.getVerticalPosition()int getVerticalExtent()
setVerticalExtent(int)void setVerticalExtent(int extent)
max
displayable value and is trimmed if necessary. A
verticalExtentChanged
event is then fired to all registered
listeners.extent - The new extent.getVerticalExtent()void addVerticalScrollListener(VerticalScrollListener listener)
listener - The listener that will be subscribed to subsequent
scroll events.removeVerticalScrollListener(ilog.views.gantt.event.VerticalScrollListener)void removeVerticalScrollListener(VerticalScrollListener listener)
listener - The listener that will be unsubscribed from receiving
vertical scroll events.addVerticalScrollListener(ilog.views.gantt.event.VerticalScrollListener)© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.