Class BufferPanel

All Implemented Interfaces:
IExtendable, ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
GitProgressBuffer

public class BufferPanel extends JPanel implements IExtendable
A panel showing a single LogBuffer with options for displaying the data in different formats. CSV data may be displayed in a table, while HTML data may be rendered inside a JEditorPane.
See Also:
  • Field Details

  • Constructor Details

    • BufferPanel

      public BufferPanel(String name)
  • Method Details

    • getName

      public String getName()
      Overrides:
      getName in class Component
    • getUserObject

      public Object getUserObject()
    • setUserObject

      public void setUserObject(Object obj)
    • isShowingBuffer

      public boolean isShowingBuffer()
    • showBuffer

      public void showBuffer()
    • clear

      public void clear()
    • isShowingTable

      public boolean isShowingTable()
    • showTable

      public void showTable()
    • copyTextToClipboard

      public void copyTextToClipboard(String text)
    • isShowingHtml

      public boolean isShowingHtml()
    • showHtml

      public void showHtml()
    • showHtml

      public void showHtml(boolean loadTextContent)
    • onZoomIn

      public void onZoomIn()
    • onZoomOut

      public void onZoomOut()
    • onZoomReset

      public void onZoomReset()
    • addBrowserLoadHandler

      public void addBrowserLoadHandler(org.cef.handler.CefLoadHandler loadHandler)
    • removeBrowserLoadHandler

      public void removeBrowserLoadHandler(org.cef.handler.CefLoadHandler loadHandler)
    • isShowingHtmlDebug

      public boolean isShowingHtmlDebug()
    • hideHtmlDebug

      public void hideHtmlDebug()
    • showHtmlDebug

      public void showHtmlDebug()
    • getBufferName

      public String getBufferName()
    • getLogBuffer

      public LogBuffer getLogBuffer()
    • getBrowser

      public org.cef.browser.CefBrowser getBrowser()
    • getWebView

      public Component getWebView()
    • getDataTable

      public org.jdesktop.swingx.JXTable getDataTable()
    • setBusy

      public void setBusy(boolean busy)
    • setFirstRowIsHeader

      public void setFirstRowIsHeader(boolean firstRowIsColumnHeader)
    • onToggleFirstRowAsHeader

      public void onToggleFirstRowAsHeader()
    • getDefaultExtension

      public String getDefaultExtension()
      Returns the appropriate extension based on the current view of the data.
      Returns:
      one of 'txt', 'csv', or 'html'
    • writeToTextFile

      public void writeToTextFile(String file, String encoding) throws IOException
      Throws:
      IOException
    • getHTML

      public String getHTML()
    • writeHMTLFile

      public void writeHMTLFile(String file, String encoding) throws IOException
      Throws:
      IOException
    • writeToCSV

      public void writeToCSV(String file, String encoding) throws IOException
      Throws:
      IOException
    • writeToExcelWorkbook

      public void writeToExcelWorkbook(String file) throws IOException
      Throws:
      IOException
    • createSheetInExcelWorkbook

      public void createSheetInExcelWorkbook(jxl.write.WritableWorkbook workbook) throws jxl.write.biff.RowsExceededException, jxl.write.WriteException
      Throws:
      jxl.write.biff.RowsExceededException
      jxl.write.WriteException
    • deleteSelectedRows

      public void deleteSelectedRows()
    • setBufferName

      public void setBufferName(String string)
    • getExtension

      public Object getExtension(String classname)
    • getExtensions

      public Set<Class<?>> getExtensions()
      Description copied from interface: IExtendable
      Return all extension types supported
      Specified by:
      getExtensions in interface IExtendable
    • getExtension

      public <T> T getExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Get the requested extension if available.
      Specified by:
      getExtension in interface IExtendable
      Returns:
      the capability object or null if the cability is not available
    • putExtension

      public <T> T putExtension(Class<T> cap, T impl)
      Description copied from interface: IExtendable
      Add a new extension.
      Specified by:
      putExtension in interface IExtendable
      Parameters:
      cap - the extension to add
      Returns:
      the added extension implementation
    • removeExtension

      public <T> T removeExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Remove a capability.
      Specified by:
      removeExtension in interface IExtendable
      Parameters:
      cap - the capability to remove