|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.egf.common.ui.viewers.AbstractViewerWithButtons
org.eclipse.egf.common.ui.viewers.OrderedListViewer
public class OrderedListViewer
A concrete viewer based on an SWT List control with 2 buttons on the right side to move up (or down) elements in the list.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.egf.common.ui.viewers.AbstractViewerWithButtons |
|---|
AbstractViewerWithButtons.ButtonData |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.egf.common.ui.viewers.AbstractViewerWithButtons |
|---|
_buttonData, _decoratedViewer |
| Constructor Summary | |
|---|---|
OrderedListViewer(Composite parent_p)
Constructor. |
|
| Method Summary | |
|---|---|
protected AbstractViewerWithButtons.ButtonData[] |
createButtonData()
Create button data, that is an array of AbstractViewerWithButtons.ButtonData, descriptors for buttons to create. |
protected List<AbstractViewerWithButtons.ButtonData> |
createExtraButtonData()
Create extra button data, if needed, before up and down are added. |
protected StructuredViewer |
createViewer(Composite composite_p)
Default viewer is TableViewer with one column (to support labels and icons). |
protected void |
delegateButtonClicked(Button clickedButton_p,
Object data_p)
Delegate button clicked event, if default listener implementation ain't enough. |
protected int |
getElementCount()
Return the number of element contained in the viewer. |
protected int |
getSelectionIndex()
Returns the zero-relative index of the element which is currently selected in the viewer. |
protected Control |
getUnderlyingViewerControl()
Return the underlying control used by the current viewer. |
| Methods inherited from class org.eclipse.egf.common.ui.viewers.AbstractViewerWithButtons |
|---|
buttonSelected, createButton, createEmptySpace, getDecoratedViewer, init, isEditable, setButtonClickedListener, updateButtons |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderedListViewer(Composite parent_p)
parent_p - | Method Detail |
|---|
protected void delegateButtonClicked(Button clickedButton_p,
Object data_p)
clickedButton_p - data_p - protected int getSelectionIndex()
protected int getElementCount()
protected Control getUnderlyingViewerControl()
createViewer(Composite).
protected AbstractViewerWithButtons.ButtonData[] createButtonData()
AbstractViewerWithButtonsAbstractViewerWithButtons.ButtonData, descriptors for buttons to create.
createButtonData in class AbstractViewerWithButtonsnull or an empty array.org.eclipse.egf.common.ui.viewers.AbstractViewerWithButtons#getButtonData()protected List<AbstractViewerWithButtons.ButtonData> createExtraButtonData()
ButtonData.
protected StructuredViewer createViewer(Composite composite_p)
TableViewer with one column (to support labels and icons).
createViewer in class AbstractViewerWithButtonsorg.eclipse.egf.common.ui.viewers.AbstractViewerWithButtons#createViewer(org.eclipse.swt.widgets.Composite)
|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.