Package com.install4j.api.styles
Interface StyleContext
-
public interface StyleContextContext 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, theStyleinstance receives a newStyleContextinstance 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.JComponentgetContentComponent()Returns the UI component of the currentScreenas returned byScreen.createComponent().java.lang.StringgetSubTitle()The subtitle of the screen as returned byScreen.getSubTitle().java.lang.StringgetTitle()The title of the screen as returned byScreen.getTitle().
-
-
-
Method Detail
-
getContentComponent
javax.swing.JComponent getContentComponent()
Returns the UI component of the currentScreenas 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
-
-