Class PanelWithNoPreferredSizeDefinedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.gvsig.tools.exception.BaseException
org.gvsig.gui.beans.panelGroup.exceptions.PanelWithNoPreferredSizeDefinedException
All Implemented Interfaces:
Serializable, org.gvsig.tools.exception.IBaseException

public class PanelWithNoPreferredSizeDefinedException extends org.gvsig.tools.exception.BaseException

If an object of type IPanelGroup tries to load a panel that its preferred sized hasn't been initialized, (not the default preferred size), then an exception of this kind will be launched.

Version:
28/11/2007
Author:
Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
See Also:
  • Field Details

  • Constructor Details

    • PanelWithNoPreferredSizeDefinedException

      public PanelWithNoPreferredSizeDefinedException()

      Creates an initializes a new instance of PanelWithNoPreferredSizedDefinedException.

    • PanelWithNoPreferredSizeDefinedException

      public PanelWithNoPreferredSizeDefinedException(String panelLabel)

      Creates an initializes a new instance of PanelWithNoPreferredSizedDefinedException.

      Parameters:
      panelLabel - label of the panel which is the source of this exception
  • Method Details

    • initialize

      protected void initialize()

      Initializes a PanelBaseException with the needed information.

    • values

      protected Map<String,String> values()
      Overrides:
      values in class org.gvsig.tools.exception.BaseException
    • getPanelLabel

      public String getPanelLabel()

      Gets the label of the panel which is the source of this exception, or null if hasn't been defined.

      Returns:
      label of the panel which is the source of this exception
    • setPanelLabel

      public void setPanelLabel(String panelLabel)

      Sets the label of the panel which is the source of this exception.

      Parameters:
      panelLabel - label of the panel which is the source of this exception