Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package jpaoletti.jpm.core;

This is the superclass of all the core objects of Presentation Manager and it provides some helpers.

Author(s):
jpaoletti
 
public abstract class PMCoreObject implements PMCoreConstants {
    private Boolean debug;

    
Display a debug information on PM log if debug flag is active

Parameters:
s String information
    public void debug(String s) {
        if (getDebug()) {
            PresentationManager.getPm().debug(thiss);
        }
    }

    

Parameters:
debug the debug to set
    public void setDebug(Boolean debug) {
        this. = debug;
    }

    

Returns:
the debug
    public Boolean getDebug() {
        if ( == null) {
            return false;
        }
        return ;
    }

    
Return the presentation manager singleton

Returns:
The Presentation Manager
    protected PresentationManager getPm() {
        return PresentationManager.getPm();
    }
New to GrepCode? Check out our FAQ X