Package com.onec.ui

Class ActionHintBuilder

java.lang.Object
com.onec.ui.ActionHintBuilder

public class ActionHintBuilder extends Object
Per-action placement builder for a document's detail-header actions (post / unpost / edit / delete): show it as a primary button, tuck it into the overflow (⋯) menu, or hide it entirely.

Obtained from EntityConfigBuilder.action(String); the terminal methods return the parent so calls chain:


 f.action("delete").inMenu()
  .action("post").primary()
  .action("unpost").hidden();
 
  • Method Details

    • primary

      public EntityConfigBuilder primary()
      Show this action as a primary button in the detail header.
    • inMenu

      public EntityConfigBuilder inMenu()
      Tuck this action into the overflow (⋯) menu.
    • hidden

      public EntityConfigBuilder hidden()
      Hide this action from the UI entirely (it stays available via REST).