public class GralTabbedPanel extends GralPanelContent implements GralVisibleWidgets_ifc
GralPanelContent
because it can be used as one of the areas
in GralArea9Window
.
It is a GralWidget
because it is used as one member inside another Panel.
The Implementation of this class should create a swt.TabFolder or adequate
A Tab inside the TabPanel is a Panel.
Modifier and Type | Class and Description |
---|---|
static class |
GralTabbedPanel.ImplAccess |
GralPanelContent.MethodsCalledbackFromImplementation
GralWidget.ActionChangeSelect, GralWidget.ConfigData, GralWidget.DynamicData
GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen
Modifier and Type | Field and Description |
---|---|
java.util.List<GralWidget> |
newWidgetsVisible
Deprecated.
|
GralPanelActivated_ifc |
notifyingUserInstanceWhileSelectingTab |
protected java.util.Map<java.lang.String,GralPanelContent> |
panels |
static int |
version
The version and history:
2013-10-22 Hartmut bugfix:
#setMngToTabbedPanel() necessary because a new Tab should refer to this parent. |
java.util.List<GralWidget> |
widgetsVisible
Deprecated.
|
bGridZoomed, bZoomed, canvas, primaryWidget, widgetList, 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 |
---|
GralTabbedPanel(java.lang.String posString,
java.lang.String sName,
GralPanelActivated_ifc user,
int property)
The constructor can only be invoked from a implementing class.
|
Modifier and Type | Method and Description |
---|---|
GralPanelContent |
addCanvasPanel(java.lang.String sName,
java.lang.String sLabel) |
GralPanelContent |
addGridPanel(java.lang.String sName,
java.lang.String sLabel,
int yGrid,
int xGrid,
int yGrid2,
int xGrid2)
Adds a grid-panel in the TabPanel.
|
GralPanelContent |
getFocusedTab() |
java.util.List<GralWidget> |
getWidgetsVisible()
Deprecated.
|
boolean |
removePanel(java.lang.String namePanel)
Removes the named panel from this panel container.
|
GralPanelContent |
selectTab(java.lang.String name) |
void |
setVisibleState(boolean visible)
Sets the visible state to all widgets of the panel, but not to windows (that is only in the primaryWindow)
|
createImplWidget_Gthread, getTextFrom, getWidget, getWidgetImplementation, getWidgetList, remove, removeWidget, setPrimaryWidget, setTextIn, toString, XXXsetFocusGThread
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
@Deprecated public java.util.List<GralWidget> newWidgetsVisible
public final GralPanelActivated_ifc notifyingUserInstanceWhileSelectingTab
protected final java.util.Map<java.lang.String,GralPanelContent> panels
public static final int version
#setMngToTabbedPanel()
necessary because a new Tab should refer to this parent.
On addCanvasPanel(String, String)
or addGridPanel(String, String, int, int, int, int)
the mng
should refer this as GralMng.pos()
.parent.
removePanel(String)
selectTab(String)
.
widgetsVisible
were stored in the GuiPanelMngBase before.
But an application can have more as one tabbed panel, and any of them can change the visible widgets while changing the tab.
The visible widgets are not an concpet of the grid panel manager but a topic of the panel content.
It is not a question of one PanelContent but a question of the TabbedPanel which contains some panels.
#focusedTab
and getFocusedTab()
is moved from GuiPanelMngBase to here.
Reason: One application can have more as one tabbed panel.
addCanvasPanel(String, String)
now returns GralPanelContent
instead an untyped Object.
@Deprecated public java.util.List<GralWidget> widgetsVisible
public GralTabbedPanel(java.lang.String posString, java.lang.String sName, GralPanelActivated_ifc user, int property)
user
- public GralPanelContent addCanvasPanel(java.lang.String sName, java.lang.String sLabel)
public GralPanelContent addGridPanel(java.lang.String sName, java.lang.String sLabel, int yGrid, int xGrid, int yGrid2, int xGrid2)
sName
- The name, used insLabel
- to designate the tab for view. A "&" left from a character determines the hot-key
to select the tab.yGrid
- number of units per grid line vertical. It may be 1.xGrid
- number of units per grid line horizontal. It may be 1.yGrid2
- Number of grid lines vertical per wider ranges for linesxGrid2
- Number of grid lines horizontal per wider ranges for linespublic GralPanelContent getFocusedTab()
@Deprecated public java.util.List<GralWidget> getWidgetsVisible()
GralVisibleWidgets_ifc
getWidgetsVisible
in interface GralVisibleWidgets_ifc
public boolean removePanel(java.lang.String namePanel)
namePanel
- The name which was given by addCanvasPanel(String, String)
or
addGridPanel(String, String, int, int, int, int)
and which is stored in
GralPanelContent#namePanel
.public GralPanelContent selectTab(java.lang.String name)
public void setVisibleState(boolean visible)
setVisibleState
in class GralPanelContent
GralWidget.setVisibleState(boolean)