Class AbstractPreferenceGroupProvider
- java.lang.Object
-
- com.e1c.g5.v8.dt.formatter.ui.preferences.page.builders.TerminalUIBuilder
-
- com.e1c.g5.v8.dt.formatter.ui.preferences.page.builders.AbstractPreferenceGroupProvider
-
- All Implemented Interfaces:
IPreferenceGroupProvider
,IReformatable
- Direct Known Subclasses:
DefaultUIGroupProvider
public abstract class AbstractPreferenceGroupProvider extends TerminalUIBuilder implements IPreferenceGroupProvider
Abstract implementation ofIPreferenceGroupProvider
that collects options and then creates itself with {createGroup(Composite, String)
and options on itself withaddOption(IOption)
-
-
Constructor Summary
Constructors Constructor Description AbstractPreferenceGroupProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addOption(IOption<?> option)
Adds option to the groupvoid
createContent(org.eclipse.swt.widgets.Composite parent, String name)
Builds UI representation of this Group on the given parent with given nameprotected abstract org.eclipse.swt.widgets.Composite
createGroup(org.eclipse.swt.widgets.Composite parent, String name)
Creates UI representation of this instance-
Methods inherited from class com.e1c.g5.v8.dt.formatter.ui.preferences.page.builders.TerminalUIBuilder
applyBooleanOption, applyIntegerOption, applyOption, applyStringOption
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.e1c.g5.v8.dt.formatter.ui.preferences.page.builders.IReformatable
reformat
-
-
-
-
Method Detail
-
addOption
public void addOption(IOption<?> option)
Description copied from interface:IPreferenceGroupProvider
Adds option to the group- Specified by:
addOption
in interfaceIPreferenceGroupProvider
- Parameters:
option
- The option to be added to the group, cannot benull
-
createContent
public void createContent(org.eclipse.swt.widgets.Composite parent, String name)
Description copied from interface:IPreferenceGroupProvider
Builds UI representation of this Group on the given parent with given name- Specified by:
createContent
in interfaceIPreferenceGroupProvider
- Parameters:
parent
- The composite parent of this Group representation, cannot benull
name
- The name of the group, cannot benull
-
createGroup
protected abstract org.eclipse.swt.widgets.Composite createGroup(org.eclipse.swt.widgets.Composite parent, String name)
Creates UI representation of this instance- Parameters:
parent
- The composite parent of UI element that shall be created, cannot benull
name
- The name of the group, cannot benull
- Returns:
- Created UI element, cannot be
null
-
-