Class PServicesFieldRenderer

All Implemented Interfaces:
Exportable, ImageObserver, MenuContainer, Serializable, Accessible, ListCellRenderer, SwingConstants, TableCellRenderer

public class PServicesFieldRenderer extends PFieldComponentRenderer
See Also:
  • Constructor Details

    • PServicesFieldRenderer

      public PServicesFieldRenderer(String format)
    • PServicesFieldRenderer

      public PServicesFieldRenderer(String format, String nullServiceType)
  • Method Details

    • getDisplayNameForService

      public static String getDisplayNameForService(PModelHandle pm)
      Used to retrieve the service display name used by the renderer. This is a convenience API for those panels that also need to represent a service object. Instead of duplicating the code that retrieves a service object's display name this method can be used. This ensures the display name will be the same across the product.
      Parameters:
      pm - The service object in question.
      Returns:
      null if the passed in PModelHandle is null; otherwise returns the name that the renderer typically displays for a service of this type;
    • getDisplayNameForPayinfo

      public static String getDisplayNameForPayinfo(String paymentType)
    • formatServiceType

      public String formatServiceType(PModelHandle pm)
    • formatServiceType

      public String formatServiceType(String serviceType)
    • getFormattedLabel

      protected Component getFormattedLabel(Object value, Color focusColor)
      Description copied from class: PFieldComponentRenderer
      Gets the formatted label for display.
      Overrides:
      getFormattedLabel in class PFieldComponentRenderer
      Parameters:
      value - the type of component to label
      focusColor - the current border color; if focusColor is null, the label is rendered without borders
      Returns:
      This renderer.
    • setTypeRendering

      protected void setTypeRendering(boolean fullTypeRendering)