public class SWTMultipleAlignmentsContainer extends AbstractSWTComposite implements ToolkitSpecificMultipleAlignmentsContainer
AlignmentArea
.Modifier and Type | Field and Description |
---|---|
static int |
NEEDED_BORDER_WIDTH |
Constructor and Description |
---|
SWTMultipleAlignmentsContainer(MultipleAlignmentsContainer independentComponent,
org.eclipse.swt.widgets.Composite parent,
int style,
boolean useSubcomponents) |
Modifier and Type | Method and Description |
---|---|
void |
adoptChildAreas()
This method is used internally by
MultipleAlignmentsContainer if the order or set of contained
alignment areas changes and these changes shall be reflected by the underlying GUI component. |
int |
getAvailableHeight()
Returns the height that is currently available to be distributed among all contained alignment areas.
|
AlignmentArea |
getFocusedAlignmentArea()
Returns the alignment area contained in this component, that currently has the focus.
|
MultipleAlignmentsContainer |
getIndependentComponent() |
int |
getNeededHeight(int alignmentIndex)
Return the height needed for the specified alignment to be displayed without scroll bars.
|
org.eclipse.swt.custom.SashForm |
getSashForm() |
void |
repaint() |
void |
setDividerLocations(int[] heights)
Sets the divider locations to distribute the available height among the contained alignment areas.
|
void |
setLayout(org.eclipse.swt.widgets.Layout layout)
Does nothing since this component only uses its own layout.
|
getSWTComponent
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
assignSize, getLocationInParent, getTargetToolkit, getToolkitSize, isFocusOwner, requestFocus
assignSize, getLocationInParent, getTargetToolkit, getToolkitSize, isFocusOwner, requestFocus
public static final int NEEDED_BORDER_WIDTH
public SWTMultipleAlignmentsContainer(MultipleAlignmentsContainer independentComponent, org.eclipse.swt.widgets.Composite parent, int style, boolean useSubcomponents)
public void adoptChildAreas()
ToolkitSpecificMultipleAlignmentsContainer
MultipleAlignmentsContainer
if the order or set of contained
alignment areas changes and these changes shall be reflected by the underlying GUI component.adoptChildAreas
in interface ToolkitSpecificMultipleAlignmentsContainer
public MultipleAlignmentsContainer getIndependentComponent()
getIndependentComponent
in interface ToolkitComponent
getIndependentComponent
in class AbstractSWTComposite
public void repaint()
repaint
in interface SWTToolkitComponent
repaint
in interface ToolkitComponent
public int getAvailableHeight()
ToolkitSpecificMultipleAlignmentsContainer
getAvailableHeight
in interface ToolkitSpecificMultipleAlignmentsContainer
public int getNeededHeight(int alignmentIndex)
ToolkitSpecificMultipleAlignmentsContainer
getNeededHeight
in interface ToolkitSpecificMultipleAlignmentsContainer
alignmentIndex
- the current index of the alignment in the containerpublic void setDividerLocations(int[] heights)
ToolkitSpecificMultipleAlignmentsContainer
setDividerLocations
in interface ToolkitSpecificMultipleAlignmentsContainer
heights
- an array containing the heights for all alignment areaspublic AlignmentArea getFocusedAlignmentArea()
ToolkitSpecificMultipleAlignmentsContainer
Note that application developers should use MultipleAlignmentsContainer.getFocusedAlignmentArea()
instead of calling this method directly, because that method also checks, if a toolkit-specific component
has already been created.
getFocusedAlignmentArea
in interface ToolkitSpecificMultipleAlignmentsContainer
null
of the focus is not inside this containerMultipleAlignmentsContainer.getFocusedAlignmentArea()
public void setLayout(org.eclipse.swt.widgets.Layout layout)
setLayout
in class org.eclipse.swt.widgets.Composite
public org.eclipse.swt.custom.SashForm getSashForm()