setBackgroundColor

Versionshinweise

12.2

Code

Groovy
FieldUtils.setBackgroundColor(Color backgroundColor, String... fieldNames)

Beschreibung

Ändert die Hintergrundfarbe von Feldern.

Parameter

  • backgroundColor - Die neue Hintergrundfarbe, z.B. GUIConstants.COLOR_WHITE oder new Color(0-255 Rot, 0-255 Grün, 0-255 Blau).

  • fieldNames - Eine kommaseparierte Liste von internen Feldnamen, z.B. "MatchCode.Customer". Mit GUIConstants.ALL_FIELDS können alle Felder geändert werden.

Beispiele

Groovy
FieldUtils.setBackgroundColor(GUIConstants.COLOR_WHITE, "MatchCode.Customer", "Name1.Customer");
FieldUtils.setBackgroundColor(new Color(0, 255, 0), "MatchCode.Customer", "Name1.Customer");