Java Code Examples for org.apache.wicket.Component.getBehaviors()

The following are Jave code examples for showing how to use getBehaviors() of the org.apache.wicket.Component class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: gitplex-mit   File:   Source Code and License Vote up 5 votes
public static void markLastVisibleChild(WebMarkupContainer container) {
	Component lastVisible = null;
	for (Component child: container) {
		for (Behavior behavior: child.getBehaviors()) {
			if (behavior instanceof LastVisibleAppender) {
		if (child.isVisible())
			lastVisible = child;
	if (lastVisible != null)
		lastVisible.add(new LastVisibleAppender("class", "last-visible").setSeparator(" "));