Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package de.xwic.etlgine.server.admin;
 
 import java.util.Stack;
 

Author(s):
lippisch
public class BreadCrumpControl extends Control {
	private final StackedContentContainer stack;

Parameters:
container
name
	public BreadCrumpControl(IControlContainer containerString nameStackedContentContainer stack) {
		super(containername);
		this. = stack;
			public void propertyChange(PropertyChangeEvent evt) {
			}
		});
	}

Goto the specified module.

Parameters:
name
	public void actionGoto(String name) {
		Stack<Stringlist = .getStack();
		while (list.size() > 1) {
			String topMost = list.peek();
			if (!topMost.equals(name)) {
else {
				break;
			}
		}
	}

Returns the name list.

Returns:
	public Stack<StringgetNameList() {
		return .getStack();
	}

Returns the title for the element.

Parameters:
name
Returns:
	public String getTitle(String name) {
		Control ctrl = .getControl(name);
		if (ctrl == null) {
			return "Not Found";
else if (ctrl instanceof BaseContentContainer) {
			return ((BaseContentContainer)ctrl).getTitle();
else {
			return name;
		}
	}
New to GrepCode? Check out our FAQ X