Class HidingDialogPanel

java.lang.Object
PamView.hidingpanel.HidingDialogPanel

public class HidingDialogPanel extends Object
Something similar to the hiding panel, but doesn't get put into an existing panel, but rather floats over the top. In effect, it's it's own frame, but with no control bar so it can't be moved. Will be positioned relative to it's trigger window, but will move up or down left or right to ensure it stays within the screen coordinates.
Author:
Doug Gillespie
  • Field Details

    • outCount

      public int outCount
  • Constructor Details

    • HidingDialogPanel

      public HidingDialogPanel(int startLocation, HidingDialogComponent dialogComponent)
  • Method Details

    • getHidingDialogComponent

      public HidingDialogComponent getHidingDialogComponent()
      Returns:
      the hidingDialogComponent
    • getSizingComponent

      public JComponent getSizingComponent()
      Returns:
      the sizingComponent
    • setSizingComponent

      public void setSizingComponent(JComponent sizingComponent)
      Parameters:
      sizingComponent - the sizingComponent to set
    • setHiddenToolTipText

      public void setHiddenToolTipText(String tipText)
      Set tool tip text for the show button
      Parameters:
      tipText - tool tip text for the show button.
    • getStartLocation

      public int getStartLocation()
      Returns:
      the startLocation
    • showHidingDialog

      public void showHidingDialog(boolean show)
      show the hiding dialog
    • getHidingDialog

      public HidingDialog getHidingDialog()
    • setDialogPosition

      public void setDialogPosition()
    • setStartLocation

      public void setStartLocation(int startLocation)
      Parameters:
      startLocation - the startLocation to set
    • getShowButton

      public JButton getShowButton()
      Returns:
      the showButton
    • getAutoHideTime

      public int getAutoHideTime()
      The time to wait before hiding the dialog after the mouse has moved off of it
      Returns:
      the autoHideTime
    • setAutoHideTime

      public void setAutoHideTime(int autoHideTime)
      The time to wait before hiding the dialog after the mouse has moved off of it
      Parameters:
      autoHideTime - the autoHideTime to set in milliseconds
    • isAutoShow

      public boolean isAutoShow()
      ? auto show the dialog as soon as the mouse moves over the showButton
      Returns:
      the autoShow
    • setAutoShow

      public void setAutoShow(boolean autoShow)
      Set to auto show the dialog as soon as the mouse moves over the showButton
      Parameters:
      autoShow - the autoShow to set
    • isAutoHide

      public boolean isAutoHide()
      Should the dialog automatically disappear when the mouse moves off it ?
      Returns:
      the autoHide
    • setAutoHide

      public void setAutoHide(boolean autoHide)
      Should the dialog automatically disappear when the mouse moves off it ?
      Parameters:
      autoHide - the autoHide to set
    • getOpacity

      public float getOpacity()
      Returns:
      the opacity
    • setOpacity

      public void setOpacity(float opacity)
      Parameters:
      opacity - the opacity to set
    • isModality

      public boolean isModality()
      Returns:
      the modality
    • setModality

      public void setModality(boolean modality)
      Parameters:
      modality - the modality to set
    • getDefaultButtonInsets

      public static Insets getDefaultButtonInsets()