public interface GralWidgImplAccess_ifc
GralWidget
capability and the
capabilities of its derived classes, for example GralWidget.setText(CharSequence)
or GralWidget.setBackColor(org.vishia.gral.ifc.GralColor, int)
. That methods
stores the text, color etc. in graphic-independent attributes. The method
redrawGthread()
is the central method to realize that user stimuli for the
implementation graphic layer. That method can use especially the GralWidget.DynamicData
and there quest method GralWidget.DynamicData.whatIsChanged
.
There is no needing of methods such as setText(String)
etc. because the user
should able to set the text in any thread. See concept of data set described on GralWidget.setText(CharSequence)
See GralWidget._wdgImpl
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version
Version, history and license .
|
Modifier and Type | Method and Description |
---|---|
GralRectangle |
getPixelPositionSize() |
java.lang.Object |
getWidgetImplementation()
Returns the implementation class of the widget.
|
void |
redrawGthread()
This method should be implemented in all Widget implementations of the adapter for the
underlying graphic system.
|
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
void |
setBoundsPixel(int x,
int y,
int dx,
int dy)
Set the bounds of the implementation widget.
|
boolean |
setFocusGThread()
Sets the focus to the widget.
|
GralRectangle |
setPosBounds(GralRectangle parentPix)
Set the bounds of a widget using the
GralWidgetBase.pos() coordinates and the pixels from a parent. |
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget(s) visible state.
|
void |
updateValuesForAction()
This operation should be called before any action is invoked in the user space.
|
static final java.lang.String version
setPosBounds(GralRectangle)
with GralRectangle for composite widgets.
updateValuesForAction()
used for GralTextField
for cursor positions.
boolean setFocusGThread()
GralMng_ifc#setFocus(GralWidget)
.void setVisibleGThread(boolean bVisible)
GralWidgetBase.bVisibleState
too. Therewith it is able to quest GralWidget.isVisible()
in any thread.bVisible
- true then the widget should be visible, false it is set to invisible.void removeWidgetImplementation()
void redrawGthread()
#repaintRequ
java.lang.Object getWidgetImplementation()
Component
.
GralWidget._wdgImpl
class
which should contain the references to that implementation widgets.void setBoundsPixel(int x, int y, int dx, int dy)
x
- y
- dx
- dy
- GralRectangle setPosBounds(GralRectangle parentPix)
GralWidgetBase.pos()
coordinates and the pixels from a parent.parentPix
- the bounds of a parent. It is not necessary that this is the bounds of an existing panel.
Also a sub region in a panel can be described with it, used for GralWidgComposite
.GralRectangle getPixelPositionSize()
void updateValuesForAction()