mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-23 18:59:50 +08:00
e0a339f785
* java/awt/BorderLayout.java (BorderLayout()): New constructor. * java/awt/Frame.java (Frame): Pass `null' to Window constructor. * java/awt/Window.java (addNotify): Wrote. (addWindowListener): Wrote. (getLocale): Wrote. (getWarningString): Wrote. (processEvent): Wrote. (processWindowEvent): Wrote. (removeWindowListener): Wrote. (show): Call validate(), setVisible(). (toBack): Wrote. (toFront): Wrote. * java/awt/Toolkit.java (createWindow): Declare. * java/awt/Frame.java (addNotify): Use getToolkit to find toolkit. * java/awt/Component.java (invalidate): Wrote. (isValid): Wrote. (getToolkit): Wrote. * java/awt/Container.java (addContainerListener): Removed unnecessary cast. (removeContainerListener): Likewise. (addImpl): Wrote. (add(Component)): Use it. (add(String,Component)): Likewise. (add(Component,int)): Likewise. (add(Component,Object)): Likewise. (add(Component,Object,int)): Likewise. (doLayout): Wrote. (getAlignmentX): Wrote. (getAlignmentY): Wrote. (getComponentAt): Wrote. (getMaximumSize): Wrote. (invalidate): Wrote. (list(PrintStream,int)): Wrote. (list(PrintWriter,int)): Wrote. (getMinimumSize): Wrote. (getPreferredSize): Wrote. (printComponents): Wrote. (processContainerEvent): Look at containerListener, not componentListener. (remove): Added event processing and peer destruction. (removeAll): Use remove. (removeNotify): Wrote. (validate): Wrote. (validateTree): Wrote. * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists. * java/awt/Label.java (addNotify): Do nothing if peer exists. * java/awt/Container.java (addNotify): Don't create Container peer. * java/awt/Button.java (addNotify): Do nothing if peer exists. From-SVN: r35361
52 lines
1.3 KiB
Java
52 lines
1.3 KiB
Java
/* Copyright (C) 1999, 2000 Free Software Foundation
|
|
|
|
This file is part of libjava.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
|
|
details. */
|
|
|
|
package java.awt;
|
|
|
|
/* A very incomplete placeholder. */
|
|
|
|
public class BorderLayout implements LayoutManager2
|
|
{
|
|
int hgap;
|
|
int vgap;
|
|
|
|
public BorderLayout ()
|
|
{
|
|
this (0, 0);
|
|
}
|
|
|
|
public BorderLayout (int hgap, int vgap)
|
|
{
|
|
this.hgap = hgap;
|
|
this.vgap = vgap;
|
|
}
|
|
|
|
public void addLayoutComponent (String name, Component comp)
|
|
{ /* FIXME */ }
|
|
public void layoutContainer (Container parent)
|
|
{ /* FIXME */ }
|
|
public Dimension minimumLayoutSize (Container parent)
|
|
{ /* FIXME */ return null; }
|
|
public Dimension preferredLayoutSize (Container parent)
|
|
{ /* FIXME */ return null; }
|
|
public void removeLayoutComponent (Component comp)
|
|
{ /* FIXME */ }
|
|
|
|
public void addLayoutComponent (Component comp, Object constraints)
|
|
{ /* FIXME */ }
|
|
public float getLayoutAlignmentX (Container target)
|
|
{ /* FIXME */ return (float) 0.0; }
|
|
public float getLayoutAlignmentY (Container target)
|
|
{ /* FIXME */ return (float) 0.0; }
|
|
public void invalidateLayout (Container target)
|
|
{ /* FIXME */ }
|
|
public Dimension maximumLayoutSize (Container target)
|
|
{ /* FIXME */ return null; }
|
|
|
|
}
|