Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2013 Naver Business Platform Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. /
 
 package com.handmark.pulltorefresh.configuration.xml;
 
 import java.util.Map;
 
PullToRefreshNode has an information in contents of pulltorefresh.xml,
such as loading layout and indicator layout class name

Author(s):
Wonjun Kim
 
 class PullToRefreshNode {
Map Storing LoadingLayout class names
Key : layout code (String)
Value : class name (String)
 
 	private final Map<StringStringloadingLayoutClazzNameMap;
Map Storing IndicatorLayout class names
Key : layout code (String)
Value : Class name (String)
 
Map Storing GoogleStyleViewLayout class names
Key : layout code (String)
Value : Class name (String)
 	
Map Storing GoogleStyleProgressLayout class names
Key : layout code (String)
Value : Class name (String)
 	
Constructor needs two class name Maps, which are LoadingLayout class name map and Indicator class name map.
NOTE: Parameters must go in order. First Parameter : loading layout / Second Parameter : indicator layout

Parameters:
loadingLayoutClazzNameMap LoadingLayout class names
indicatorLayoutClazzNameMap
 
 	public PullToRefreshNode(Map<StringStringloadingLayoutClazzNameMap,
 			Map<StringStringindicatorLayoutClazzNameMapMap<StringStringgoogleStyleViewLayoutClazzNameMapMap<StringStringgoogleStyleProgressLayoutClazzNameMap) {
 		Assert.notNull(loadingLayoutClazzNameMap"LoadingLayout Class Name Map");
 		Assert.notNull(indicatorLayoutClazzNameMap"Loading Layout Class Name Map");
 		this. = loadingLayoutClazzNameMap;
 		this. = indicatorLayoutClazzNameMap;
 		this. = googleStyleViewLayoutClazzNameMap;
 		this. = googleStyleProgressLayoutClazzNameMap;
 	}

Parameters:
layoutCode LoadingLayout layout code
Returns:
LoadingLayout class name
 
 	public String getIndicatorLayoutClazzName(String layoutCode) {
 		return .get(layoutCode);
 	}

Parameters:
layoutCode LoadingLayout layout code
Returns:
LoadingLayout class name
 
 	public String getLoadingLayoutClazzName(String layoutCode) {
 		return .get(layoutCode);
 	}

Parameters:
layoutCode GoogleStyleViewLayout layout code
Returns:
GoogleStyleViewLayout class name
 	
 	}

Parameters:
layoutCode GoogleStyleProgressLayout layout code
Returns:
GoogleStyleProgressLayout class name
 	
 	}		
Add an information from other PullToRefreshNode instance

Parameters:
extendedNode Other PullToRefresNode to be combined
 
 	public void extendProperties(PullToRefreshNode extendedNode) {
 		Assert.notNull(extendedNode"Extended Node");
		Map<StringStringindicatorMap = extendedNode.indicatorLayoutClazzNameMap;
		Map<StringStringloadingMap = extendedNode.loadingLayoutClazzNameMap;
		Map<StringStringgoogleStyleViewMap = extendedNode.googleStyleViewLayoutClazzNameMap;
		Map<StringStringgoogleStyleProgressMap = extendedNode.googleStyleProgressLayoutClazzNameMap;
	}
New to GrepCode? Check out our FAQ X