Package com.install4j.api.styles
Interface StyleContext
public interface StyleContext
Context object that gives access to the style-relevant properties of a screen and its content component that should
be embedded into the style component. When a new screen is activated, the
Style
instance receives a new
StyleContext
instance with a call to StyleContextReceiver.setStyleContext(StyleContext)
. That method is called
before Style.createComponent()
.-
Method Summary
Modifier and TypeMethodDescriptionReturns the UI component of the currentScreen
as returned byScreen.createComponent()
.The subtitle of the screen as returned byScreen.getSubTitle()
.getTitle()
The title of the screen as returned byScreen.getTitle()
.
-
Method Details
-
getContentComponent
JComponent getContentComponent()Returns the UI component of the currentScreen
as returned byScreen.createComponent()
. It is the responsibility of the style to embed this component whenStyle.createComponent()
is called.- Returns:
- the UI component
-
getTitle
String getTitle()The title of the screen as returned byScreen.getTitle()
. It is the responsibility of the style to display this title whenStyle.createComponent()
is called.- Returns:
- the title
-
getSubTitle
String getSubTitle()The subtitle of the screen as returned byScreen.getSubTitle()
. It is the responsibility of the style to display this subtitle whenStyle.createComponent()
is called.- Returns:
- the title
-