Class Enabler
java.lang.Object
org.eclipse.nebula.widgets.opal.preferencewindow.enabler.Enabler
- Direct Known Subclasses:
EnabledIfEquals
,EnabledIfNotEquals
,EnabledIfTrue
public abstract class Enabler
extends java.lang.Object
This is the abstract class of all Enablers. An enabler is an object used to
enable or disable a widget depending on a value of a stored property.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
prop
-
Constructor Summary
Constructors Constructor Description Enabler(java.lang.String prop)
Constructor -
Method Summary
Modifier and Type Method Description void
injectRowGroup(PWRowGroup rowGroup)
Link a row or a group to the enablervoid
injectWidget(PWWidget widget)
Link a widget to the enablerabstract boolean
isEnabled()
-
Field Details
-
prop
protected java.lang.String prop
-
-
Constructor Details
-
Enabler
public Enabler(java.lang.String prop)Constructor- Parameters:
prop
- property linked to the enabler.
-
-
Method Details
-
isEnabled
public abstract boolean isEnabled()- Returns:
- the evaluation condition
-
injectWidget
Link a widget to the enabler- Parameters:
widget
- widget to link
-
injectRowGroup
Link a row or a group to the enabler- Parameters:
rowGroup
- RowGroup to link
-