Schnittstelle IEditor<T>
- Typparameter:
T-
- Alle bekannten Implementierungsklassen:
EditorSelection,EditorString
public interface IEditor<T>
Interface for an editor for a given data type.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanDoes the editor accept the value.voidcreateControl(org.eclipse.swt.widgets.Composite parent) Creates an according control.Returns the category.getLabel()Returns the label.getValue()Returns the current value.booleanisDifferent(T value1, T value2) Checks whether the two values are differentvoidSets the value.
-
Methodendetails
-
accepts
Does the editor accept the value.- Parameter:
t-- Gibt zurück:
-
createControl
void createControl(org.eclipse.swt.widgets.Composite parent) Creates an according control.- Parameter:
parent-
-
getCategory
String getCategory()Returns the category.- Gibt zurück:
-
getLabel
String getLabel()Returns the label.- Gibt zurück:
-
getValue
T getValue()Returns the current value.- Gibt zurück:
-
setValue
Sets the value.- Parameter:
t-
-
isDifferent
Checks whether the two values are different- Parameter:
value1-value2-- Gibt zurück:
-