Package org.apache.juneau.console.views
Class PopoverField
java.lang.Object
org.apache.juneau.console.views.PopoverField
One labelled value in a
CellPopover, bound to a top-level row-data key.
Optional render is restricted to the text-shaped built-ins (date, bool,
decimal, datetime, ts-zulu). HTML-shaped renderers are rejected at
CellPopover.validate().
- Since:
- 10.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PopoverFieldCreates a field bound to the specified row-data key.Sets the named renderer using the"id:field" string sugar (seeRender.parse(String)).Sets the named renderer to a pre-builtRender.Sets the label shown beside the value.
-
Field Details
-
data
The key into the DataTables row. Must not be dotted. -
title
Optional label shown beside the value. -
render
Optional text-shaped renderer.null paintsString(value)viatextContent.
-
-
Constructor Details
-
PopoverField
public PopoverField()
-
-
Method Details
-
of
Creates a field bound to the specified row-data key.- Parameters:
data- The row key. Must not benull or blank.- Returns:
- A new
PopoverField.
-
title
Sets the label shown beside the value.- Parameters:
value- The label. Can benull .- Returns:
- This object.
-
render
Sets the named renderer using the"id:field" string sugar (seeRender.parse(String)).- Parameters:
value- The render-id string. Must not benull or blank.- Returns:
- This object.
-
render
Sets the named renderer to a pre-builtRender.- Parameters:
value- The renderer reference. Can benull to unset.- Returns:
- This object.
-