You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by no...@apache.org on 2011/03/14 14:43:32 UTC

svn commit: r1081376 - in /pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer: component_explorer_window.bxml text_pane.bxml

Author: noelgrandin
Date: Mon Mar 14 13:43:32 2011
New Revision: 1081376

URL: http://svn.apache.org/viewvc?rev=1081376&view=rev
Log:
add TextPane to ComponentExplorer

Added:
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/text_pane.bxml
Modified:
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/component_explorer_window.bxml

Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/component_explorer_window.bxml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/component_explorer_window.bxml?rev=1081376&r1=1081375&r2=1081376&view=diff
==============================================================================
--- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/component_explorer_window.bxml (original)
+++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/component_explorer_window.bxml Mon Mar 14 13:43:32 2011
@@ -111,6 +111,12 @@ limitations under the License.
                                                 src="@text_area.bxml"
                                                 horizontalScrollBarPolicy="fill"
                                                 verticalScrollBarPolicy="fill_to_capacity"/>
+                                            <explorer:ComponentNode
+                                                text="TextPane"
+                                                icon="@../page_white.png"
+                                                src="@text_pane.bxml"
+                                                horizontalScrollBarPolicy="fill"
+                                                verticalScrollBarPolicy="fill_to_capacity"/>
                                         </content:TreeBranch>
                                         <content:TreeBranch
                                             text="%explorerPane.branches.separators"

Added: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/text_pane.bxml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/text_pane.bxml?rev=1081376&view=auto
==============================================================================
--- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/text_pane.bxml (added)
+++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/text_pane.bxml Mon Mar 14 13:43:32 2011
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License,
+Version 2.0 (the "License"); you may not use this file except in
+compliance with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<TextPane xmlns:bxml="http://pivot.apache.org/bxml"
+    xmlns:wtk="org.apache.pivot.wtk"
+    xmlns="org.apache.pivot.wtk">
+	<Document xmlns="org.apache.pivot.wtk.text">
+	    <Paragraph>Pivot is an open-source platform for building rich internet applications in Java. It combines the enhanced productivity and usability features of a modern RIA toolkit with the robustness of the industry-standard Java platform.</Paragraph>
+	    <Paragraph></Paragraph>
+	    <Paragraph>Pivot applications are written using a combination of Java and XML and can be run either as an applet or as a standalone (optionally offline) desktop application. While Pivot was designed to be familiar to web developers who have experience building AJAX applications using HTML, CSS, and JavaScript, it provides a much richer set of standard widgets than HTML, and allows developers to create sophisticated user experiences much more quickly and easily. Pivot will also seem familiar to Swing developers, as both Swing and Pivot are based on Java2D and employ a model-view-controller (MVC) architecture to separate component data from presentation. However, Pivot includes additional features that make building modern GUI applications much easier, including declarative UI, data binding, effects and transitions, and web services integration.</Paragraph>
+	    <Paragraph>ABCD</Paragraph>
+	    <Paragraph></Paragraph>
+	    <Paragraph>1234</Paragraph>
+	    <Paragraph font="Arial BOLD 24">abcd</Paragraph>
+	    <Paragraph font="Arial ITALIC 24">abcd</Paragraph>
+	    <Paragraph foregroundColor="red">abcd</Paragraph>
+	    <Paragraph backgroundColor="red">abcd</Paragraph>
+	    <Paragraph>abcd</Paragraph>
+	    <NumberedList style="decimal">
+	      <List.Item>
+	        <Paragraph>item1</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item2</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item3</Paragraph>
+	      </List.Item>
+	    </NumberedList>
+	    <NumberedList style="lower_alpha">
+	      <List.Item>
+	        <Paragraph>item1</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item2</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item3</Paragraph>
+	      </List.Item>
+	    </NumberedList>
+	    <NumberedList style="upper_alpha">
+	      <List.Item>
+	        <Paragraph>item1</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item2</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item3</Paragraph>
+	      </List.Item>
+	    </NumberedList>
+	    <NumberedList style="lower_roman">
+	      <List.Item>
+	        <Paragraph>item1</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item2</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item3</Paragraph>
+	      </List.Item>
+	    </NumberedList>
+	    <NumberedList style="upper_roman">
+	      <List.Item>
+	        <Paragraph>item1</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item2</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item3</Paragraph>
+	      </List.Item>
+	    </NumberedList>
+	    <BulletedList style="CIRCLE">
+	      <List.Item>
+	        <Paragraph>item1</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item2</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item3</Paragraph>
+	      </List.Item>
+	    </BulletedList>
+	    <BulletedList style="CIRCLE_OUTLINE">
+	      <List.Item>
+	        <Paragraph>item1</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item2</Paragraph>
+	      </List.Item>
+	      <List.Item>
+	        <Paragraph>item3</Paragraph>
+	      </List.Item>
+	    </BulletedList>
+	</Document>
+</TextPane>
+