All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webswing.toolkit.WebContainerPeer Maven / Gradle / Ivy

There is a newer version: 20.2.4
Show newest version
package org.webswing.toolkit;

import java.awt.Container;
import java.awt.Insets;
import java.awt.peer.ContainerPeer;

import org.webswing.toolkit.util.Services;

abstract public class WebContainerPeer extends WebComponentPeer implements ContainerPeer {

	public WebContainerPeer(Container t) {
		super(t);
	}

	public Insets getInsets() {
		if (isUndecorated()) {
			return new Insets(0, 0, 0, 0);
		} else {
			return Services.getImageService().getWindowDecorationTheme().getInsets();
		}
	}
	
	public void beginValidate() {
	}

	public void endValidate() {

	}

	public void beginLayout() {
	}

	public void endLayout() {
	}

	public boolean isPaintPending() {
		return false;
	}

	public void restack() {
		throw new UnsupportedOperationException();
	}

	public boolean isRestackSupported() {
		return false;
	}

	public Insets insets() {
		return getInsets();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy