Package io.codeworth.panelmatic
Interface PanelMaticComponentCustomizer
- All Known Implementing Classes:
AutoScrollPaneCustomizer,ChangeDetectorCustomizer,ColorOnFocusCustomizer
public interface PanelMaticComponentCustomizer
Interface for objects which want to customize components before they get
put into a panel that a
PanelBuilder builds. Such customizations can be
installing listeners, changing the UI to corporate colors, etc.- Author:
- michaelbar-sinai
-
Method Summary
Modifier and Type Method Description JComponentcustomize(String labelText, JComponent aJcomponent)Customize the component.
-
Method Details
-
customize
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.
-