/**
* This method is called when the component is resized.
*
* @param event the <code>ComponentEvent</code> indicating the resize
*/
public void componentResized(ComponentEvent event)
{
if (applet != null)
{
ComponentListener[] l = applet.getComponentListeners();
for (int i = 0; i < l.length; i++)
l[i].componentResized(event);
}
}
java类java.awt.event.ComponentListener的实例源码
StandaloneAppletWindow.java 文件源码
项目:javify
阅读 21
收藏 0
点赞 0
评论 0
StandaloneAppletWindow.java 文件源码
项目:javify
阅读 25
收藏 0
点赞 0
评论 0
/**
* This method is called when the component is moved.
*
* @param event the <code>ComponentEvent</code> indicating the move
*/
public void componentMoved(ComponentEvent event)
{
if (applet != null)
{
ComponentListener[] l = applet.getComponentListeners();
for (int i = 0; i < l.length; i++)
l[i].componentMoved(event);
}
}
StandaloneAppletWindow.java 文件源码
项目:javify
阅读 25
收藏 0
点赞 0
评论 0
/**
* This method is called when the component is made visible.
*
* @param event the <code>ComponentEvent</code> indicating the visibility
*/
public void componentShown(ComponentEvent event)
{
if (applet != null)
{
ComponentListener[] l = applet.getComponentListeners();
for (int i = 0; i < l.length; i++)
l[i].componentShown(event);
}
}
StandaloneAppletWindow.java 文件源码
项目:javify
阅读 32
收藏 0
点赞 0
评论 0
/**
* This method is called when the component is hidden.
*
* @param event the <code>ComponentEvent</code> indicating the visibility
*/
public void componentHidden(ComponentEvent event)
{
if (applet != null)
{
ComponentListener[] l = applet.getComponentListeners();
for (int i = 0; i < l.length; i++)
l[i].componentHidden(event);
}
}
PluginAppletWindow.java 文件源码
项目:javify
阅读 25
收藏 0
点赞 0
评论 0
/**
* This method is called when the component is resized.
*
* @param event the <code>ComponentEvent</code> indicating the resize
*/
public void componentResized(ComponentEvent event)
{
if (applet != null)
{
ComponentListener[] l = applet.getComponentListeners();
for (int i = 0; i < l.length; i++)
l[i].componentResized(event);
}
}
PluginAppletWindow.java 文件源码
项目:javify
阅读 28
收藏 0
点赞 0
评论 0
/**
* This method is called when the component is moved.
*
* @param event the <code>ComponentEvent</code> indicating the move
*/
public void componentMoved(ComponentEvent event)
{
if (applet != null)
{
ComponentListener[] l = applet.getComponentListeners();
for (int i = 0; i < l.length; i++)
l[i].componentMoved(event);
}
}
PluginAppletWindow.java 文件源码
项目:javify
阅读 32
收藏 0
点赞 0
评论 0
/**
* This method is called when the component is made visible.
*
* @param event the <code>ComponentEvent</code> indicating the visibility
*/
public void componentShown(ComponentEvent event)
{
if (applet != null)
{
ComponentListener[] l = applet.getComponentListeners();
for (int i = 0; i < l.length; i++)
l[i].componentShown(event);
}
}
PluginAppletWindow.java 文件源码
项目:javify
阅读 19
收藏 0
点赞 0
评论 0
/**
* This method is called when the component is hidden.
*
* @param event the <code>ComponentEvent</code> indicating the visibility
*/
public void componentHidden(ComponentEvent event)
{
if (applet != null)
{
ComponentListener[] l = applet.getComponentListeners();
for (int i = 0; i < l.length; i++)
l[i].componentHidden(event);
}
}
FrameState.java 文件源码
项目:intellij-ce-playground
阅读 25
收藏 0
点赞 0
评论 0
private static FrameState findFrameState(@NotNull Component component) {
for (ComponentListener listener : component.getComponentListeners()) {
if (listener instanceof FrameState) {
return (FrameState)listener;
}
}
return null;
}
PopupListenerHandler.java 文件源码
项目:sqlpower-library
阅读 25
收藏 0
点赞 0
评论 0
/**
* Returns true if the {@link Popup} this class handles is visible. Since
* there is no available method in the {@link Popup} class to check whether
* it is visible, it checks if listeners are attached to the owning frame or
* glass pane instead.
*/
public boolean isPopupVisible() {
ComponentListener[] componentListeners = owningFrame.getComponentListeners();
if (Arrays.asList(componentListeners).contains(resizeListener)) {
return true;
}
MouseListener[] mouseListeners = glassPane.getMouseListeners();
if (Arrays.asList(mouseListeners).contains(clickListener)) {
return true;
}
return false;
}