public interface GralMng_ifc
GralMngBuild_ifc
.
This interface supports handling with all widgets in a GUI.
The widgets were selected by identifier or with their GralWidget
instance
whereby the implementation environment of a widget may be known. That implementation environment
is a implementor of this interface.Modifier and Type | Field and Description |
---|---|
static int |
cmdBackColor |
static int |
cmdClear |
static int |
cmdCloseWindow |
static int |
cmdColor |
static int |
cmdInsert |
static int |
cmdLineColor |
static int |
cmdRedraw |
static int |
cmdRemove |
static int |
cmdSelect |
static int |
cmdSet |
static int |
cmdSetWindowVisible |
static int |
cmdTextColor |
static int |
version
The version history of this interface:
2012-08-20 Hartmut new:
getWidgetsPermanentlyUpdating() created but not used yet because
refreshCurvesFromVariable(VariableContainer_ifc) has the necessary functionality. |
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String widget,
java.lang.CharSequence text)
Appends the text into a named widget.
|
boolean |
currThreadIsGraphic()
Returns true if the current thread is the graphical thread.
|
int |
getColorValue(java.lang.String sName)
Gets the value to the named color.
|
java.util.List<GralWidget> |
getListCurrWidgets()
Deprecated.
|
java.lang.String |
getValue(java.lang.String sName)
Gets the value from a widget.
|
java.lang.String |
getValueFromWidget(GralWidget widgetDescr)
Gets the String value from a widget with given descriptor
Text field: The content written into, with all spaces.
|
java.util.concurrent.ConcurrentLinkedQueue<GralVisibleWidgets_ifc> |
getVisiblePanels()
Gets the list of all panels which are visible yet and should be updated with values therefore.
|
GralWidget |
getWidget(java.lang.String name)
Searches a widget by name.
|
GralWidget |
getWidgetInFocus() |
java.util.List<GralWidget> |
getWidgetsInFocus()
Returns a list of the last widgets in focus in there focus order.
|
GralVisibleWidgets_ifc |
getWidgetsPermanentlyUpdating()
Gets a list of widgets which should be updated permanently because they store data in any time.
|
GralGraphicThread |
gralDevice() |
LogMessage |
log() |
void |
notifyFocus(GralWidget widgd)
Notifies that this widget has the focus gotten.
|
GralGridProperties |
propertiesGui() |
void |
redrawWidget(java.lang.String sName)
Forces the redrawing for all set samples.
|
void |
refreshCurvesFromVariable(VariableContainer_ifc container)
refresh all curve views.
|
void |
resizeWidget(GralWidget widgd,
int xSizeParent,
int ySizeParent)
Forces the resizing of the given widged.
|
void |
setBackColor(java.lang.String name,
int ix,
int colorValue)
Sets the color of background of the widget, if possible.
|
void |
setFocus(GralWidget widgd)
Sets the focus to the designated widget.
|
void |
setSampleCurveViewY(java.lang.String sName,
float[] values)
Adds a sampling value set.
|
void |
setText(java.lang.String widget,
java.lang.CharSequence text)
Sets the text into a named widget.
|
void |
setValue(java.lang.String widget,
java.lang.Object visibleInfo,
java.lang.Object userData)
Sets the text into a named widget.
|
void |
writeLog(int msgId,
java.lang.Exception exc)
Writes a log message instead throwing an exception or writing on standard output.
|
static final int cmdBackColor
static final int cmdClear
static final int cmdCloseWindow
static final int cmdColor
static final int cmdInsert
static final int cmdLineColor
static final int cmdRedraw
static final int cmdRemove
static final int cmdSelect
static final int cmdSet
static final int cmdSetWindowVisible
static final int cmdTextColor
static final int version
getWidgetsPermanentlyUpdating()
created but not used yet because
refreshCurvesFromVariable(VariableContainer_ifc)
has the necessary functionality.
#setInfoDelayed(GralWidgetChangeRequ, int)
cmdClear
used to clear a whole swt.Table, commonly using: clear a content of widget.
cmdInsert
etc now here.
#setInfo(GralWidget, int, int, Object)
as adequate method
to {@link #insertInfo(String, int, String) but without symbolic addressing of the widget.
It calls the internal method to insert an information in a queue for the graphical thread.
It is thread-safe.
void addText(java.lang.String widget, java.lang.CharSequence text)
widget
- text
- The text is not stored by reference, it can be changed after them.boolean currThreadIsGraphic()
GralGraphicThread.run()
.int getColorValue(java.lang.String sName)
sName
- supported: red, green, blue, yellow@Deprecated java.util.List<GralWidget> getListCurrWidgets()
java.lang.String getValue(java.lang.String sName)
sName
- The name of the widget. The widget will be searched per name.java.lang.String getValueFromWidget(GralWidget widgetDescr)
widgetDescr
- The widget.java.util.concurrent.ConcurrentLinkedQueue<GralVisibleWidgets_ifc> getVisiblePanels()
GralWidget getWidget(java.lang.String name)
name
- The name which is assigned on build.GralWidget getWidgetInFocus()
java.util.List<GralWidget> getWidgetsInFocus()
GralVisibleWidgets_ifc getWidgetsPermanentlyUpdating()
GralGraphicThread gralDevice()
LogMessage log()
void notifyFocus(GralWidget widgd)
widgd
- The widget descriptorGralGridProperties propertiesGui()
void redrawWidget(java.lang.String sName)
sName
- The name of the widget.void refreshCurvesFromVariable(VariableContainer_ifc container)
void resizeWidget(GralWidget widgd, int xSizeParent, int ySizeParent)
widgd
- the widgetvoid setBackColor(java.lang.String name, int ix, int colorValue)
name
- The name of the widget, which was given by the add...()-OperationcolorValue
- blue, green and red in the bits 23..16, 15..8 and 7..0.
opaque in bits 31..24 if possible.void setFocus(GralWidget widgd)
widgd
- void setSampleCurveViewY(java.lang.String sName, float[] values)
sName
- The registered namevalues
- The values.void setText(java.lang.String widget, java.lang.CharSequence text)
widget
- text
- The text is not stored by reference, it can be changed after them.void setValue(java.lang.String widget, java.lang.Object visibleInfo, java.lang.Object userData)
widget
- text
- The text is not stored by reference, it can be changed after them.void writeLog(int msgId, java.lang.Exception exc)
msgId
- The ident number for dispatching and evaluation.exc
- The catched exception.