Class ButtonOnTopBuilder.Builder<T,E,R extends IEditableColumn<T,E,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.ButtonOnTopBuilder.Builder<T,E,R>
- Type Parameters:
T- type of row valueE- type of column value (cell value)R- column type
- All Implemented Interfaces:
ButtonOnTopBuilder.ButtonListenerBuilder<T,,E, R> ButtonOnTopBuilder.FinalBuilder<T,E, R>
- Enclosing class:
ButtonOnTopBuilder
public static class ButtonOnTopBuilder.Builder<T,E,R extends IEditableColumn<T,E,R>>
extends Object
implements ButtonOnTopBuilder.FinalBuilder<T,E,R>, ButtonOnTopBuilder.ButtonListenerBuilder<T,E,R>
A builder class to set up the properties of an button on top editing support.
Instances of this class are created by
EditableColumn objects.
The build() method is used to actually set the properties to the column.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()This is the finalization method.buttonText(String text) Set text for button, if the image is set, the text is not shownbuttonToolTip(String tooltip) Set tooltip for buttonbuttonWidth(int width) Set width for buttonSet function that returns a value that indicates whether the cell can be editedstatic <T1,E1, R1 extends IEditableColumn<T1, E1, R1>>
ButtonOnTopBuilder.ButtonListenerBuilder<T1, E1, R1> create(R1 columnDescriptor, com.amalgamasimulation.desktop.ui.internal.ButtonOnTopManager<T1, ? extends org.eclipse.swt.custom.ControlEditor, ? extends org.eclipse.swt.widgets.Item> buttonOnTopManager) Set function that will be executed after losing focus on the combo box editor or after pressing the Enter buttonicon(org.eclipse.swt.graphics.Image image) Set image for button, if the image is set, the text is not shown
-
Field Details
-
columnDescriptor
-
buttonOnTopManager
protected com.amalgamasimulation.desktop.ui.internal.ButtonOnTopManager<T,? extends org.eclipse.swt.custom.ControlEditor, buttonOnTopManager? extends org.eclipse.swt.widgets.Item>
-
-
Constructor Details
-
Builder
-
-
Method Details
-
create
public static <T1,E1, ButtonOnTopBuilder.ButtonListenerBuilder<T1,R1 extends IEditableColumn<T1, E1, R1>> E1, createR1> (R1 columnDescriptor, com.amalgamasimulation.desktop.ui.internal.ButtonOnTopManager<T1, ? extends org.eclipse.swt.custom.ControlEditor, ? extends org.eclipse.swt.widgets.Item> buttonOnTopManager) -
handler
Description copied from interface:ButtonOnTopBuilder.ButtonListenerBuilderSet function that will be executed after losing focus on the combo box editor or after pressing the Enter button- Specified by:
handlerin interfaceButtonOnTopBuilder.ButtonListenerBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
listener-- Returns:
- builder object
-
canEdit
Description copied from interface:ButtonOnTopBuilder.FinalBuilderSet function that returns a value that indicates whether the cell can be edited- Specified by:
canEditin interfaceButtonOnTopBuilder.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
canEdit-- Returns:
- builder object
-
icon
Description copied from interface:ButtonOnTopBuilder.FinalBuilderSet image for button, if the image is set, the text is not shown- Specified by:
iconin interfaceButtonOnTopBuilder.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
image-- Returns:
- builder object
-
buttonText
Description copied from interface:ButtonOnTopBuilder.FinalBuilderSet text for button, if the image is set, the text is not shown- Specified by:
buttonTextin interfaceButtonOnTopBuilder.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
text-- Returns:
- builder object
-
buttonToolTip
Description copied from interface:ButtonOnTopBuilder.FinalBuilderSet tooltip for button- Specified by:
buttonToolTipin interfaceButtonOnTopBuilder.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
tooltip-- Returns:
- builder object
-
buttonWidth
Description copied from interface:ButtonOnTopBuilder.FinalBuilderSet width for button- Specified by:
buttonWidthin interfaceButtonOnTopBuilder.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
width-- Returns:
- builder object
-
build
Description copied from interface:ButtonOnTopBuilder.FinalBuilderThis is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.- Specified by:
buildin interfaceButtonOnTopBuilder.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>>
-