jncontainer.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 62 行
JAVA
62 行
package org.jnode.wt.components;
import org.jnode.wt.components.JNComponent;
import java.awt.peer.ContainerPeer;
import java.awt.Insets;
/**
* Abstract container of components.
*
* @author Ewout Prangsma (epr@users.sourceforge.net)
*/
public abstract class JNContainer extends JNComponent implements ContainerPeer{
private java.awt.Insets insets = null;
/**
* Gets the component at the given location.
* @param x X coordinate relative to this container.
* @param y Y coordinate relative to this container.
* @return The component at the given location.
*/
public abstract JNComponent getComponentAt(int x, int y);
public java.awt.Insets getInsets() {
if (null == insets) {
insets = new java.awt.Insets(0, 0, 0, 0);
}
return insets;
}
public void setInsets(java.awt.Insets ins) {
insets = ins;
}
//*********** THE ContainerPeer interface
public void beginValidate() {
//TODO: implement it
}
public void endValidate() {
//TODO: implement it
}
public Insets insets() {
//TODO: implement it
return null;
}
public boolean isPaintPending(){
return false;
}
public void beginLayout(){
//TODO: implement it
}
public void endLayout(){
//TODO: implement it
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?