org.pm4j.core.pm
Class PmDefaults

java.lang.Object
  extended by org.pm4j.core.pm.PmDefaults

public class PmDefaults
extends java.lang.Object

A singleton that knows about the application wide defined default presentation model implementation strategies.

Author:
olaf boede

Field Summary
 boolean addErrorMessagesToTooltip
          Defines, if validation error messages should be added to the tool tip text of the affected attributes.
 int validationChangeEventMask
          The event mask to be fired on validation state changes.
Is configurable to support information about changing style classes, tooltips etc.
This allows to fire only a single event with an event mask that informs all relevant listeners.
 
Constructor Summary
PmDefaults()
           
 
Method Summary
 PmCommandCfg.BEFORE_DO getBeforeDoCommandDefault()
           
 PmOptionCfg.NullOption getEnumNullOptionDefault()
           
static PmDefaults getInstance()
           
 PmObjectBase.NameBuilder getLogStringBuilder()
           
 PmTitleProvider getPmAttrTitleProvider()
           
 PmTitleProvider getPmTitleProvider()
           
 PmObjectBase.NameBuilder getToStringNameBuilder()
           
 boolean isElementsInheritAnnotationsOnlyFromSession()
          Deprecated. 
 void setBeforeDoCommandDefault(PmCommandCfg.BEFORE_DO beforeDoCommandDefault)
           
 void setElementsInheritAnnotationsOnlyFromSession(boolean elementsInheritAnnotationsOnlyFromSession)
          Deprecated. 
 void setEnumNullOptionDefault(PmOptionCfg.NullOption enumNullOption)
           
static void setInstance(PmDefaults newInstance)
          Defines a new set of default strategies.
 void setLogStringBuilder(PmObjectBase.NameBuilder logStringBuilder)
           
 void setPmAttrTitleProvider(PmTitleProvider pmAttrTitleProvider)
           
 void setPmTitleProvider(PmTitleProvider pmTitleProvider)
           
 void setToStringNameBuilder(PmObjectBase.NameBuilder toStringNameBuilder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validationChangeEventMask

public int validationChangeEventMask
The event mask to be fired on validation state changes.
Is configurable to support information about changing style classes, tooltips etc.
This allows to fire only a single event with an event mask that informs all relevant listeners.


addErrorMessagesToTooltip

public boolean addErrorMessagesToTooltip
Defines, if validation error messages should be added to the tool tip text of the affected attributes.

Constructor Detail

PmDefaults

public PmDefaults()
Method Detail

getInstance

public static PmDefaults getInstance()
Returns:
The application wide default strategies.

setInstance

public static void setInstance(PmDefaults newInstance)
Defines a new set of default strategies.

Parameters:
newInstance - The new definition.

getPmTitleProvider

public PmTitleProvider getPmTitleProvider()

setPmTitleProvider

public void setPmTitleProvider(PmTitleProvider pmTitleProvider)

getPmAttrTitleProvider

public PmTitleProvider getPmAttrTitleProvider()

setPmAttrTitleProvider

public void setPmAttrTitleProvider(PmTitleProvider pmAttrTitleProvider)

getEnumNullOptionDefault

public PmOptionCfg.NullOption getEnumNullOptionDefault()

setEnumNullOptionDefault

public void setEnumNullOptionDefault(PmOptionCfg.NullOption enumNullOption)

getToStringNameBuilder

public PmObjectBase.NameBuilder getToStringNameBuilder()

setToStringNameBuilder

public void setToStringNameBuilder(PmObjectBase.NameBuilder toStringNameBuilder)

getLogStringBuilder

public PmObjectBase.NameBuilder getLogStringBuilder()

setLogStringBuilder

public void setLogStringBuilder(PmObjectBase.NameBuilder logStringBuilder)

isElementsInheritAnnotationsOnlyFromSession

@Deprecated
public boolean isElementsInheritAnnotationsOnlyFromSession()
Deprecated. 


setElementsInheritAnnotationsOnlyFromSession

@Deprecated
public void setElementsInheritAnnotationsOnlyFromSession(boolean elementsInheritAnnotationsOnlyFromSession)
Deprecated. 


getBeforeDoCommandDefault

public PmCommandCfg.BEFORE_DO getBeforeDoCommandDefault()

setBeforeDoCommandDefault

public void setBeforeDoCommandDefault(PmCommandCfg.BEFORE_DO beforeDoCommandDefault)