T - Attribute source typepublic abstract class ControlTracker<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ControlCodeSource<T> |
provider |
| Constructor and Description |
|---|
ControlTracker(ControlCodeSource<T> provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Applies the control, if the current state of the control has not been
previously applied to the stream then it will be applied now
|
protected abstract void |
applyInternal(T value)
Method that derived classes must implement to add the actual logic for
applying the control to the stream
|
void |
reset()
Resets the control to the default unintialized state, if necessary this
will will cause the
|
protected abstract void |
resetInternal(T value)
Method that derived classes must implement to add the actual logic for
resetting the control against the stream
|
void |
set(T value)
Sets the value for the control
|
protected final ControlCodeSource<T> provider
public ControlTracker(ControlCodeSource<T> provider)
public final void set(T value)
value - Valuepublic final void reset()
throws IOException
IOExceptionprotected abstract void resetInternal(T value) throws IOException
value - Value to be reset fromIOExceptionpublic final void apply()
throws IOException
IOExceptionprotected abstract void applyInternal(T value) throws IOException
value - Value to be appliedIOExceptionCopyright © 2012–2022. All rights reserved.