aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/peer
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2000-07-12 03:32:07 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2000-07-12 04:32:07 +0100
commitc7a136d3ef16cf20fcd5314036508e31870b4849 (patch)
treed9865dd4f3595d22c9fd5c93cc63eb0b226278d6 /libjava/java/awt/peer
parent406a65d0db1eb80f45a7a3bf8c85f534e1a3960a (diff)
downloadgcc-c7a136d3ef16cf20fcd5314036508e31870b4849.zip
gcc-c7a136d3ef16cf20fcd5314036508e31870b4849.tar.gz
gcc-c7a136d3ef16cf20fcd5314036508e31870b4849.tar.bz2
Big AWT patch.
From-SVN: r34976
Diffstat (limited to 'libjava/java/awt/peer')
-rw-r--r--libjava/java/awt/peer/ButtonPeer.java15
-rw-r--r--libjava/java/awt/peer/CanvasPeer.java13
-rw-r--r--libjava/java/awt/peer/CheckboxMenuItemPeer.java15
-rw-r--r--libjava/java/awt/peer/CheckboxPeer.java16
-rw-r--r--libjava/java/awt/peer/ChoicePeer.java18
-rw-r--r--libjava/java/awt/peer/ComponentPeer.java49
-rw-r--r--libjava/java/awt/peer/ContainerPeer.java12
-rw-r--r--libjava/java/awt/peer/DialogPeer.java15
-rw-r--r--libjava/java/awt/peer/FileDialogPeer.java18
-rw-r--r--libjava/java/awt/peer/FontPeer.java13
-rw-r--r--libjava/java/awt/peer/FramePeer.java12
-rw-r--r--libjava/java/awt/peer/LabelPeer.java15
-rw-r--r--libjava/java/awt/peer/LightweightPeer.java13
-rw-r--r--libjava/java/awt/peer/ListPeer.java28
-rw-r--r--libjava/java/awt/peer/MenuBarPeer.java18
-rw-r--r--libjava/java/awt/peer/MenuComponentPeer.java14
-rw-r--r--libjava/java/awt/peer/MenuItemPeer.java17
-rw-r--r--libjava/java/awt/peer/MenuPeer.java18
-rw-r--r--libjava/java/awt/peer/PanelPeer.java13
-rw-r--r--libjava/java/awt/peer/PopupMenuPeer.java16
-rw-r--r--libjava/java/awt/peer/ScrollPanePeer.java21
-rw-r--r--libjava/java/awt/peer/ScrollbarPeer.java16
-rw-r--r--libjava/java/awt/peer/TextAreaPeer.java23
-rw-r--r--libjava/java/awt/peer/TextComponentPeer.java21
-rw-r--r--libjava/java/awt/peer/TextFieldPeer.java21
-rw-r--r--libjava/java/awt/peer/WindowPeer.java10
26 files changed, 435 insertions, 25 deletions
diff --git a/libjava/java/awt/peer/ButtonPeer.java b/libjava/java/awt/peer/ButtonPeer.java
new file mode 100644
index 0000000..d4d8034
--- /dev/null
+++ b/libjava/java/awt/peer/ButtonPeer.java
@@ -0,0 +1,15 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface ButtonPeer extends ComponentPeer
+{
+ void setLabel(String label);
+}
+
diff --git a/libjava/java/awt/peer/CanvasPeer.java b/libjava/java/awt/peer/CanvasPeer.java
new file mode 100644
index 0000000..67c4055
--- /dev/null
+++ b/libjava/java/awt/peer/CanvasPeer.java
@@ -0,0 +1,13 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface CanvasPeer extends ComponentPeer
+{
+}
diff --git a/libjava/java/awt/peer/CheckboxMenuItemPeer.java b/libjava/java/awt/peer/CheckboxMenuItemPeer.java
new file mode 100644
index 0000000..42c6c8f
--- /dev/null
+++ b/libjava/java/awt/peer/CheckboxMenuItemPeer.java
@@ -0,0 +1,15 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface CheckboxMenuItemPeer extends MenuItemPeer
+{
+ void setState(boolean state);
+}
+
diff --git a/libjava/java/awt/peer/CheckboxPeer.java b/libjava/java/awt/peer/CheckboxPeer.java
new file mode 100644
index 0000000..b27b2cf
--- /dev/null
+++ b/libjava/java/awt/peer/CheckboxPeer.java
@@ -0,0 +1,16 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface CheckboxPeer extends ComponentPeer
+{
+ void setCheckboxGroup(java.awt.CheckboxGroup group);
+ void setLabel(String label);
+ void setState(boolean state);
+}
diff --git a/libjava/java/awt/peer/ChoicePeer.java b/libjava/java/awt/peer/ChoicePeer.java
new file mode 100644
index 0000000..f100615
--- /dev/null
+++ b/libjava/java/awt/peer/ChoicePeer.java
@@ -0,0 +1,18 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface ChoicePeer extends ComponentPeer
+{
+ void add(String item, int index);
+ void addItem(String item, int index);
+ void remove(int index);
+ void select(int index);
+}
+
diff --git a/libjava/java/awt/peer/ComponentPeer.java b/libjava/java/awt/peer/ComponentPeer.java
index 806b962..883d2b3 100644
--- a/libjava/java/awt/peer/ComponentPeer.java
+++ b/libjava/java/awt/peer/ComponentPeer.java
@@ -1,23 +1,48 @@
-/* Copyright (C) 1999 Free Software Foundation
+/* Copyright (C) 2000 Free Software Foundation
- This file is part of libjava.
+ This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
-Libjava License. Please consult the file "LIBJAVA_LICENSE" for
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
package java.awt.peer;
-import java.awt.*;
-/* A very incomplete placeholder. */
+import java.awt.*;
+import java.awt.image.*;
public interface ComponentPeer
{
- public abstract Toolkit getToolkit ();
-
- public Dimension getMinimumSize ();
-
- public Dimension getPreferredSize ();
-
- public void setBounds (int x, int y, int w, int h);
+ int checkImage(Image img, int width, int height, ImageObserver o);
+ Image createImage(ImageProducer prod);
+ Image createImage(int width, int height);
+ void disable();
+ void dispose();
+ void enable();
+ ColorModel getColorModel();
+ FontMetrics getFontMetrics(Font f);
+ Graphics getGraphics();
+ Point getLocationOnScreen();
+ Dimension getMinimumSize();
+ Dimension getPreferredSize();
+ Toolkit getToolkit();
+ void handleEvent(AWTEvent e);
+ void hide();
+ boolean isFocusTraversable();
+ Dimension minimumSize();
+ Dimension preferredSize();
+ void paint(Graphics graphics);
+ boolean prepareImage(Image img, int width, int height, ImageObserver o);
+ void print(Graphics graphics);
+ void repaint(long tm, int x, int y, int width, int height);
+ void requestFocus();
+ void reshape(int x, int y, int width, int height);
+ void setBackground(Color color);
+ void setBounds(int x, int y, int width, int height);
+ void setCursor(Cursor cursor);
+ void setEnabled(boolean enabled);
+ void setFont(Font font);
+ void setForeground(Color color);
+ void setVisible(boolean visible);
+ void show();
}
diff --git a/libjava/java/awt/peer/ContainerPeer.java b/libjava/java/awt/peer/ContainerPeer.java
index c8e459a..8f1235c 100644
--- a/libjava/java/awt/peer/ContainerPeer.java
+++ b/libjava/java/awt/peer/ContainerPeer.java
@@ -1,15 +1,19 @@
-/* Copyright (C) 1999 Free Software Foundation
+/* Copyright (C) 2000 Free Software Foundation
- This file is part of libjava.
+ This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
-Libjava License. Please consult the file "LIBJAVA_LICENSE" for
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
package java.awt.peer;
-/* A very incomplete placeholder. */
+import java.awt.Insets;
public interface ContainerPeer extends ComponentPeer
{
+ Insets insets();
+ Insets getInsets();
+ void beginValidate();
+ void endValidate();
}
diff --git a/libjava/java/awt/peer/DialogPeer.java b/libjava/java/awt/peer/DialogPeer.java
new file mode 100644
index 0000000..009410f
--- /dev/null
+++ b/libjava/java/awt/peer/DialogPeer.java
@@ -0,0 +1,15 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface DialogPeer extends WindowPeer
+{
+ void setResizable(boolean resizeable);
+ void setTitle(String title);
+}
diff --git a/libjava/java/awt/peer/FileDialogPeer.java b/libjava/java/awt/peer/FileDialogPeer.java
new file mode 100644
index 0000000..c378f10
--- /dev/null
+++ b/libjava/java/awt/peer/FileDialogPeer.java
@@ -0,0 +1,18 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+import java.io.FilenameFilter;
+
+public interface FileDialogPeer extends DialogPeer
+{
+ void setDirectory(String dir);
+ void setFile(String file);
+ void setFilenameFilter(FilenameFilter filter);
+}
diff --git a/libjava/java/awt/peer/FontPeer.java b/libjava/java/awt/peer/FontPeer.java
new file mode 100644
index 0000000..2a65a38
--- /dev/null
+++ b/libjava/java/awt/peer/FontPeer.java
@@ -0,0 +1,13 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface FontPeer
+{
+}
diff --git a/libjava/java/awt/peer/FramePeer.java b/libjava/java/awt/peer/FramePeer.java
index e68a17f..c47b0f5 100644
--- a/libjava/java/awt/peer/FramePeer.java
+++ b/libjava/java/awt/peer/FramePeer.java
@@ -1,16 +1,20 @@
-/* Copyright (C) 1999 Free Software Foundation
+/* Copyright (C) 2000 Free Software Foundation
- This file is part of libjava.
+ This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
-Libjava License. Please consult the file "LIBJAVA_LICENSE" for
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
package java.awt.peer;
-/* A very incomplete placeholder. */
+import java.awt.Image;
+import java.awt.MenuBar;
public interface FramePeer extends WindowPeer
{
+ void setIconImage(Image image);
+ void setMenuBar(MenuBar mb);
+ void setResizable(boolean resizable);
void setTitle(String title);
}
diff --git a/libjava/java/awt/peer/LabelPeer.java b/libjava/java/awt/peer/LabelPeer.java
new file mode 100644
index 0000000..4d32b79
--- /dev/null
+++ b/libjava/java/awt/peer/LabelPeer.java
@@ -0,0 +1,15 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface LabelPeer extends ComponentPeer
+{
+ void setAlignment(int alignment);
+ void setText(String text);
+}
diff --git a/libjava/java/awt/peer/LightweightPeer.java b/libjava/java/awt/peer/LightweightPeer.java
new file mode 100644
index 0000000..af3c132
--- /dev/null
+++ b/libjava/java/awt/peer/LightweightPeer.java
@@ -0,0 +1,13 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface LightweightPeer extends ComponentPeer
+{
+}
diff --git a/libjava/java/awt/peer/ListPeer.java b/libjava/java/awt/peer/ListPeer.java
new file mode 100644
index 0000000..a334e38
--- /dev/null
+++ b/libjava/java/awt/peer/ListPeer.java
@@ -0,0 +1,28 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+import java.awt.Dimension;
+
+public interface ListPeer extends ComponentPeer
+{
+ void add(String item, int index);
+ void addItem(String item, int index);
+ void clear();
+ void delItems(int start_index, int end_index);
+ void deselect(int index);
+ int[] getSelectedIndexes();
+ void makeVisible(int index);
+ Dimension minimumSize(int size);
+ Dimension preferredSize(int size);
+ void removeAll();
+ void select(int index);
+ void setMultipleMode(boolean multipleMode);
+ void setMultipleSelections(boolean multipleSelections);
+}
diff --git a/libjava/java/awt/peer/MenuBarPeer.java b/libjava/java/awt/peer/MenuBarPeer.java
new file mode 100644
index 0000000..e660ba2
--- /dev/null
+++ b/libjava/java/awt/peer/MenuBarPeer.java
@@ -0,0 +1,18 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+import java.awt.Menu;
+
+public interface MenuBarPeer extends MenuComponentPeer
+{
+ void addHelpMenu(Menu menu);
+ void addMenu(Menu menu);
+ void delMenu(int index);
+}
diff --git a/libjava/java/awt/peer/MenuComponentPeer.java b/libjava/java/awt/peer/MenuComponentPeer.java
new file mode 100644
index 0000000..080f9ea
--- /dev/null
+++ b/libjava/java/awt/peer/MenuComponentPeer.java
@@ -0,0 +1,14 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface MenuComponentPeer
+{
+ void dispose();
+}
diff --git a/libjava/java/awt/peer/MenuItemPeer.java b/libjava/java/awt/peer/MenuItemPeer.java
new file mode 100644
index 0000000..555a38b
--- /dev/null
+++ b/libjava/java/awt/peer/MenuItemPeer.java
@@ -0,0 +1,17 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface MenuItemPeer extends MenuComponentPeer
+{
+ void disable();
+ void enable();
+ void setEnabled(boolean enabled);
+ void setLabel(String text);
+}
diff --git a/libjava/java/awt/peer/MenuPeer.java b/libjava/java/awt/peer/MenuPeer.java
new file mode 100644
index 0000000..eca98dc
--- /dev/null
+++ b/libjava/java/awt/peer/MenuPeer.java
@@ -0,0 +1,18 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+import java.awt.MenuItem;
+
+public interface MenuPeer extends MenuItemPeer
+{
+ void addItem(MenuItem item);
+ void addSeparator();
+ void delItem(int index);
+}
diff --git a/libjava/java/awt/peer/PanelPeer.java b/libjava/java/awt/peer/PanelPeer.java
new file mode 100644
index 0000000..13b0e90
--- /dev/null
+++ b/libjava/java/awt/peer/PanelPeer.java
@@ -0,0 +1,13 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface PanelPeer extends ContainerPeer
+{
+}
diff --git a/libjava/java/awt/peer/PopupMenuPeer.java b/libjava/java/awt/peer/PopupMenuPeer.java
new file mode 100644
index 0000000..e0b3980
--- /dev/null
+++ b/libjava/java/awt/peer/PopupMenuPeer.java
@@ -0,0 +1,16 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+import java.awt.Event;
+
+public interface PopupMenuPeer extends MenuPeer
+{
+ void show(Event e);
+}
diff --git a/libjava/java/awt/peer/ScrollPanePeer.java b/libjava/java/awt/peer/ScrollPanePeer.java
new file mode 100644
index 0000000..fe300e4
--- /dev/null
+++ b/libjava/java/awt/peer/ScrollPanePeer.java
@@ -0,0 +1,21 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+import java.awt.Adjustable;
+
+public interface ScrollPanePeer extends ContainerPeer
+{
+ void childResized(int width, int height);
+ int getHScrollbarHeight();
+ int getVScrollbarWidth();
+ void setScrollPosition(int x, int y);
+ void setUnitIncrement(Adjustable adj, int increment);
+ void setValue(Adjustable adj, int value);
+}
diff --git a/libjava/java/awt/peer/ScrollbarPeer.java b/libjava/java/awt/peer/ScrollbarPeer.java
new file mode 100644
index 0000000..3981c22
--- /dev/null
+++ b/libjava/java/awt/peer/ScrollbarPeer.java
@@ -0,0 +1,16 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface ScrollbarPeer extends ComponentPeer
+{
+ void setLineIncrement(int increment);
+ void setPageIncrement(int increment);
+ void setValues(int value, int visible, int minimum, int maximum);
+}
diff --git a/libjava/java/awt/peer/TextAreaPeer.java b/libjava/java/awt/peer/TextAreaPeer.java
new file mode 100644
index 0000000..ce5a294
--- /dev/null
+++ b/libjava/java/awt/peer/TextAreaPeer.java
@@ -0,0 +1,23 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+import java.awt.Dimension;
+
+public interface TextAreaPeer extends TextComponentPeer
+{
+ Dimension getMinimumSize(int rows, int columns);
+ Dimension getPreferredSize(int rows, int columns);
+ void insert(String text, int pos);
+ void insertText(String text, int pos);
+ Dimension minimumSize(int rows, int cols);
+ Dimension preferredSize(int rows, int cols);
+ void replaceRange(String text, int start, int end);
+ void replaceText(String text, int start, int end);
+}
diff --git a/libjava/java/awt/peer/TextComponentPeer.java b/libjava/java/awt/peer/TextComponentPeer.java
new file mode 100644
index 0000000..ba4ce1d
--- /dev/null
+++ b/libjava/java/awt/peer/TextComponentPeer.java
@@ -0,0 +1,21 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+public interface TextComponentPeer extends ComponentPeer
+{
+ int getCaretPosition();
+ int getSelectionEnd();
+ int getSelectionStart();
+ String getText();
+ void select(int start, int end);
+ void setCaretPosition(int pos);
+ void setEditable(boolean editable);
+ void setText(String text);
+}
diff --git a/libjava/java/awt/peer/TextFieldPeer.java b/libjava/java/awt/peer/TextFieldPeer.java
new file mode 100644
index 0000000..cf4d675
--- /dev/null
+++ b/libjava/java/awt/peer/TextFieldPeer.java
@@ -0,0 +1,21 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.awt.peer;
+
+import java.awt.Dimension;
+
+public interface TextFieldPeer extends TextComponentPeer
+{
+ Dimension getMinimumSize(int columns);
+ Dimension getPreferredSize(int columns);
+ Dimension minimumSize(int columns);
+ Dimension preferredSize(int columns);
+ void setEchoChar(char echo);
+ void setEchoCharacter(char echo);
+}
diff --git a/libjava/java/awt/peer/WindowPeer.java b/libjava/java/awt/peer/WindowPeer.java
index 109992d..d805805 100644
--- a/libjava/java/awt/peer/WindowPeer.java
+++ b/libjava/java/awt/peer/WindowPeer.java
@@ -1,15 +1,15 @@
-/* Copyright (C) 1999 Free Software Foundation
+/* Copyright (C) 2000 Free Software Foundation
- This file is part of libjava.
+ This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
-Libjava License. Please consult the file "LIBJAVA_LICENSE" for
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
package java.awt.peer;
-/* A very incomplete placeholder. */
-
public interface WindowPeer extends ContainerPeer
{
+ void toBack();
+ void toFront();
}