Package de.team33.sphinx.metis
Class JComponents
java.lang.Object
de.team33.sphinx.metis.JComponents
Utility class to handle
JComponents.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classJComponents.Builder<C extends JComponent>Builder implementation to build target instances ofJComponent.static final classJComponents.Charger<C extends JComponent>Charger implementation to charge target instances ofJComponent.static interfaceJComponents.Setup<C extends JComponent,S extends JComponents.Setup<C, S>> Utility interface to set up a target instance ofJComponent. -
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends JComponent>
JComponents.Builder<C>Returns a newJComponents.Builderfor target instances as supplied by the givenSupplier.static <C extends JComponent>
JComponents.Charger<C>charger(C target) Returns a newJComponents.Chargerfor a given target instance.static JComponents.Setup<JComponent,?> setup(JComponent target) Returns a newJComponents.Setupfor a givenJComponentinstance.
-
Method Details
-
builder
Returns a newJComponents.Builderfor target instances as supplied by the givenSupplier.- Type Parameters:
C- The final type of the target instances, at leastJComponent.
-
charger
Returns a newJComponents.Chargerfor a given target instance.- Type Parameters:
C- The final type of the target instance, at leastJComponent.
-
setup
Returns a newJComponents.Setupfor a givenJComponentinstance.
-