com.tssap.util.ui.pane
Interface ISashPane

All Superinterfaces:
IBasicPane, ICompoundPane, ITitledPane

public interface ISashPane
extends ICompoundPane

Extends compound pane to give the ability to divide sub components by sashes.


Method Summary
 boolean isVertical()
          Returns information, if it is a vertical or horizontal sash.
 void setWeights(int[] weights)
          Assings a weight to each subcomponent.
 
Methods inherited from interface com.tssap.util.ui.pane.ICompoundPane
addCheckBox, addCheckBox, addCheckboxTableViewer, addCheckboxTreeViewer, addComboBox, addComboBox, addComboBox, addComboBox, addComboBox, addGridLayoutPane, addGridLayoutPane, addGridLayoutPane, addGridLayoutPane, addHorizontalRadioButtonGroup, addHorizontalRadioButtonGroup, addHorizontalRadioButtonGroup, addHorizontalSashPane, addHorizontalToolBar, addImage, addImage, addList, addList, addListViewer, addPlaceholder, addPushButton, addPushButton, addPushButton, addPushButton, addRadioButton, addRadioButton, addRadioButton, addRadioButton, addSapTableViewer, addSapTableViewer, addSapTreeViewer, addSapTreeViewer, addSimplePane, addSimplePane, addTabbedPane, addTableTreeViewer, addTableViewer, addTableViewer, addTableViewer, addTableViewer, addTextField, addTextField, addTextField, addTextLabel, addTextPane, addTextPane, addTextPane, addTextViewer, addTextViewer, addTextViewer, addToggleButton, addToggleButton, addToggleButton, addToggleButton, addTreeViewer, addVerticalRadioButtonGroup, addVerticalRadioButtonGroup, addVerticalRadioButtonGroup, addVerticalSashPane, addVerticalToolBar
 
Methods inherited from interface com.tssap.util.ui.pane.ITitledPane
getTitle, setTitle
 
Methods inherited from interface com.tssap.util.ui.pane.IBasicPane
addDisposeListener, getComposite, getParent, getWidgetFactory, isPaneModifiable, setLayoutData
 

Method Detail

isVertical

public boolean isVertical()
Returns information, if it is a vertical or horizontal sash.
Returns:
true if vertical, false otherwise

setWeights

public void setWeights(int[] weights)
Assings a weight to each subcomponent.

Parameters:
weights - array of weights containing a value for each subcomponent

If size of the array does not match the number of components a SWT.ERROR_INVALID_ARGUMENT will be thrown.

The relative weight of a component is computed as follows:

  • compute the total weight by summing up all weights
  • divide specific weight of the component by the total weight.


Copyright © 2005 SAP AG. All Rights Reserved.