From 1ffa51f6c680cd0ab4049762d75ddf9b98c3bd23 Mon Sep 17 00:00:00 2001 From: Joonas Lehtinen Date: Mon, 18 Jun 2007 11:10:59 +0000 Subject: [PATCH] CustomLayout for featurebrowser svn changeset:1759/svn branch:trunk --- .../layout/featurebrowser-mainlayout.html | 376 ++++++++++-------- WebContent/theme/demo/layout/img/header.png | Bin 2598 -> 2389 bytes WebContent/theme/demo/layout/img/m_bg.png | Bin 5287 -> 4071 bytes WebContent/theme/demo/style.css | 15 - .../itmill/toolkit/demo/features/Feature.java | 6 +- .../toolkit/demo/features/FeatureBrowser.java | 50 +-- .../terminal/gwt/client/ui/ICustomLayout.java | 2 +- 7 files changed, 226 insertions(+), 223 deletions(-) diff --git a/WebContent/theme/demo/layout/featurebrowser-mainlayout.html b/WebContent/theme/demo/layout/featurebrowser-mainlayout.html index 69e9072bb8..d39d9cd3e6 100644 --- a/WebContent/theme/demo/layout/featurebrowser-mainlayout.html +++ b/WebContent/theme/demo/layout/featurebrowser-mainlayout.html @@ -4,15 +4,14 @@ -
-
-
+
+ +
+
puu
+
+ style="overflow: auto; position: absolute; top: 62px; left: 215px; "> @@ -22,192 +21,231 @@ - - -
-
- - - - - - -
-
-
-
Welcome to the IT Mill - Toolkit feature tour!
-
-
- - - - - - -
-
-
-
This - application lets you view and play with some features of IT - Mill Toolkit. Use menu on the left to select component.
-
- Note the Properties selection on the top right - corner. Click it open to access component properties and - feel free to edit properties at any time.
-
- The area that you are now reading is the component demo - area. Lower area from here contains component description, - API documentation and optional code sample. Note that not - all selections contain demo, only description and API - documentation is shown.
-
- You may also change application's theme from below the menu. - This example application is designed to work best with Demo - theme, other themes are for demonstration purposes only.
-
- IT Mill Toolkit enables you to construct complex Web - applications using plain Java, no knowledge of other Web - technologies such as XML, HTML, DOM, JavaScript or browser - differences is required.
-
- For more information, point your browser to www.itmill.com.
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
- - - - - - - - - - - - - - -
DescriptionPropertiesJavadocCode - Sample
-
-
-
- - - - - - -
-
- - - - -
-
-
-
-
-
-

Welcome

