Package org.epics.pvdata.property
Interface PVControl
-
- All Known Implementing Classes:
PVControlFactory
public interface PVControlInterface for attaching a Control to a control structure.- Author:
- mrk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanattach(PVField pvField)Attempt to attach to a control field.voiddetach()Remove attachment to control field.voidget(Control control)Get the control values from the attached control field and write to the specified Control.booleanisAttached()Is this attached to a control structure.booleanset(Control control)Set the control.
-
-
-
Method Detail
-
attach
boolean attach(PVField pvField)
Attempt to attach to a control field. The field must either be an control field itself or the field must be named value and a control is found somewhere up the parent tree.- Parameters:
pvField- The field for which to find a control field,- Returns:
- (false,true) if control field (not found, found).
-
detach
void detach()
Remove attachment to control field.
-
isAttached
boolean isAttached()
Is this attached to a control structure.- Returns:
- (false,true) is (not, is) attached to a control structure
-
get
void get(Control control)
Get the control values from the attached control field and write to the specified Control.- Parameters:
control- the Control to be updated- Throws:
IllegalStateException- if this PVControl not attached to a control field
-
set
boolean set(Control control)
Set the control.- Parameters:
control- the new value- Returns:
- (false,true) if the control field is (immutable,updated)
-
-