Uses of Class
tripleplay.ui.Element
-
Uses of Element in tripleplay.ui
Modifier and TypeClassDescriptionclass
Controls the behavior of a widget (how it responds to pointer events).static class
Behavior.Capturing<T extends Element<T>>
A click behavior that captures the pointer and optionally issues clicks based on some time based function.static class
Behavior.Click<T extends Element<T>>
Implements clicking behavior.static class
Behavior.Ignore<T extends Element<T>>
A behavior that ignores everything.static class
Behavior.RapidFire<T extends Element<T>>
Captures the pointer and dispatches one click on press, a second after an initial delay and at regular intervals after that.static class
Behavior.Select<T extends Element<T>>
Implements button-like behavior: selects the element when the pointer is in bounds, and deselects on release.static class
Behavior.Toggle<T extends Element<T>>
Implements toggling behavior.static class
Behavior.Track<T extends Element<T>>
Tracks the pressed position as an anchor and delegates to subclasses to update state based on anchor and drag position.interface
Implemented byElement
s that can be clicked.class
The root of the interface element hierarchy.class
HistoryGroup<T,
W extends Element<?>> A scrolling vertical display, optimized for showing potentially very long lists such as a chat log.interface
Implemented byElement
s that expose a selected state and can be clicked.Modifier and TypeClassDescriptionclass
AbstractTextButton<T extends AbstractTextButton<T>>
An abstract base class for buttons with text labels.class
A container that holds zero or one widget.static class
ABox
which draws its children clipped to their preferred size.class
A button that displays text, or an icon, or both.class
A root that renders everything into a single texture.class
Displays a checkbox which can be toggled.class
A container with a fixed list of children, which client code must assume is immutable.class
A shared base class for elements which contain other elements.static class
Container.Mutable<T extends Container.Mutable<T>>
A container that allows mutation (adding and removal) of its children.class
Contains other elements and lays them out according to a layout policy.class
Displays text which can be edited via theInput.getText(playn.core.Keyboard.TextType, java.lang.String, java.lang.String)
popup.class
GlyphWidget<T extends GlyphWidget<T>>
Base for widgets that consist of a single glyph.class
A grouping element that contains other elements and lays them out according to a layout policy.class
HistoryGroup<T,
W extends Element<?>> A scrolling vertical display, optimized for showing potentially very long lists such as a chat log.static class
History group of just labels.static class
A label that exposes the width hint and preferred size.class
A button that uses images for its different states.class
A widget that displays one or more lines of text and/or an icon image.class
A button that supports an action on a "long press".class
Holds a collection ofMenuItem
s, dispatching aMenu.itemTriggered()
signal when one is selected and triggered.class
An item in a menu.class
A menu that is also capable of showing one page of its items at a time.class
The root of a display hierarchy.class
A composite element that manages horizontal and vertical scrolling of a single content element.class
An invisible widget that simply requests a fixed amount of space.class
A group that allows configuring its preferred size.class
SizableWidget<T extends SizableWidget<T>>
A widget that allows configuring its preferred size.class
Displays a bar and a thumb that can be slid along the bar, representing a floating point value between some minimum and maximum.class
AComposite
that implements tabbing.class
TextWidget<T extends TextWidget<T>>
An abstract base class for widgets that contain text.class
A toggle button that displays text, or an icon, or both.class
Deprecated.class
The base class for all user interface widgets.Modifier and TypeFieldDescriptionfinal Element<?>
Scroller.content
The content contained in the scroller.final Element<?>
MenuHost.Pop.trigger
The element that triggered the popup.Modifier and TypeFieldDescriptionfinal react.Value<Element<?>>
Selector.selected
The selected item.Modifier and TypeMethodDescriptionElement<?>
Box.childAt
(int index) Element<?>
Composite.childAt
(int index) abstract Element<?>
Container.childAt
(int index) Returns the child at the specified index.Element<?>
Elements.childAt
(int index) Element<?>
Tabs.Tab.content()
Gets this tab's content, creating it if necessary.Element<?>
Box.contents()
Returns the box's current contents.Element<?>
CapturedRoot.createWidget()
Creates a widget that will display this root in an image layer.Modifier and TypeMethodDescriptionreact.SignalView<Element<?>>
Elements.childAdded()
Emitted after a child has been added to this Elements.react.SignalView<Element<?>>
Elements.childRemoved()
Emitted after a child has been removed from this Elements.Box.iterator()
Composite.iterator()
Container.iterator()
Returns an unmodifiable iterator over the children of this Container.Elements.iterator()
Modifier and TypeMethodDescriptionTracks one or more elements.Adds a new tab to the container with a pre-constructed element for its content.Adds a new tab to the container with a pre-constructed element for its content.Style.EffectFactory.createEffectRenderer
(Element<?> elem) Creates the effect renderer to be used by this factory.static TextStyle
Style.createTextStyle
(Element<?> elem) Creates a text style instance based on the supplied element's stylings.void
abstract void
Removes and destroys the specified child.void
static Scroller
Scroller.findScrollParent
(Element<?> elem) Finds the closest ancestor of the given element that is aScroller
, or null if there isn't one.Style.Flag.getDefault
(Element<?> mode) abstract V
Style.getDefault
(Element<?> mode) Returns the default value for this style for the supplied element.Style.GradientTypeStyle.getDefault
(Element<?> elem) Style.HAlignStyle.getDefault
(Element<?> elem) Style.PosStyle.getDefault
(Element<?> elem) Style.TextEffectStyle.getDefault
(Element<?> elem) Style.VAlignStyle.getDefault
(Element<?> elem) pythagoras.f.Point
MenuHost.TriggerPoint.getLocation
(Element<?> trigger, pythagoras.f.IPoint pointer) For the given trigger and pointer position, gets the screen coordinates where the menu popup should originate.Optionally confines the menu area to the given element.static boolean
Scroller.makeVisible
(Element<?> elem) Attempts to scroll the given element into view.void
abstract void
Removes the specified child from this container.void
Stops tracking one or more elements.static boolean
Container.removeFromParent
(Element<?> element, boolean destroy) Removes and optionally destroys the given element from its parent, if the parent is a mutable container.static <V> V
Styles.resolveStyle
(Element<?> element, Style<V> style) Resolves the current value ofstyle
onelement
.Updates the box's contents.void
Layout.Constraint.setElement
(Element<?> elem) Called by an element when it is configured with a constraint.Box.transition
(Element<?> contents, Box.Trans trans) Performs an animated transition from the box's current contents tocontents
.ModifierConstructorDescriptionCreates a box with the specified starting contents.Creates a clipped box with the specified starting contents.Creates a new event and initializesMenuHost.Pop.trigger
andMenuHost.Pop.menu
.Creates a new event and initializesMenuHost.Pop.trigger
andMenuHost.Pop.menu
.Creates a new scroller containing the given content and withScroller.Behavior.BOTH
.Creates a selector containing the children of elements with initialSelection selected. -
Uses of Element in tripleplay.ui.layout
Modifier and TypeMethodDescriptionstatic <T extends Element<?>>
TAbsoluteLayout.at
(T elem, float x, float y) Positionselem
at the specified position, in its preferred size.static <T extends Element<?>>
TAbsoluteLayout.at
(T elem, float x, float y, float width, float height) Constrainselem
to the specified position and size.static <T extends Element<?>>
TAbsoluteLayout.at
(T elem, float x, float y, float width, float height, Style.HAlign halign, Style.VAlign valign) Constrainselem
to the specified size and aligns it relative to the given position using the given alignments.static <T extends Element<?>>
TAbsoluteLayout.at
(T elem, float x, float y, Style.HAlign halign, Style.VAlign valign) Positionselem
relative to the given position using the given alignments.static <T extends Element<?>>
TAbsoluteLayout.at
(T elem, pythagoras.f.IPoint position) Positionselem
at the specified position, in its preferred size.static <T extends Element<?>>
TAbsoluteLayout.at
(T elem, pythagoras.f.IPoint position, pythagoras.f.IDimension size) Constrainselem
to the specified position and size.static <T extends Element<?>>
TAbsoluteLayout.at
(T elem, pythagoras.f.IPoint position, pythagoras.f.IDimension size, Style.HAlign halign, Style.VAlign valign) Constrainselem
to the specified size and aligns it relative to the given position using the given alignments.static <T extends Element<?>>
TAbsoluteLayout.at
(T elem, pythagoras.f.IPoint position, Style.HAlign halign, Style.VAlign valign) Positionselem
relative to the given position using the given alignments.static <T extends Element<?>>
TAbsoluteLayout.centerAt
(T elem, float x, float y) Centerselem
on the specified position, in its preferred size.static <T extends Element<?>>
TAbsoluteLayout.centerAt
(T elem, pythagoras.f.IPoint position) Centerselem
on the specified position, in its preferred size.static <T extends Element<?>>
TTableLayout.colspan
(T elem, int colspan) Configures a colspan constraint onelem
.static <T extends Element<?>>
TAxisLayout.stretch
(T elem) Configures the supplied element with aAxisLayout.stretched()
constraint.static <T extends Element<?>>
TAxisLayout.stretch
(T elem, float weight) Configures the supplied element with a weightedAxisLayout.stretched(float)
constraint.Modifier and TypeMethodDescriptionpythagoras.f.IDimension
AbsoluteLayout.Constraint.psize
(AbsoluteLayout layout, Element<?> elem) -
Uses of Element in tripleplay.ui.util
Modifier and TypeClassDescriptionclass
Defines a method that applies an operation to an element.Modifier and TypeFieldDescriptionElement<?>
Hierarchy.Ancestors.current
final Element<?>
Hierarchy.elem
The element that is the focus of this view.Modifier and TypeMethodDescriptionabstract Element<?>
Supplier.get()
Gets the element.Element<?>
Hierarchy.Ancestors.next()
Modifier and TypeMethodDescriptionHierarchy.ancestors()
Returns an object to iterate over the ancestors of this hierarchy, including the root.ElementOp.setEnabled
(boolean enabled) Returns an element operation that enables or disables its elements.Modifier and TypeMethodDescriptionstatic Supplier
Creates a supplier that will return a previously created element the first time and null thereafter.boolean
Hierarchy.hasDescendant
(Element<?> descendant) Tests if the given element is a proper descendant contained in this hierarchy, or is the root.static Hierarchy
Create a new view of the given element.pythagoras.f.Point
Finds the screen coordinates of the point, using the given element as the box.Modifier and TypeMethodDescriptionApplies the given operation to the root of the hierarchy and to every proper descendant.
Label(ValueView)
.