Package rma.swing

Class EnabledJPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
AbstractEditorPanel, AbstractTextEditorPanel, FontPanel, IconPanel, JCheckBoxEditPanel, RmaJPanel, SamplePanel, TextPanel

public class EnabledJPanel extends JPanel
EnabledJPanel is a generic lightweight container that enables/ disables it children when it's enabled/disabled.
See Also:
  • Constructor Details

    • EnabledJPanel

      public EnabledJPanel()
      Creates a new EnabledJPanel with a double buffer and a flow layout.
    • EnabledJPanel

      public EnabledJPanel(LayoutManager layout)
      Create a new buffered EnabledJPanel with the specified layout manager
      Parameters:
      layout - the LayoutManager to use
    • EnabledJPanel

      public EnabledJPanel(boolean isDoubleBuffered)
      Creates a new EnabledJPanel with FlowLayout and the specified buffering strategy. If isDoubleBuffered is true, the EnabledJPanel will use a double buffer.
      Parameters:
      isDoubleBuffered - a boolean, true for double-buffering, which uses additional memory space to achieve fast, flicker-free updates
    • EnabledJPanel

      public EnabledJPanel(LayoutManager layout, boolean isDoubleBuffered)
      Creates a new EnabledJPanel with the specified layout manager and buffering strategy.
      Parameters:
      layout - the LayoutManager to use
      isDoubleBuffered - a boolean, true for double-buffering, which uses additional memory space to achieve fast, flicker-free updates
  • Method Details

    • setEnabled

      public void setEnabled(boolean b)
      Sets whether or not this component is enabled. A component that is enabled may respond to user input, while a component that is not enabled cannot respond to user input. Some components may alter their visual representation when they are disabled in order to provide feedback to the user that they cannot take input.

      Note: Disabling this component also disables it's immediate children.

      Note: Disabling a lightweight component does not prevent it from receiving MouseEvents.

      Overrides:
      setEnabled in class JComponent
      Parameters:
      b - true if this component should be enabled, false otherwise
      See Also:
    • setComponentEnabled

      protected void setComponentEnabled(Component component, boolean enabled)
    • getToolTipText

      public String getToolTipText(MouseEvent e)
      Overrides:
      getToolTipText in class JComponent