code: public static boolean isButtonPressed(Button button) {
  
          if (button == null) {
              return false;
          }
          List<String> styles = Arrays.asList(button.getStyleName().split(" "));
  
          return styles.contains(OpenCmsTheme.BUTTON_PRESSED);
      }
docs: Checks if a button is pressed.<p>
  
  @param button the button
  
  @return true if the button is pressed