public interface GralWidgetBase_ifc
GralWidget
but only from GralWidgetBase
.
Especially the GralPos.parent
uses this type, because all widgets can be the parent.Modifier and Type | Method and Description |
---|---|
GralWidgetBase_ifc |
getFocusedWidget()
Returns the widget which is in focus of a panel or comprehensive widget.
|
GralWidget.ImplAccess |
getImplAccess()
This is used to access to the implementation widget instance.
|
java.lang.String |
getName()
Access to the name of the widget.
|
GralMng |
gralMng()
Returns the associated GralMng.
|
boolean |
isInFocus()
Returns true if this widget is the focused one.
|
boolean |
isVisible()
Returns whether the widget is visible or not.
|
GralPos |
pos()
Position of the widget, which refers also the
GralPos.parent . |
void |
setFocus()
Sets the focus to the widget. .
|
void |
setFocus(int delay,
int latest) |
void |
setFocused(boolean bGained)
This operation can be called from the implementation graphic if the focus is gained or lost for an implementation widget.
|
void |
setFocusedWidget(GralWidgetBase_ifc widg)
If this widget is a comprehensive widget or a panel, it sets one of the content as focused.
|
boolean |
setVisible(boolean visible)
Sets this widget visible on graphic or invisible.
|
java.lang.String getName()
GralWidgetBase.name
immediately.GralPos pos()
GralPos.parent
.
The parent in a GralPos has usual the reference to the GralMng
.void setFocus()
void setFocus(int delay, int latest)
boolean isInFocus()
boolean setVisible(boolean visible)
GralWindow
, its the visibility of the whole window.
Note that a window which is invisible is not shown in the task bar of the operation system.
Note that an application can have more as one window.
Note that a dialog window can be set to invisible if it is not need yet instead destroy and build newly.visible
- boolean isVisible()
void setFocusedWidget(GralWidgetBase_ifc widg)
widg
- 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.GralWidgetBase_ifc getFocusedWidget()
void setFocused(boolean bGained)
GralWidgetBase.setFocused(boolean)
for all parents of a widget if a child gets or lost the focus.
The specific widget implementation can override this operation to do specifics.
It should call super.focused(bGained) to forward the focus to parents.bGained
- false then lost.GralMng gralMng()
GralWidget.ImplAccess getImplAccess()