Package de.team33.sphinx.metis
Class JMenuItems
java.lang.Object
de.team33.sphinx.metis.JMenuItems
Utility class to handle
JMenuItems.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classJMenuItems.Builder<T extends JMenuItem>Builder implementation to build target instances ofJMenuItem.static final classJMenuItems.Charger<T extends JMenuItem>Charger implementation to charge target instances ofJMenuItem.static interfaceJMenuItems.Setup<T extends JMenuItem,S extends JMenuItems.Setup<T, S>> Utility interface to set up a target instance ofJMenuItem. -
Method Summary
Modifier and TypeMethodDescriptionstatic JMenuItems.Builder<JMenuItem>builder()Returns a newJMenuItems.Builderfor target instances of typeJMenuItem.static <T extends JMenuItem>
JMenuItems.Builder<T>Returns a newJMenuItems.Builderfor target instances as supplied by the givenSupplier.static <T extends JMenuItem>
JMenuItems.Charger<T>charger(T target) Returns a newJMenuItems.Chargerfor a given target instance.static JMenuItems.Setup<JMenuItem,?> Returns a newJMenuItems.Setupfor a givenJMenuIteminstance.
-
Method Details
-
builder
Returns a newJMenuItems.Builderfor target instances of typeJMenuItem. -
builder
Returns a newJMenuItems.Builderfor target instances as supplied by the givenSupplier.- Type Parameters:
T- The final type of the target instances, at leastJMenuItem.
-
charger
Returns a newJMenuItems.Chargerfor a given target instance.- Type Parameters:
T- The final type of the target instance, at leastJMenuItem.
-
setup
Returns a newJMenuItems.Setupfor a givenJMenuIteminstance.
-