Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.jharks.workflow;
  
  import java.util.HashMap;
  import java.util.Map;
  
The ViewMapping class is used to specify a view that should be displayed by the GUI component of the utilizing application.
 
 public class ViewMapping {
    
    
The Map containing active session properties.
 
     private HashMap<StringObjectviewProperties = new HashMap<StringObject>();
    
    
The name of the view to display.
 
     private String viewName;
    
    
The indocator for whether the view should supply a back navigation feature.
 
     private boolean allowBackNavigation = false;
    
    
ViewMapping constructor that takes name of view. The allow back navigation will be false if this constructor is used.

Parameters:
viewName the name of the view to which to buil out by the view controller.
 
     public ViewMapping(String viewName) {
         this. = viewName;
     }
    
    
ViewMapping constructor that takes the name of the view and sets the allow back navigation attribute.

Parameters:
viewName the name of the view to build out by view controller.
allowBackNavigation
 
     public ViewMapping(String viewNameboolean allowBackNavigation) {
     	this. = viewName;
     	this. = allowBackNavigation;
     }

    
Returns the name of the view to display.

Returns:
Returns the viewName.
 
     public String getViewName() {
         return ;
     }
    
    
Returns boolean indicator whether back navigation should be provided by view controller.

Returns:
true if view controller should support back navigation.
 
     public boolean isBackNavigationAllowed() {
     	return this.;
     }
    
    
Set properties to be available on this mapping object.

Parameters:
properties the Map of properties to be added to view properties.
 
     protected void setViewProperties(Map<StringObjectproperties) {
         this..putAll(properties);
     }
     
     public void setViewProperty(String propertyNameObject property) {
         this..put(propertyNameproperty);
     }
    
    
Return the value to which the passed key is mapped in the properties map or null if the map contains no mapping for this key.

Parameters:
name Name of the session property to return.
Returns:
the requested property.
 
     public Object getViewProperty(String name) {
         Object prop = .get(name);
 
         if (prop!=null) {
           return(prop);
         }  else {
           return null
         }
     }
    
    
Return the names of all view properties available on this object, or an empty Enumeration if there are none.

Returns:
the property names as an Enumeration.
 
     @SuppressWarnings("unchecked")
    	return new Enumerator(.keySet());
    }
New to GrepCode? Check out our FAQ X