public class GralPanelContent extends GralWidget implements GralWidget_ifc
Modifier and Type | Class and Description |
---|---|
static class |
GralPanelContent.ImplAccess |
static class |
GralPanelContent.MethodsCalledbackFromImplementation
This inner class contains methods which can call by the implementation layer.
|
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData
GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen
Modifier and Type | Field and Description |
---|---|
protected boolean |
bGridZoomed
True then the grid of the panel is zoomed with the actual size of panel.
|
protected boolean |
bZoomed
True then the content of the panel is zoomed with the actual size of panel.
|
GralCanvasStorage |
canvas
If this instance is not null, the content of that should be paint in the paint routine
of the implementation graphic.
|
protected GralWidget |
primaryWidget
The widget which should be focused if the panel is focused.
|
static int |
version
Version history:
2018-08-17 Hartmut new:
getWidget(String) , getTextFrom(String)
2016-07-16 Hartmut chg: On GralWidget.setToPanel(GralMngBuild_ifc) all widgets of this panel are initialized too. |
protected java.util.List<GralWidget> |
widgetList
List of all widgets which are contained in this panel.
|
java.util.List<GralWidget> |
widgetsToResize |
_wdgImpl, bEditable, bHasFocus, bShouldInitialize, buildMng, bVisibleState, cfg, contextMenu, dateUser, dyda, htmlHelp, itsMng, name, repaintDelay, repaintDelayMax, sCmd, sFormat, sToolTip, sVersion, whatIs
sVersion
Constructor and Description |
---|
GralPanelContent(java.lang.String namePanel,
GralMng mng,
java.lang.Object panelComposite)
Deprecated.
|
GralPanelContent(java.lang.String posString,
java.lang.String namePanel)
Create a panel, registers it and sets the
GralMng.pos() of this thread to the panel. |
GralPanelContent(java.lang.String posString,
java.lang.String namePanel,
char whatIsit)
Create a panel, registers it and sets the
GralMng.pos() of this thread to the panel. |
Modifier and Type | Method and Description |
---|---|
void |
createImplWidget_Gthread()
Overridden implementation of
GralWidget.createImplWidget_Gthread() for instantiation of all widgets of this panel. |
java.lang.String |
getTextFrom(java.lang.String nameWidget)
Gets the text from the named widget
|
GralWidget |
getWidget(java.lang.String name)
Gets a named widget on this panel.
|
java.lang.Object |
getWidgetImplementation()
Deprecated.
|
java.util.List<GralWidget> |
getWidgetList() |
boolean |
remove()
This overridden form of
Removeable.remove() removes all widgets of this panel. |
void |
removeWidget(GralWidget widg)
Removes this widget from the lists in this panel.
|
void |
setPrimaryWidget(GralWidget widg) |
void |
setTextIn(java.lang.String nameWidget,
java.lang.CharSequence text)
Sets the text to the named widget
|
void |
setVisibleState(boolean visible)
Sets the visible state to all widgets of the panel, but not to windows (that is only in the primaryWindow)
|
java.lang.String |
toString()
Returns the container instance of the panel of the implementing graphic.
|
boolean |
XXXsetFocusGThread()
Sets the focus to the primary widget if it is set.
|
chgPos, clearShowParam, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, getContextMenu, getData, getDataIx, getDataPath, getDataPath, getFloatValue, getFormat, getGralWidget, getHtmlHelp, getImpl, getItsPanel, getLongValue, getName, getShowMethod, getShowParam, getsToolTip, getText, getValue, getVariable, getVariableFromContentInfo, gralMng, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, pos, refreshFromVariable, refreshFromVariable, repaint, repaint, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setEditable, setFocus, setFocus, setForegroundColor, setFormat, setHtmlHelp, setLineColor, setLongValue, setMinMax, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setValue, setValue, setValue, setValue, setVisible, setVisibleStateWidget, specifyActionChange, specifyContextMenu, XXXgetPixelPositionSize, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthread, XXXsetVisibleGThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getActionChange, getBackColor, getCmd, getContentIdent, getContentInfo, getData, getDataPath, getName, gralMng, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, refreshFromVariable, refreshFromVariable, repaint, repaint, setBackColor, setBoundsPixel, setCmd, setContentIdent, setData, setDataPath, setEditable, setFocus, setFocus, setHtmlHelp, setLineColor, setText, setTextColor, setToPanel, setVisible
getContentInfo, setContentInfo
protected boolean bGridZoomed
protected boolean bZoomed
public GralCanvasStorage canvas
protected GralWidget primaryWidget
public static final int version
getWidget(String)
, getTextFrom(String)
GralWidget.setToPanel(GralMngBuild_ifc)
all widgets of this panel are initialized too. More simple for user application.
setTextIn(String, CharSequence)
, change of registering a widget. Now any panel knows its widgets
by name.
#getPixelSize()
, chg: #getPixelPositionSize()
in all implementations.
A swt.widget.Shell now returns the absolute position and the real size of its client area without menu and title bar.
canvas
as property maybe null for each panel to support stored graphics.
#implMethodPanel_
and GralPanelContent.MethodsCalledbackFromImplementation.setVisibleState(boolean)
.
setPrimaryWidget(GralWidget)
for panel focus.
remove()
SwtPanel
now.
#getPixelPositionSize()
.
protected java.util.List<GralWidget> widgetList
public java.util.List<GralWidget> widgetsToResize
@Deprecated public GralPanelContent(java.lang.String namePanel, GralMng mng, java.lang.Object panelComposite)
public GralPanelContent(java.lang.String posString, java.lang.String namePanel)
GralMng.pos()
of this thread to the panel.public GralPanelContent(java.lang.String posString, java.lang.String namePanel, char whatIsit)
GralMng.pos()
of this thread to the panel.public void createImplWidget_Gthread() throws java.lang.IllegalStateException
GralWidget.createImplWidget_Gthread()
for instantiation of all widgets of this panel.createImplWidget_Gthread
in interface GralWidget_ifc
createImplWidget_Gthread
in class GralWidget
java.lang.IllegalStateException
- This routine can be called only if the graphic implementation widget is not
existing. It is one time after startup or more as one time if #removeWidgetImplementation()
was called.public java.lang.String getTextFrom(java.lang.String nameWidget)
nameWidget
- the registered widget in its panel.text
- The text to set.java.lang.IllegalArgumentException
- on faulty widget namepublic GralWidget getWidget(java.lang.String name)
@Deprecated public java.lang.Object getWidgetImplementation()
public java.util.List<GralWidget> getWidgetList()
public boolean remove()
Removeable.remove()
removes all widgets of this panel.
It includes the disposition of the widgets in the graphic. It is done by invocation
GralWidget.remove()
.remove
in interface Removeable
remove
in class GralWidget
public void removeWidget(GralWidget widg)
GralWidget.remove()
. Use the last one method
to remove a widget includint is disposition and remove from the panel.widg
- The widget.public void setPrimaryWidget(GralWidget widg)
public void setTextIn(java.lang.String nameWidget, java.lang.CharSequence text)
nameWidget
- the registered widget in its panel.text
- The text to set.java.lang.IllegalArgumentException
- on faulty widget namepublic void setVisibleState(boolean visible)
setVisibleState
in class GralWidget
GralWidget.setVisibleState(boolean)
public java.lang.String toString()
toString
in class GralWidget
Object.toString()
public boolean XXXsetFocusGThread()
setPrimaryWidget(GralWidget)
.XXXsetFocusGThread
in class GralWidget