All Implemented Interfaces:
LiveRefreshItemInterface

public class DetailPane
extends WindowItem
implements LiveRefreshItemInterface
A window showing details about an item in its parent
  • Constructor Details

    • DetailPane

      public DetailPane​(Window parent, java.lang.String id)
      Default constructor

      Creates an item using its default settings;
      The initial coordinates are relative to the object's parent

      Parameters:
      parent - the Window containing this
      id - the object id
    • DetailPane

      public DetailPane​(WindowItem parent, int width, int height, java.lang.String id)
      Custom constructor

      Creates an item using custom settings
      The initial coordinates are relative to the object's parent

      Parameters:
      parent - the Dialog containing this
      width - the object width
      height - the object height
      id - the object id
  • Method Details

    • drawShadows

      protected void drawShadows()
      Draws right and bottom shadows
      Uses the parent's parent color scheme, to merge seamlessly with the background
      Overrides:
      drawShadows in class WindowItem
    • refresh

      public void refresh​(java.util.List<java.lang.String> info)
      Refreshes its content
      Specified by:
      refresh in interface LiveRefreshItemInterface
      Parameters:
      info - the details
    • adaptStrings

      public java.util.List<java.lang.String> adaptStrings​(java.util.List<java.lang.String> details)
      Adapts the list of details to the pane size, creating empty lines if necessary
      Parameters:
      details - the list o f details