|
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
public abstract class AbstractViewerWithButtons
Base class to implement a viewer with buttons located on the right side(e.g to change list elements order).
Nested Class Summary | |
---|---|
class |
AbstractViewerWithButtons.ButtonData
Button data. |
Field Summary | |
---|---|
protected AbstractViewerWithButtons.ButtonData[] |
_buttonData
Button data related to created buttons on the right side of this viewer. |
protected StructuredViewer |
_decoratedViewer
The decorated viewer. |
Constructor Summary | |
---|---|
protected |
AbstractViewerWithButtons()
Default constructor. |
protected |
AbstractViewerWithButtons(Composite parent_p)
Constructor with no information on buttons. |
Method Summary | |
---|---|
protected void |
buttonSelected(Button selectedButton_p,
Object data_p)
Called when a button is selected. |
protected Button |
createButton(Composite parent_p,
String label_p,
int style_p)
Create a button. |
protected abstract AbstractViewerWithButtons.ButtonData[] |
createButtonData()
Create button data, that is an array of AbstractViewerWithButtons.ButtonData , descriptors for buttons to create. |
protected Label |
createEmptySpace(Composite parent_p,
int span_p)
Create an empty space. |
protected abstract StructuredViewer |
createViewer(Composite composite_p)
Create a viewer which is decorated with buttons on the right side. |
StructuredViewer |
getDecoratedViewer()
Return the decorated viewer. |
protected void |
init(Composite parent_p)
Initialize viewer content. |
protected boolean |
isEditable()
Is viewer editable ? |
void |
setButtonClickedListener(IButtonClickedListener buttonClickedListener_p)
Set the listener that is called when a button is clicked. |
protected void |
updateButtons(ISelection selection_p)
Update the buttons enablement property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AbstractViewerWithButtons.ButtonData[] _buttonData
protected StructuredViewer _decoratedViewer
Constructor Detail |
---|
protected AbstractViewerWithButtons()
init(Composite)
explicitly in implementation.
protected AbstractViewerWithButtons(Composite parent_p)
#getButtonData()
to resolve buttons information.
parent_p
- Method Detail |
---|
protected void init(Composite parent_p)
parent_p
- protected boolean isEditable()
protected void updateButtons(ISelection selection_p)
selection_p
- protected abstract AbstractViewerWithButtons.ButtonData[] createButtonData()
AbstractViewerWithButtons.ButtonData
, descriptors for buttons to create.
null
or an empty array.protected abstract StructuredViewer createViewer(Composite composite_p)
composite_p
- protected void buttonSelected(Button selectedButton_p, Object data_p)
selectedButton_p
- data_p
- user dataprotected Button createButton(Composite parent_p, String label_p, int style_p)
parent_p
- label_p
- style_p
-
Button
protected Label createEmptySpace(Composite parent_p, int span_p)
parent_p
- span_p
-
public StructuredViewer getDecoratedViewer()
public void setButtonClickedListener(IButtonClickedListener buttonClickedListener_p)
buttonClickedListener_p.
-
|
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.