-
-
-
+ +
demo
+
-
-
-
-
-
This - area contains the selected component's description, list of - properties, javadoc and optional code sample. Start your tour now by - selecting features from the list on the left and remember to - experiment with the Properties panel located at the top right - corner area.
-
- IT Mill Toolkit version: 4.0.2
- Browser: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; - rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
-
-
+ +
+
tabs
-
-
-
-
- - + + + +
+
properties
+
+
+ style="overflow: hidden; position: absolute; bottom: 10px; left: 0pt; width: 200px; height: 50px;">
-
+ id="featurebrowser-control-left"> +
themes
- +
restart
+ +
+
+ style="overflow: hidden; position: absolute; width: 137px; height: 17px;" />
+ + + \ No newline at end of file diff --git a/WebContent/theme/demo/layout/img/header.png b/WebContent/theme/demo/layout/img/header.png index fa2582205ce524296b3fcee94c47e848fdc7634f..bf64ac4e176699b155720e847d1b596d6147d278 100644 GIT binary patch delta 2063 zcmV+q2=Mo&6x9-tBe7UM0e=7ibW%=J06^y0W&i*H0b)x>L;#2d9Y_EG010qNS#tmY z3ljhU3ljkVnw%H_000McNliru*9H;^F9FLO7H=3{o51^fB=xtR}d z=FN;P3j_jzKp+qZ1OkCTAP@)y0)apv5C{YUfj}S-2m}IwKp+qZ1OokZYTj>Fu^tOG zXp8rvt@}|XQG0R;E%F|8($45AK%1<8sy=3>)M?JWrPe-~&gkam12pF9Q0-(=)K<9G zv@6pVp$FRt-GABZ7JtdXOJLjkgFZJG2WRB8DBQBPs&osxQ8Q&`W{fGT^@BpqsEd3z$XH+Ye+=#jzWV-}jEjPZfms~yWt)m-TtcPm4B5qf3bKb5e*c^31*@z z&Z?hS20HpAVcG57;@ki79762i4}^4#2$j~H>b*kM;QFZgZAvGsNhZ@&eiSv)m&(S@ z-f)_GTF3dauboQ&z~F54jSg7HJ(%(5oL=Xa{?qReI-&<3O^p2f_yDbI7u;5<8eG*G zY(cA#tHNK!YJYWYEr&#w(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JcTHLb94Bc0JTgYL^hIgR_W34oMY{6f@i0gA?m{-=hD0a*1^ySQut*r+Z ze5_;7SxuXPjSMXx;bC@S`^1HNe^mUEcTrt&9a%!Mv}Uro8Jw$N+iPqOo$m79!7*}S z@ZWa1hIo>ni$5IBK$JyZA@3PN33~ht*mF6T3VE@UHM#3SSr>vPRxa#207$C-q4m04 SM*Z)70od6(U97eCPW}%oTXe1f diff --git a/WebContent/theme/demo/layout/img/m_bg.png b/WebContent/theme/demo/layout/img/m_bg.png index 35b0f3e3c84697312ba12c0273e16149d8a4f4b6..2d37f7ffae2b2f01efc54eee1fde1cf98e5b5c04 100644 GIT binary patch delta 4020 zcmWkxdpK0<7sj}hODDp1LgW^uJqSPLQqhElP8>z-b{eGUGK|9vG01(BRL4fBrpBe? zh;nL%nKBrcMun7I%FJloDvV3I`)z-G&$HIM*1OjC?dMtV_w7oH34_ZfD!UJP`4LuD zR>r1g3qp6&HzptYA|oRs8{>QMPnkXAZ%(c{B%=F1nJfi;56oFh_BcwBkx|*Ox@2Wa zN_8+$DaO;ApfsSUvDVV=^+#%ojLdJFJ@@VPqYiy~8~I?^eqHj3L&JYpiOfIe{#>C) zzC6?9t!og}K;udH9S3)~-`RvSvN$p*R=W-^4H^iGCMYdR9P?YGxp&`1>ooy z?WkA0x@`BIPDO5(O#8d{t)?bL{1QODxjVOMJKiYS`e=brL$jNI8H04Zt;pHRC+o!o zd8>`$h*o4x@W&%2tTu(KYE*UET!}mmZ4Ss~aH(=k}92p(^9O)Zx2jexIt-c6ox+etl>A`7@J!qTK@ zE!=kQa&Y^L>=U4`ht+Lv)|4SnwOnHu^02zd%~~?#<(8^1KmkU1i=-RGo0N{PaGP6Q zmt%x0L>6hDz6Kc3Avvu(Hm?wB_P*5Ltqf9uN~|HZnjJ}|ZQ6MWb?QR4fENzmYyzZO zDI6%=D^tj)q^79AX7TErFD{zNDsaS%0W|0PAY2LH^pCi*gpx{!cJEA~>7LXS!2(Of zM1V@jsLY^jnkt%iI$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/theme/demo/style.css +++ b/WebContent/theme/demo/style.css @@ -6,31 +6,16 @@ border: 0; } -#featurebrowser-properties { - width: 0px; - background: #f5f5f5; -} - #featurebrowser-divider { background-image: url(layout/img/tab_handle.png); } #featurebrowser-mainlayout { - background-color: white; background-image: url(layout/img/m_bg.png); background-repeat: no-repeat; } -#featurebrowser-tabs { - background: white; -} - -#featurebrowser-properties-toggler { - position: absolute; - top: 15px; -} - #featurebrowser-features { position: absolute; overflow: auto; diff --git a/src/com/itmill/toolkit/demo/features/Feature.java b/src/com/itmill/toolkit/demo/features/Feature.java index 1a8caeeabf..482ad724a8 100644 --- a/src/com/itmill/toolkit/demo/features/Feature.java +++ b/src/com/itmill/toolkit/demo/features/Feature.java @@ -139,8 +139,6 @@ public abstract class Feature extends CustomComponent { ts.addTab(l, "Code Sample", null); } - layout.addComponent(ts); - } /** Get the desctiption of the feature as XHTML fragment */ @@ -153,6 +151,10 @@ public abstract class Feature extends CustomComponent { return this.getClass().getName(); } + public TabSheet getTabSheet() { + return ts; + } + /** Get the name of the image file that will be put on description page */ protected String getImage() { return null; diff --git a/src/com/itmill/toolkit/demo/features/FeatureBrowser.java b/src/com/itmill/toolkit/demo/features/FeatureBrowser.java index de29dc9522..4c279d681a 100644 --- a/src/com/itmill/toolkit/demo/features/FeatureBrowser.java +++ b/src/com/itmill/toolkit/demo/features/FeatureBrowser.java @@ -43,11 +43,7 @@ public class FeatureBrowser extends CustomComponent implements private Feature currentFeature = null; - private OrderedLayout layout; - - private Button propertiesSelect; - - private OrderedLayout right; + private CustomLayout mainlayout; private PropertyPanel properties; @@ -71,16 +67,12 @@ public class FeatureBrowser extends CustomComponent implements features.setStyle("menu"); // Configure component layout - layout = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL); - layout.setStyle("featurebrowser-mainlayout"); - setCompositionRoot(layout); - OrderedLayout left = new OrderedLayout( - OrderedLayout.ORIENTATION_VERTICAL); - left.addComponent(features); - layout.addComponent(left); + mainlayout = new CustomLayout("featurebrowser-mainlayout"); + setCompositionRoot(mainlayout); + mainlayout.addComponent(features, "tree"); // Theme selector - left.addComponent(themeSelector); + mainlayout.addComponent(themeSelector, "themes"); themeSelector.addItem("demo"); themeSelector.addItem("corporate"); themeSelector.addItem("base"); @@ -91,7 +83,7 @@ public class FeatureBrowser extends CustomComponent implements // Restart button Button close = new Button("restart", getApplication(), "close"); close.setStyle("link"); - left.addComponent(close); + mainlayout.addComponent(close,"restart"); // Test component registerFeature("/Welcome", new IntroWelcome()); @@ -148,18 +140,12 @@ public class FeatureBrowser extends CustomComponent implements // Add demo component and tabs currentFeature = new IntroWelcome(); - layout.addComponent(currentFeature); + mainlayout.addComponent(currentFeature, "demo"); + mainlayout.addComponent(currentFeature.getTabSheet(), "tabsheet"); // Add properties - right = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL); - layout.addComponent(right); - - propertiesSelect = new Button("Show properties", this); - propertiesSelect.setSwitchMode(true); - right.addComponent(propertiesSelect); properties = currentFeature.getPropertyPanel(); - properties.setVisible(false); - right.addComponent(properties); + mainlayout.addComponent(properties, "properties"); } public void registerFeature(String path, Feature feature) { @@ -211,19 +197,14 @@ public class FeatureBrowser extends CustomComponent implements Property p = features.getContainerProperty(id, "feature"); Feature feature = p != null ? ((Feature) p.getValue()) : null; if (feature != null) { - layout.replaceComponent(currentFeature, feature); + mainlayout.removeComponent(currentFeature); + mainlayout.removeComponent(currentFeature.getTabSheet()); + mainlayout.addComponent(feature,"demo"); + mainlayout.addComponent(feature.getTabSheet(),"tabsheet"); currentFeature = feature; properties = feature.getPropertyPanel(); if (properties != null) { - Iterator i = right.getComponentIterator(); - i.next(); - PropertyPanel oldProps = (PropertyPanel) i.next(); - if (oldProps != null) - right.replaceComponent(oldProps, properties); - else - right.addComponent(properties); - properties.setVisible(((Boolean) propertiesSelect - .getValue()).booleanValue()); + mainlayout.addComponent(properties,"properties"); } getWindow() .setCaption( @@ -248,9 +229,6 @@ public class FeatureBrowser extends CustomComponent implements // ignored, should never happen } - if (properties != null) - properties.setVisible(((Boolean) propertiesSelect.getValue()) - .booleanValue()); } public void addComponent(Component c) { diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java index b2063972db..10279afd91 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java @@ -33,7 +33,7 @@ public class ICustomLayout extends SimplePanel implements Paintable, Layout { updateHTML(uidl, client); componentToWrapper.clear(); - + html.clear(); for (Iterator i = uidl.getChildIterator(); i.hasNext();) { UIDL uidlForChild = (UIDL) i.next(); if (uidlForChild.getTag().equals("location")) { -- 2.39.5