Class ButtonAppearance.Builder
-
- All Implemented Interfaces:
public final class ButtonAppearance.BuilderBuilds a ButtonAppearance.
-
-
Constructor Summary
Constructors Constructor Description ButtonAppearance.Builder()
-
Method Summary
Modifier and Type Method Description final ButtonAppearancebuild()Constructs a ButtonAppearance with the specified appearance values. final ButtonAppearance.BuildersetBorderColor(Integer borderColor)Returns Button appearance configured with border color. final ButtonAppearance.BuildersetBorderWidth(Float borderWidth)Returns Button appearance configured with border width. final ButtonAppearance.BuildersetNormalColor(Integer normalColor)Returns Button appearance configured with background color for normal state. final ButtonAppearance.BuildersetPressedColor(Integer pressedColor)Returns Button appearance configured with background color for pressed state. final ButtonAppearance.BuildersetTextAppearance(TextAppearance textAppearance)Returns Button appearance configured with Button text appearance. -
-
Method Detail
-
build
final ButtonAppearance build()
Constructs a ButtonAppearance with the specified appearance values.
-
setBorderColor
final ButtonAppearance.Builder setBorderColor(Integer borderColor)
Returns Button appearance configured with border color.
- Parameters:
borderColor- Button border color.
-
setBorderWidth
final ButtonAppearance.Builder setBorderWidth(Float borderWidth)
Returns Button appearance configured with border width.
- Parameters:
borderWidth- Button border width.
-
setNormalColor
final ButtonAppearance.Builder setNormalColor(Integer normalColor)
Returns Button appearance configured with background color for normal state.
- Parameters:
normalColor- Button background color for normal state.
-
setPressedColor
final ButtonAppearance.Builder setPressedColor(Integer pressedColor)
Returns Button appearance configured with background color for pressed state.
- Parameters:
pressedColor- Button background color for pressed state.
-
setTextAppearance
final ButtonAppearance.Builder setTextAppearance(TextAppearance textAppearance)
Returns Button appearance configured with Button text appearance.
- Parameters:
textAppearance- Button text appearance.
-
-
-
-