public class GralPanelContent extends GralWidget implements GralPanel_ifc, GralWidget_ifc, GralVisibleWidgets_ifc
setToTabbedPanel()
and add only panels.
canvas() is referenced here.
It means the GralPanelContent can contain lines, figures beside widgets.
| Modifier and Type | Class and Description |
|---|---|
private static class |
GralPanelContent.ActionSetFromTabSelection
This class is instantiated and used for a
GralHorizontalSelector as action for tab is selection and rmove. |
static class |
GralPanelContent.Data |
static class |
GralPanelContent.ImplAccess |
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicDataGralWidgetBase.GralWidgComposite, GralWidgetBase.TimeOrderCreateImplWidgetGralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen| Modifier and Type | Field and Description |
|---|---|
GralPanelContent.Data |
_panel |
static java.lang.String |
version
Version history:
2023-08-02: Hartmut cleanup: ctor without extra GralMng.
|
_wdgImpl, bEditable, bShouldInitialize, cfg, contextMenu, dateUser, dyda, htmlHelp, lastTimeSetVisible, redrawDelayMax, redrawtDelay, sCmd, sFormat, showWidgetInfo, sToolTip, sVersion, whatIs, XXXbuildMng_cdata, _wdgPos, bVisibleState, gralMng, name, pixSizesVersion| Constructor and Description |
|---|
GralPanelContent(GralPos currPos,
java.lang.String posName) |
GralPanelContent(GralPos currPos,
java.lang.String posName,
java.lang.String labelTab) |
GralPanelContent(GralPos refPos,
java.lang.String posName,
java.lang.String labelTab,
char whatIsit)
Create a panel, registers it and sets the refPos to this panel.
|
| Modifier and Type | Method and Description |
|---|---|
GralPanelContent |
addTabPanel(java.lang.String name,
java.lang.String tabLabel,
boolean removable)
Adds a new panel as Tab for this tabbed panel.
|
GralCanvasStorage |
canvas() |
GralCanvasStorage |
getCreateCanvas()
Returns the GralCanvasStorage for this panel, creates one if not given yet.
|
GralWidgetBase_ifc |
getFocusedWidget()
Default implementation for a widget without children
|
GralWidget |
getPanelWidget() |
java.lang.String |
getTextFrom(java.lang.String nameWidget)
Gets the text from the named widget
|
GralWidgetBase |
getWidget(java.lang.String name)
Gets a named widget on this panel.
|
java.lang.Object |
getWidgetImplementation()
Deprecated.
|
java.util.List<GralWidgetBase> |
getWidgetList() |
java.util.List<GralWidgetBase> |
getWidgetsToResize() |
java.util.List<GralWidgetBase> |
getWidgetsVisible()
Gets the list of all widgets which are visible yet and should be updated with values therefore.
|
boolean |
isTabbed() |
boolean |
remove()
This overridden form of
GralWidget_ifc#remove() removes all widgets of this panel. |
void |
removeWidget(GralWidget widg)
Remove a dedicated widget from the panel.
|
boolean |
removeWidget(java.lang.String name)
Removes a widget in this panel given by name.
|
(package private) void |
reportAllContent(java.lang.Appendable out,
int level)
Returns the container instance of the panel of the implementing graphic.
|
void |
setFocusedWidget(GralWidgetBase_ifc widg)
The primary widget is that widget which should be focused if the panel is focused.
|
void |
setGrid(int yGrid,
int xGrid,
int yGrid2,
int xGrid2,
int colordiff,
int colordiff2)
If yGrid and xGrid are >0, show a grid.
|
void |
setPanelVisible(boolean bVisible) |
void |
setTextIn(java.lang.String nameWidget,
java.lang.CharSequence text)
Sets the text to the named widget
|
void |
setToTabbedPanel()
Should be set before call of
#addWidget(GralWidget, boolean). |
java.lang.String |
toString()
Especially for test and debug, short info about widget.
|
java.util.List<GralWidgetBase> |
widgetList()
Deprecated.
use
getWidgetList() |
boolean |
XXXsetFocusGThread()
Sets the focus to the primary widget if it is set.
|
clearShowParam, createImplWidget_Gthread, getActionChange, getActionChangeStrict, getActionDrag, getActionDrop, getActionFocused, getActionShow, getBackColor, getCfgElement, getCmd, getCmd, getContentIdent, getContentInfo, getContextMenu, getData, getDataIx, getDataPath, getDataPath, getFloatValue, getFormat, getGralWidget, getHtmlHelp, getImplAccess, getImplWidget, getItsPanel, getLongValue, getName, getShowMethod, getShowParam, getsToolTip, getText, getValue, getVariable, getVariableFromContentInfo, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, redraw, redraw, redraw, redraw1, redrawOnlyDynamics, refreshFromVariable, refreshFromVariable, removeImplWidget_Gthread, requestNewValueForVariable, setActionChange, setActionFocused, setActionMouse, setActionShow, setBackColor, setBackgroundColor, setBoundsPixel, setCfgElement, setCmd, setContentIdent, setContentInfo, setData, setDataIx, setDataPath, setDragEnable, setDropEnable, setEditable, setFocus, setFocus, setForegroundColor, setFormat, setHtmlHelp, setLineColor, setLongValue, setMinMax, setPrimaryWidgetOfPanel, setText, setTextColor, setToolTip, setToPanel, setValue, setValue, setValue, setValue, setVariable, setVisible, specifyActionChange, specifyContextMenu, stop, toString, XXXgetWidgetImplementation, XXXremoveWidgetImplementation, XXXrepaintGthreadcheckImplWidgetCreation, createImplWidget, gralMng, hasFocus, pos, resizePostPreparation, setFocusedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitposgetActionChange, getBackColor, getCmd, getContentIdent, getContentInfo, getData, getDataPath, getImplWidget, isChanged, isEditable, isGraphicDisposed, isNotEditableOrShouldInitialize, redraw, redraw, refreshFromVariable, refreshFromVariable, setBackColor, setBackgroundColor, setBoundsPixel, setCmd, setContentIdent, setData, setDataPath, setEditable, setFocus, setForegroundColor, setHtmlHelp, setLineColor, setText, setTextColorgetImplAccess, getName, gralMng, isInFocus, isVisible, setFocus, setFocused, setVisiblepublic static final java.lang.String version
GralWidgetBase._cdata class GralWidgComposite some operations are located there.
GralHorizontalSelector is used to select panels. The panels are normal panels
which are set visible or invisible. Also remove a tab is possible.
#addTabPanel(String, String), removeWidget(String)
GralWindow.mainPanel now if another panel type is given to build.
See GralPanelContent#GralPanelContent(GralPos, String, char, GralMng).
#reportAllContent(Appendable)
Data#bTabbed as designation, this is a tabbed panel.
The old class GralTabbedPanel is no more necessary.
GralPanelContent.Data to encapsulate all elements of this. It is better to view in debug to distinguish form GralWidget fields.
getWidget(String), getTextFrom(String)
#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 MethodsCalledbackFromImplementation#setVisibleState(boolean).
#setFocusedWidget(GralWidget) for panel focus.
remove()
SwtPanel now.
#getPixelPositionSize().
public final GralPanelContent.Data _panel
public GralPanelContent(GralPos refPos, java.lang.String posName, java.lang.String labelTab, char whatIsit)
refPos - reference position, also with aggregation to the GralMngposName - possible position string in the parent, starting with "@..." and the namelabelTab - =null for a whatIsit ==$ :simple panel,
if given for whatIsit ==^ :tabbed panel, then the first tab is created as select list for all tabs.
should be given as string, name of the tab for whatIsit ==@
TODO remove this arg, use only addTabPanel(String, String, boolean) to create a tabbed panel with tabs.whatIsit - should be one of $ ^ @ for $=simple panel, ^=a tabbed panel, @= a tab of a tabbed panelgralMng - public GralPanelContent(GralPos currPos, java.lang.String posName)
public GralPanelContent(GralPos currPos, java.lang.String posName, java.lang.String labelTab)
public void setFocusedWidget(GralWidgetBase_ifc widg)
setFocusedWidget in interface GralWidgetBase_ifcsetFocusedWidget in class GralWidgetwidg - The sub widget which should be focused.
It influences for example the current tab of a tabbed panel,
or influences which widget of a comprehensive widget is first focused.
On a panel it determines which widget should get the focus if the panel gets the focus.public void setPanelVisible(boolean bVisible)
public void setToTabbedPanel()
#addWidget(GralWidget, boolean).
Then the widgets are presented as tabs in this panel.
The widgets then are usual GralPanelContent by itself or a more complex GralWidget, for example a GralTable.
This feature can only be set initially, not removed.public GralPanelContent addTabPanel(java.lang.String name, java.lang.String tabLabel, boolean removable)
setToTabbedPanel() is called here.name - name of the panel in the GralMng.tabLabel - label shown on the tab.public void setGrid(int yGrid,
int xGrid,
int yGrid2,
int xGrid2,
int colordiff,
int colordiff2)
yGrid - xGrid - yGrid2 - xGrid2 - public boolean remove()
GralWidget_ifc#remove() removes all widgets of this panel.
It includes the disposition of the widgets in the graphic. It is done by invocation
GralWidgetBase.remove().remove in class GralWidgetBasepublic boolean removeWidget(java.lang.String name)
Data#idxWidgets) and calls GralWidgetBase.remove().
It removes also the implementing widget.name - name of the widget for GralMng as also in the Data#idxWidgetspublic void removeWidget(GralWidget widg)
removeWidget in interface GralPanel_ifcpublic GralCanvasStorage canvas()
canvas in interface GralPanel_ifcpublic GralCanvasStorage getCreateCanvas()
public boolean isTabbed()
public GralWidget getPanelWidget()
getPanelWidget in interface GralPanel_ifcpublic GralWidgetBase_ifc getFocusedWidget()
GralWidgetgetFocusedWidget in interface GralWidgetBase_ifcgetFocusedWidget in class GralWidget@Deprecated public java.util.List<GralWidgetBase> widgetList()
getWidgetList()public java.util.List<GralWidgetBase> getWidgetList()
getWidgetList in interface GralPanel_ifcpublic java.util.List<GralWidgetBase> getWidgetsVisible()
GralVisibleWidgets_ifcgetWidgetsVisible in interface GralVisibleWidgets_ifcpublic java.util.List<GralWidgetBase> getWidgetsToResize()
public GralWidgetBase getWidget(java.lang.String name)
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 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 boolean XXXsetFocusGThread()
#setFocusedWidget(GralWidget).XXXsetFocusGThread in class GralWidget@Deprecated public java.lang.Object getWidgetImplementation()
void reportAllContent(java.lang.Appendable out,
int level)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
GralWidgettoString in class GralWidgetObject.toString()