protected final class TableControlSWTRenderer.TableControlSWTRendererButtonBarBuilder extends Object implements ButtonBarBuilder
ButtonBarBuilder
for the table control swt renderer. It will call the existing template methods which
allows subclasses to change the buttons.Modifier and Type | Method and Description |
---|---|
Object |
createNewElement(org.eclipse.swt.widgets.Button button)
Gets called when a button is pressed which needs to create a new element which gets added to the list.
|
void |
fillButtonComposite(org.eclipse.swt.widgets.Composite buttonComposite,
org.eclipse.jface.viewers.AbstractTableViewer viewer)
This method is called to fill the given
Composite with all required buttons. |
void |
updateValues()
Reloads the model values.
|
public void updateValues() throws DatabindingFailedException
DatabindingFailedException
- if the databinding could not be executed successfullypublic void fillButtonComposite(org.eclipse.swt.widgets.Composite buttonComposite, org.eclipse.jface.viewers.AbstractTableViewer viewer)
ButtonBarBuilder
Composite
with all required buttons.fillButtonComposite
in interface ButtonBarBuilder
buttonComposite
- the button barviewer
- the AbstractTableViewer
public Object createNewElement(org.eclipse.swt.widgets.Button button)
ButtonBarBuilder
createNewElement
in interface ButtonBarBuilder
createNewElement
in interface NewElementCreator<Object,org.eclipse.swt.widgets.Button>
button
- the button which was pressedCopyright © 2018. All rights reserved.