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
All Methods Instance Methods Abstract Methods Concrete Methods 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()
-
-
-
Method Detail
-
isEnabled
public abstract boolean isEnabled()
- Returns:
- the evaluation condition
-
injectWidget
public void injectWidget(PWWidget widget)
Link a widget to the enabler- Parameters:
widget
- widget to link
-
injectRowGroup
public void injectRowGroup(PWRowGroup rowGroup)
Link a row or a group to the enabler- Parameters:
rowGroup
- RowGroup to link
-
-