Package | Description |
---|---|
ej.mwt | |
ej.mwt.event | |
ej.mwt.render | |
ej.mwt.style.dimension | |
ej.mwt.stylesheet | |
ej.mwt.stylesheet.cascading | |
ej.mwt.stylesheet.selector | |
ej.mwt.stylesheet.selector.combinator |
Modifier and Type | Class and Description |
---|---|
class |
Container
A container is a widget that can contain other
Widget instances, following the composite pattern. |
Modifier and Type | Method and Description |
---|---|
Widget |
Container.getChild(int index)
Gets the widget at the specified index in this container.
|
protected Widget[] |
Container.getChildren()
Gets the list of children in this container.
|
Widget |
Desktop.getWidget()
Gets the widget attached to this desktop.
|
Widget |
Widget.getWidgetAt(int x,
int y)
Gets the widget at the specified position.
|
Widget |
Desktop.getWidgetAt(int x,
int y)
Returns the child widget at the specified position.
|
Widget |
Container.getWidgetAt(int x,
int y)
Returns the child widget that is at the specified position.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Container.addChild(Widget child)
Adds the specified widget to the end of the list of children of this container.
|
protected void |
Container.changeChildIndex(Widget child,
int index)
Changes the position of the specified widget in the list of children of this container.
|
protected void |
Container.computeChildOptimalSize(Widget child,
int availableWidth,
int availableHeight)
Computes the optimal size of a child of this container.
|
boolean |
Widget.containsWidget(Widget widget)
Returns whether or not this widget contains the given widget in its hierarchy.
|
boolean |
Desktop.containsWidget(Widget widget)
Returns whether or not this desktop contains the given widget.
|
int |
Container.getChildIndex(Widget child)
Gets the index of the specified widget in the list of children of this container.
|
protected void |
Container.insertChild(Widget child,
int index)
Inserts the specified widget at the specified index in the list of children of this container.
|
protected void |
Container.layOutChild(Widget child,
int x,
int y,
int width,
int height)
Lays out a child of this container.
|
protected void |
Container.removeChild(Widget child)
Removes the specified widget from the list of children of this container.
|
protected void |
Container.renderChild(Widget child,
ej.microui.display.GraphicsContext g)
Renders a child of this container.
|
void |
Desktop.renderWidget(ej.microui.display.GraphicsContext g,
Widget widget)
Renders a widget.
|
protected void |
Container.replaceChild(int index,
Widget child)
Replaces the child at the specified index in the list of children of this container by the specified widget.
|
protected void |
Container.setHiddenChild(Widget child)
Sets a child as hidden.
|
protected void |
Container.setShownChild(Widget child)
Sets a child as shown.
|
void |
Desktop.setWidget(Widget widget)
Attaches a widget to this desktop.
|
Modifier and Type | Method and Description |
---|---|
Widget |
PointerEventDispatcher.getConsumerWidget()
Returns the widget which has consumed the ongoing pointer session.
|
Widget |
PointerEventDispatcher.getPressedHierarchyLeaf()
Returns the leaf widget of the hierarchy which is subscribed to the ongoing pointer session.
|
protected Widget |
EventDispatcher.sendEventToWidgetHierarchy(Widget hierarchyLeaf,
int event)
Sends the given event to the given widget and to each of its ancestors.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
EventDispatcher.sendEventToWidget(Widget widget,
int event)
Sends the given event to the given widget.
|
protected Widget |
EventDispatcher.sendEventToWidgetHierarchy(Widget hierarchyLeaf,
int event)
Sends the given event to the given widget and to each of its ancestors.
|
Modifier and Type | Method and Description |
---|---|
protected void |
OverlapRenderPolicy.renderWidget(Widget widget,
int x,
int y,
int width,
int height) |
protected void |
DefaultRenderPolicy.renderWidget(Widget widget,
int x,
int y,
int width,
int height)
This method performs the increment render of the widget.
|
abstract void |
RenderPolicy.requestRender(Widget widget,
int x,
int y,
int width,
int height)
Requests a rendering of the given widget on the display.
|
void |
DefaultRenderPolicy.requestRender(Widget widget,
int x,
int y,
int width,
int height) |
protected void |
DefaultRenderPolicy.setParentClip(Widget widget,
ej.microui.display.GraphicsContext g)
Clips and translates a graphics context to the absolute bounds of the parent of a widget.
|
Modifier and Type | Method and Description |
---|---|
void |
RelativeDimension.computeOptimalSize(Widget widget,
int availableWidth,
int availableHeight,
Size optimalSize) |
void |
OptimalDimension.computeOptimalSize(Widget widget,
int availableWidth,
int availableHeight,
Size optimalSize) |
void |
NoDimension.computeOptimalSize(Widget widget,
int availableWidth,
int availableHeight,
Size optimalSize) |
void |
FixedDimension.computeOptimalSize(Widget widget,
int availableWidth,
int availableHeight,
Size optimalSize) |
void |
Dimension.computeOptimalSize(Widget widget,
int availableWidth,
int availableHeight,
Size optimalSize)
Computes the optimal size of a widget.
|
void |
RelativeDimension.getAvailableSize(Widget widget,
int availableWidth,
int availableHeight,
Size availableSize) |
void |
OptimalDimension.getAvailableSize(Widget widget,
int availableWidth,
int availableHeight,
Size availableSize) |
void |
NoDimension.getAvailableSize(Widget widget,
int availableWidth,
int availableHeight,
Size availableSize) |
void |
FixedDimension.getAvailableSize(Widget widget,
int availableWidth,
int availableHeight,
Size availableSize) |
void |
Dimension.getAvailableSize(Widget widget,
int availableWidth,
int availableHeight,
Size availableSize)
Gets the available size for a widget.
|
void |
RelativeDimension.layOut(Widget widget,
Rectangle bounds) |
void |
OptimalDimension.layOut(Widget widget,
Rectangle bounds) |
void |
NoDimension.layOut(Widget widget,
Rectangle bounds) |
void |
FixedDimension.layOut(Widget widget,
Rectangle bounds) |
void |
Dimension.layOut(Widget widget,
Rectangle bounds)
Lays out a widget.
|
static void |
DimensionHelper.layOut(Widget widget,
Rectangle bounds,
boolean useFixedWidth,
boolean useFixedHeight,
int fixedWidth,
int fixedHeight)
Lays out a widget.
|
Modifier and Type | Method and Description |
---|---|
Style |
VoidStylesheet.getStyle(Widget widget) |
Style |
Stylesheet.getStyle(Widget widget)
Gets the style for a widget.
|
Style |
CachedStylesheet.getStyle(Widget widget) |
Modifier and Type | Method and Description |
---|---|
Style |
CascadingStylesheet.getStyle(Widget widget) |
Modifier and Type | Method and Description |
---|---|
boolean |
UniversalSelector.appliesToWidget(Widget widget) |
boolean |
TypeSelector.appliesToWidget(Widget widget) |
boolean |
StrictTypeSelector.appliesToWidget(Widget widget) |
boolean |
StateSelector.appliesToWidget(Widget widget) |
boolean |
Selector.appliesToWidget(Widget widget)
Checks whether or not this selector applies to the given widget.
|
boolean |
RootSelector.appliesToWidget(Widget widget) |
boolean |
OddChildSelector.appliesToWidget(Widget widget) |
boolean |
NthChildSelector.appliesToWidget(Widget widget) |
boolean |
NotSelector.appliesToWidget(Widget widget) |
boolean |
LastChildSelector.appliesToWidget(Widget widget) |
boolean |
FirstChildSelector.appliesToWidget(Widget widget) |
boolean |
EvenChildSelector.appliesToWidget(Widget widget) |
boolean |
EnabledSelector.appliesToWidget(Widget widget) |
boolean |
DisabledSelector.appliesToWidget(Widget widget) |
boolean |
ClassSelector.appliesToWidget(Widget widget) |
Constructor and Description |
---|
StrictTypeSelector(Class<? extends Widget> type)
Creates a type selector.
|
TypeSelector(Class<? extends Widget> type)
Creates a type or subtype selector.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GeneralSiblingCombinator.appliesToWidget(Widget widget) |
boolean |
DescendantCombinator.appliesToWidget(Widget widget) |
boolean |
ChildCombinator.appliesToWidget(Widget widget) |
boolean |
AndCombinator.appliesToWidget(Widget widget) |
boolean |
AdjacentSiblingCombinator.appliesToWidget(Widget widget) |