de.espirit.firstspirit.client.gui.applications
Interface ApplicationTabAppearance.Builder

Enclosing interface:
ApplicationTabAppearance

public static interface ApplicationTabAppearance.Builder

Configuration builder to configure tab appearance.
Usage:

 final ApplicationTabAppearance appearance = ApplicationTabAppearance.GENERATOR.invoke().title("myTitle").get();
 

Since:
4.2.416
See Also:
ApplicationTab.setAppearance(ApplicationTabAppearance)

Method Summary
 ApplicationTabAppearance.Builder borderType(Store.Type borderType)
          Defines the border type used for the colored border beneath the application tab button.
 ApplicationTabAppearance.Builder fontStyle(ApplicationTabAppearance.FontStyle fontStyle)
          Defines the font style for the application tab related to this tab appearance builder.
 ApplicationTabAppearance get()
          Returns the ApplicationTabAppearance object based on this builder.
 ApplicationTabAppearance.Builder icon(Icon icon)
          Sets the icon for the application tab related to this tab appearance builder.
 ApplicationTabAppearance.Builder title(String title)
          Sets the title for the application tab related to this tab appearance builder.
 

Method Detail

borderType

ApplicationTabAppearance.Builder borderType(Store.Type borderType)
Defines the border type used for the colored border beneath the application tab button. If not specified an uncolored border will be used.

Parameters:
borderType - the given store border type will be mapped to the store color (e.g. pagestore -> green, sitestore -> blue}
Returns:
this builder instance (builder pattern)
Since:
4.2.416

fontStyle

ApplicationTabAppearance.Builder fontStyle(ApplicationTabAppearance.FontStyle fontStyle)
Defines the font style for the application tab related to this tab appearance builder. If not specified FontStyle#PLAIN will be used.

Parameters:
fontStyle - the font style to be used for the application tab
Returns:
this builder instance (builder pattern)
Since:
4.2.416

title

ApplicationTabAppearance.Builder title(String title)
Sets the title for the application tab related to this tab appearance builder.

Parameters:
title - the title to be used for the application tab
Returns:
this builder instance (builder pattern)
Since:
4.2.416

icon

ApplicationTabAppearance.Builder icon(Icon icon)
Sets the icon for the application tab related to this tab appearance builder.

Parameters:
icon - the icon to be used for the application tab
Returns:
this builder instance (builder pattern)
Since:
4.2.416

get

ApplicationTabAppearance get()
Returns the ApplicationTabAppearance object based on this builder.

Returns:
the application tab appearance based on this builder
Since:
4.2.416


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480