Package com._1c.g5.lwt.controls
Class AbstractLightScrollbar
- java.lang.Object
-
- com._1c.g5.lwt.AbstractLightControl
-
- com._1c.g5.lwt.LightComposite
-
- com._1c.g5.lwt.controls.AbstractLightScrollbar
-
- All Implemented Interfaces:
ILightComposite
,ILightControl
public abstract class AbstractLightScrollbar extends LightComposite
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractLightScrollbar.Orientation
protected static class
AbstractLightScrollbar.Part
protected static class
AbstractLightScrollbar.Sizes
-
Constructor Summary
Constructors Constructor Description AbstractLightScrollbar()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addPositionListener(IChangedListener<? extends AbstractLightScrollbar,Integer> listener)
org.eclipse.swt.graphics.Point
computeSize(org.eclipse.swt.graphics.GC gc, int width, int height, boolean flushCache)
Computes the size of this control.protected abstract AbstractLightScrollbar.Sizes
computeSizes(int length, int crossSection)
int
getLargeIncrement()
int
getMaximumPosition()
int
getMinimumPosition()
AbstractLightScrollbar.Orientation
getOrientation()
int
getPosition()
int
getScrollerScaleRange()
int
getSmallIncrement()
void
layout(org.eclipse.swt.graphics.GC gc)
Layouts this composite using its layout, if any.protected abstract void
paintPart(AbstractLightScrollbar.Part part, AbstractLightScrollbar.Part.State state, org.eclipse.swt.graphics.Point size, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle)
void
removePositionListener(IChangedListener<? extends AbstractLightScrollbar,Integer> listener)
void
setLargeIncrement(int largeIncrement)
void
setMaximumPosition(int maximumPosition)
void
setMinimumPosition(int minimumPosition)
void
setOrientation(AbstractLightScrollbar.Orientation orientation)
void
setPosition(int position)
void
setScrollerScaleRange(int scrollerScaleRange)
void
setSmallIncrement(int smallIncrement)
-
Methods inherited from class com._1c.g5.lwt.LightComposite
addChild, addChild, addChildAfter, addLayerAbove, addLayerBehind, controlFromPoint, dispose, getActiveControl, getChildCount, getChildren, getLayers, getLayout, layout, paint, removeChild, removeChild, revealRectangle, setActiveControl, setBounds, setFocus, setLayout, translatePointFromControl, translatePointToControl, translateRectangleFromControl, translateRectangleToControl, traverse, traverse
-
Methods inherited from class com._1c.g5.lwt.AbstractLightControl
addControlListener, getBounds, getCursor, getData, getLayoutData, getOverlay, getParent, getTooltip, getVisibleBounds, handleEvent, invalidate, invalidate, isDisposed, isEnabled, isFocused, isVisible, removeControlListener, setCursor, setData, setEnabled, setFocusable, setLayoutData, setOverlay, setParent, setTooltip, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.lwt.ILightComposite
getMainLayer
-
Methods inherited from interface com._1c.g5.lwt.ILightControl
addControlListener, getBounds, getCursor, getData, getLayoutData, getParent, getTooltip, getVisibleBounds, handleEvent, initialize, invalidate, invalidate, isDisposed, isEnabled, isFocused, isVisible, removeControlListener, setCursor, setData, setEnabled, setLayoutData, setParent, setTooltip, setVisible
-
-
-
-
Method Detail
-
getOrientation
public AbstractLightScrollbar.Orientation getOrientation()
-
setOrientation
public void setOrientation(AbstractLightScrollbar.Orientation orientation)
-
getMinimumPosition
public int getMinimumPosition()
-
setMinimumPosition
public void setMinimumPosition(int minimumPosition)
-
getMaximumPosition
public int getMaximumPosition()
-
setMaximumPosition
public void setMaximumPosition(int maximumPosition)
-
getPosition
public int getPosition()
-
setPosition
public void setPosition(int position)
-
getSmallIncrement
public int getSmallIncrement()
-
setSmallIncrement
public void setSmallIncrement(int smallIncrement)
-
getLargeIncrement
public int getLargeIncrement()
-
setLargeIncrement
public void setLargeIncrement(int largeIncrement)
-
getScrollerScaleRange
public int getScrollerScaleRange()
-
setScrollerScaleRange
public void setScrollerScaleRange(int scrollerScaleRange)
-
addPositionListener
public void addPositionListener(IChangedListener<? extends AbstractLightScrollbar,Integer> listener)
-
removePositionListener
public void removePositionListener(IChangedListener<? extends AbstractLightScrollbar,Integer> listener)
-
computeSize
public org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.graphics.GC gc, int width, int height, boolean flushCache)
Description copied from interface:ILightControl
Computes the size of this control.- Specified by:
computeSize
in interfaceILightControl
- Overrides:
computeSize
in classLightComposite
- Parameters:
gc
- the GC to do measurements with.width
- the width hint,SWT.DEFAULT
to compute the preferred width.height
- the height hint,SWT.DEFAULT
to compute the preferred height.flushCache
- the flush cache flag, instructs the associated layout to reset all its caches, if any.- Returns:
- the computed size.
-
layout
public void layout(org.eclipse.swt.graphics.GC gc)
Description copied from interface:ILightComposite
Layouts this composite using its layout, if any.- Specified by:
layout
in interfaceILightComposite
- Overrides:
layout
in classLightComposite
- Parameters:
gc
- theGC
to do the measurements with.
-
computeSizes
protected abstract AbstractLightScrollbar.Sizes computeSizes(int length, int crossSection)
-
paintPart
protected abstract void paintPart(AbstractLightScrollbar.Part part, AbstractLightScrollbar.Part.State state, org.eclipse.swt.graphics.Point size, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle)
-
-