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, theStyle
instance receives a newStyleContext
instance with a call toStyleContextReceiver.setStyleContext(StyleContext)
. That method is called beforeStyle.createComponent()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.swing.JComponent
getContentComponent()
Returns the UI component of the currentScreen
as returned byScreen.createComponent()
.java.lang.String
getSubTitle()
The subtitle of the screen as returned byScreen.getSubTitle()
.java.lang.String
getTitle()
The title of the screen as returned byScreen.getTitle()
.
-
-
-
Method Detail
-
getContentComponent
javax.swing.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
java.lang.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
java.lang.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
-
-