public class PanelWithNoPreferredSizeDefinedException extends 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.
Modifier and Type | Field and Description |
---|---|
static String |
PANEL_LABEL |
protected HashMap<String,String> |
values |
code, formatString, messageKey
Constructor and Description |
---|
PanelWithNoPreferredSizeDefinedException()
Creates an initializes a new instance of
PanelWithNoPreferredSizedDefinedException . |
PanelWithNoPreferredSizeDefinedException(String panelLabel)
Creates an initializes a new instance of
PanelWithNoPreferredSizedDefinedException . |
Modifier and Type | Method and Description |
---|---|
String |
getPanelLabel()
Gets the label of the panel which is the source of this exception, or
null if hasn't been defined. |
protected void |
initialize()
Initializes a
PanelBaseException with the needed information. |
void |
setPanelLabel(String panelLabel)
Sets the label of the panel which is the source of this exception.
|
protected Map<String,String> |
values() |
getCode, getFormatString, getLocalizedMessage, getLocalizedMessage, getLocalizedMessageStack, getLocalizedMessageStack, getMessage, getMessage, getMessageKey, getMessageStack, getMessageStack, getValue, iterator, setCode, setFormatString, setMessageKey, setTranslator, setTranslator, setValue
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String PANEL_LABEL
public PanelWithNoPreferredSizeDefinedException()
Creates an initializes a new instance of PanelWithNoPreferredSizedDefinedException
.
public PanelWithNoPreferredSizeDefinedException(String panelLabel)
Creates an initializes a new instance of PanelWithNoPreferredSizedDefinedException
.
panelLabel
- label of the panel which is the source of this exceptionprotected void initialize()
Initializes a PanelBaseException
with the needed information.
protected Map<String,String> values()
values
in class BaseException
public String getPanelLabel()
Gets the label of the panel which is the source of this exception, or
null
if hasn't been defined.
public void setPanelLabel(String panelLabel)
Sets the label of the panel which is the source of this exception.
panelLabel
- label of the panel which is the source of this exception