Enclosing class:
ButtonAppearance


public static final class ButtonAppearance.Builder
extends java.lang.Object

Constructor Summary

Constructors
Constructor and Description
Builder()
Creates a new ButtonAppearance.Builder for constructing a ButtonAppearance

Method Summary

All Methods
Instance Methods
Concrete Methods
Modifier and TypeMethod and Description
ButtonAppearancebuild()
Constructs a ButtonAppearance with the specified appearance values.
ButtonAppearance.BuildersetBorderColor(int borderColor)
Returns Button appearance configured with border color.
ButtonAppearance.BuildersetBorderWidth(float borderWidth)
Returns Button appearance configured with border width.
ButtonAppearance.BuildersetNormalColor(int normalColor)
Returns Button appearance configured with background color for normal state.
ButtonAppearance.BuildersetPressedColor(int pressedColor)
Returns Button appearance configured with background color for pressed state.
ButtonAppearance.BuildersetTextAppearance(TextAppearance textAppearance)
Returns Button appearance configured with Button text appearance.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Builder

public Builder()
Creates a new ButtonAppearance.Builder for constructing a ButtonAppearance

Method Detail

build

@NonNull
public ButtonAppearance build()
Constructs a ButtonAppearance with the specified appearance values.
Returns:
ButtonAppearance.

setBorderColor

@NonNull
public ButtonAppearance.Builder setBorderColor(int borderColor)
Returns Button appearance configured with border color.
Parameters:
borderColor - Button border color.
Returns:
ButtonAppearance.Builder with the specified border color.

setBorderWidth

@NonNull
public ButtonAppearance.Builder setBorderWidth(float borderWidth)
Returns Button appearance configured with border width.
Parameters:
borderWidth - Button border width.
Returns:
ButtonAppearance.Builder with the specified border width.

setNormalColor

@NonNull
public ButtonAppearance.Builder setNormalColor(int normalColor)
Returns Button appearance configured with background color for normal state.
Parameters:
normalColor - Button background color for normal state.
Returns:
ButtonAppearance.Builder with the specified background color for normal state.

setPressedColor

@NonNull
public ButtonAppearance.Builder setPressedColor(int pressedColor)
Returns Button appearance configured with background color for pressed state.
Parameters:
pressedColor - Button background color for pressed state.
Returns:
ButtonAppearance.Builder with the specified background color for pressed state.

setTextAppearance

@NonNull
public ButtonAppearance.Builder setTextAppearance(@NonNull
                                                           TextAppearance textAppearance)
Returns Button appearance configured with Button text appearance.
Parameters:
textAppearance - Button text appearance.
Returns:
ButtonAppearance.Builder with the specified text appearance.