Package org.apache.juneau.console.views
Class Ribbons.Standard
java.lang.Object
org.apache.juneau.console.views.Ribbons.Standard
- Enclosing class:
- Ribbons
Builder for the standard table ribbon.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the items in slot order, each with its canonical group.create(RibbonItem... items) Adds items to the create slot (groupentity); repeatable.Adds optional export buttons (for example"excel","pdf") after copy and csv.filter(RibbonItem... items) Adds items to the filter slot (groupfilter); repeatable.Renames the refresh item (default"refresh").Drops a preset item or export button by id.
-
Method Details
-
create
Adds items to the create slot (groupentity); repeatable.Ids of items added here are not checked for duplicates by the builder; build-time id validation applies to the stock items only, so keep the ids you pass unique among themselves and against the stock ids.
- Parameters:
items- The items.- Returns:
- This object.
-
filter
Adds items to the filter slot (groupfilter); repeatable.- Parameters:
items- The items.- Returns:
- This object.
-
export
Adds optional export buttons (for example"excel","pdf") after copy and csv.An optional button is omitted at runtime when its library is missing.
- Parameters:
buttons- The buttons, eachexcelorpdf.- Returns:
- This object.
-
without
Drops a preset item or export button by id.Valid ids are
search,export,copy,csv,excel,pdf,link,collapse,columns,reset,refresh, and the id given torefreshId(String). An unknown id is rejected bybuild().- Parameters:
id- The id.- Returns:
- This object.
-
refreshId
Renames the refresh item (default"refresh").- Parameters:
id- The id. Must not benull or blank.- Returns:
- This object.
-
build
Builds the items in slot order, each with its canonical group.- Returns:
- An immutable list, for
TableSpec.ribbon(List). - Throws:
IllegalArgumentException- Ifwithout(String)named an id that is not a preset id.
-