Interface ComponentFactory<T extends Component>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TcreateComponent()Create an instance of the component.IcongetIcon()Get the icon for the component.StringgetName()Get the display name of the component.StringgetToolTip()Get the tool-tip for the component.
-
-
-
Method Detail
-
createComponent
T createComponent()
Create an instance of the component.- Returns:
- The new component instance.
-
getName
String getName()
Get the display name of the component. Used in the UI as a Frame or menu title.- Returns:
- The name.
-
getIcon
Icon getIcon()
Get the icon for the component.- Returns:
- The icon.
-
getToolTip
String getToolTip()
Get the tool-tip for the component.- Returns:
- The tool-tip.
-
-