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 Summary
FieldsFields inherited from class org.gvsig.tools.exception.BaseException
code, formatString, messageKey -
Constructor Summary
ConstructorsConstructorDescriptionCreates an initializes a new instance ofPanelWithNoPreferredSizedDefinedException.PanelWithNoPreferredSizeDefinedException(String panelLabel) Creates an initializes a new instance ofPanelWithNoPreferredSizedDefinedException. -
Method Summary
Modifier and TypeMethodDescriptionGets the label of the panel which is the source of this exception, ornullif hasn't been defined.protected voidInitializes aPanelBaseExceptionwith the needed information.voidsetPanelLabel(String panelLabel) Sets the label of the panel which is the source of this exception.values()Methods inherited from class org.gvsig.tools.exception.BaseException
containsCause, getCode, getFormatString, getHTMLMessageStack, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageStack, getLocalizedMessageStack, getMessage, getMessage, getMessageKey, getMessageStack, getMessageStack, getMessageStack, getValue, iterator, setCode, setFormatString, setMessageKey, setTranslator, setTranslator, setValueMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
values
-
PANEL_LABEL
- See Also:
-
-
Constructor Details
-
PanelWithNoPreferredSizeDefinedException
public PanelWithNoPreferredSizeDefinedException()Creates an initializes a new instance of
PanelWithNoPreferredSizedDefinedException. -
PanelWithNoPreferredSizeDefinedException
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
PanelBaseExceptionwith the needed information. -
values
- Overrides:
valuesin classorg.gvsig.tools.exception.BaseException
-
getPanelLabel
Gets the label of the panel which is the source of this exception, or
nullif hasn't been defined.- Returns:
- label of the panel which is the source of this exception
-
setPanelLabel
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
-