Revision: 37
http://swingme.svn.sourceforge.net/swingme/?rev=37&view=rev
Author: yuranet
Date: 2008-07-15 11:12:52 -0700 (Tue, 15 Jul 2008)
Log Message:
-----------
javadoc
Modified Paths:
--------------
SwingME/src/net/yura/mobile/gui/components/Panel.java
SwingME/src/net/yura/mobile/gui/components/Window.java
SwingME/src/net/yura/mobile/gui/layout/BorderLayout.java
SwingME/src/net/yura/mobile/gui/layout/Layout.java
Modified: SwingME/src/net/yura/mobile/gui/components/Panel.java
===================================================================
--- SwingME/src/net/yura/mobile/gui/components/Panel.java 2008-07-15 18:03:28 UTC (rev 36)
+++ SwingME/src/net/yura/mobile/gui/components/Panel.java 2008-07-15 18:12:52 UTC (rev 37)
@@ -169,10 +169,15 @@
// does nothing, but can be overridden
public void paintComponent(Graphics g) {}
- public void setPreferredSize(int w, int h) {
- preferredWidth = w;
- preferredHeight = h;
- }
+ /**
+ * @param w The preferred Width (can be -1 for no preference)
+ * @param h The preferred Height (can be -1 for no preference)
+ * @see javax.swing.JComponent#setPreferredSize(java.awt.Dimension) JComponent.setPreferredSize
+ */
+ public void setPreferredSize(int w, int h) {
+ preferredWidth = w;
+ preferredHeight = h;
+ }
/**
* works out the current size of this panel
Modified: SwingME/src/net/yura/mobile/gui/components/Window.java
===================================================================
--- SwingME/src/net/yura/mobile/gui/components/Window.java 2008-07-15 18:03:28 UTC (rev 36)
+++ SwingME/src/net/yura/mobile/gui/components/Window.java 2008-07-15 18:12:52 UTC (rev 37)
@@ -98,6 +98,9 @@
contentPane.revalidate();
}
+ /**
+ * @see java.awt.Window#pack() Window.pack
+ */
public void pack() {
contentPane.workoutSize();
Modified: SwingME/src/net/yura/mobile/gui/layout/BorderLayout.java
===================================================================
--- SwingME/src/net/yura/mobile/gui/layout/BorderLayout.java 2008-07-15 18:03:28 UTC (rev 36)
+++ SwingME/src/net/yura/mobile/gui/layout/BorderLayout.java 2008-07-15 18:12:52 UTC (rev 37)
@@ -136,8 +136,6 @@
break;
default:
if (h1<comp.getHeightWithBorder()) {
-
- System.out.println(comp.getHeightWithBorder()+"sdfsfd" + panel);
h1 = comp.getHeightWithBorder();
}
break;
Modified: SwingME/src/net/yura/mobile/gui/layout/Layout.java
===================================================================
--- SwingME/src/net/yura/mobile/gui/layout/Layout.java 2008-07-15 18:03:28 UTC (rev 36)
+++ SwingME/src/net/yura/mobile/gui/layout/Layout.java 2008-07-15 18:12:52 UTC (rev 37)
@@ -30,9 +30,15 @@
* @see java.awt.LayoutManager#layoutContainer(java.awt.Container) LayoutManager.layoutContainer
*/
void layoutPanel(Panel panel);
-
+
+ /**
+ * @see java.awt.LayoutManager#preferredLayoutSize(java.awt.Container) LayoutManager.preferredLayoutSize
+ */
int getPreferredHeight(Panel panel);
-
+
+ /**
+ * @see java.awt.LayoutManager#preferredLayoutSize(java.awt.Container) LayoutManager.preferredLayoutSize
+ */
int getPreferredWidth(Panel panel);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|