Package io.codeworth.panelmatic
Interface PanelMaticComponentCustomizer
-
- All Known Implementing Classes:
AutoScrollPaneCustomizer,ChangeDetectorCustomizer,ColorOnFocusCustomizer
public interface PanelMaticComponentCustomizerInterface for objects which want to customize components before they get put into a panel that aPanelBuilderbuilds. Such customizations can be installing listeners, changing the UI to corporate colors, etc.- Author:
- michaelbar-sinai
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JComponentcustomize(String labelText, JComponent aJcomponent)Customize the component.
-
-
-
Method Detail
-
customize
JComponent customize(String labelText, JComponent aJcomponent)
Customize the component. Note that this method also allows for wrapping the component in a new component, or replacing it altogether.- Parameters:
labelText- the string for the label (ornull). Useful for meta-data, as in adding a tool-tip according to it.aJcomponent- the component to customize- Returns:
- Normally the passed component; could also be a wrapping component or even a new one.
-
-