public static final class GralWidget.DynamicData
extends java.lang.Object
GralWidget.dyda
is protected.
To access any data from a implementing widget, use GralWidget.ImplAccess.dyda()
which is protected but visible for the own widget implementation.Modifier and Type | Field and Description |
---|---|
GralColor |
backColor
Three colors for background, line and text should be convert to the platforms color and used in the draw routine.
|
GralColor |
backColorNoFocus
Three colors for background, line and text should be convert to the platforms color and used in the draw routine.
|
protected boolean |
bTextChanged
Set to true from any listener of the implementation level if the data of the widget was changed from GUI handling.
|
protected boolean |
bTouchedField
Set to true from any listener of the implementation level if the cursor in the widget is moved or such GUI handling.
|
java.lang.String |
displayedText
A text to display.
|
float |
fValue |
float[] |
fValues |
GralColor |
lineColor
Three colors for background, line and text should be convert to the platforms color and used in the draw routine.
|
long |
lValue
If a long or int value is given, it is stored here.
|
float |
maxValue |
float |
minValue |
java.lang.Object[] |
oValues
Any specific value.
|
GralColor |
textColor
Three colors for background, line and text should be convert to the platforms color and used in the draw routine.
|
GralFont |
textFont
It depends of the pixel size.
|
java.lang.Object |
userData |
java.lang.Object |
visibleInfo |
private java.util.concurrent.atomic.AtomicInteger |
whatIsChanged
32 bit what is changed, see
GralWidget.ImplAccess.chgColorText etc. |
Constructor and Description |
---|
DynamicData() |
Modifier and Type | Method and Description |
---|---|
void |
acknChanged(int mask)
Resets what is changed, Bits defined in
GralWidget.ImplAccess.chgColorBack etc. |
int |
getChanged()
Returns the bits what is changed.
|
void |
setChanged(int mask)
Sets what is changed, Bits defined in
GralWidget.ImplAccess.chgColorBack etc. |
private java.util.concurrent.atomic.AtomicInteger whatIsChanged
GralWidget.ImplAccess.chgColorText
etc.
with this information the redraw in the implementing level can see what is to do.public GralColor backColor
public GralColor backColorNoFocus
public GralColor lineColor
public GralColor textColor
public GralFont textFont
public java.lang.String displayedText
public java.lang.Object[] oValues
public float fValue
public float minValue
public float maxValue
public long lValue
public java.lang.Object visibleInfo
public java.lang.Object userData
public float[] fValues
protected boolean bTouchedField
GralWidget.setText(CharSequence)
furthermore till the focus is left.protected boolean bTextChanged
GralWidget.dyda
can be read and write in any threat. This bit helps to synchronize.public void setChanged(int mask)
GralWidget.ImplAccess.chgColorBack
etc.
It uses the atomic access capability (see whatIsChanged
) to ensure thread safety.mask
- one bit or some bits. ImplAccess.chgXYZpublic int getChanged()
acknChanged(int)
public void acknChanged(int mask)
GralWidget.ImplAccess.chgColorBack
etc.
This routine should be called in the draw routine whenever the change was succeeded.mask
- one bit or some bits. ImplAccess.chgXYZ