From pivot-commits-returnann78@example.com Wed Apr 01 14:35:16 2009 Return-Path: <pivot-commits-returnann78@example.com> Delivered-To: ann78@example.com Received: (qmail 79990 invoked from network); 1 Apr 2009 14:35:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 14:35:16 -0000 Received: (qmail 44966 invoked by uid 500); 1 Apr 2009 14:35:16 -0000 Delivered-To: ann78@example.com Received: (qmail 44948 invoked by uid 500); 1 Apr 2009 14:35:16 -0000 Mailing-List: contact ann78@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:ann78@example.com> List-Unsubscribe: <mailto:ann78@example.com> List-Post: <mailto:ann78@example.com> List-Id: <pivot-commits.incubator.apache.org> Reply-To: ann78@example.com Delivered-To: mailing list ann78@example.com Received: (qmail 44938 invoked by uid 99); 1 Apr 2009 14:35:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 14:35:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 14:35:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A41D223889FD; Wed, 1 Apr 2009 14:34:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r760903 - in /incubator/pivot/trunk: demos/lib/ demos/src/pivot/demos/dom/ wtk/src/pivot/wtk/effects/ wtk/src/pivot/wtk/media/drawing/ wtk/src/pivot/wtk/skin/terra/ wtk/src/pivot/wtkx/ Date: Wed, 01 Apr 2009 14:34:32 -0000 To: ann78@example.com From: ann78@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <ann78@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: gbrown Date: Wed Apr 1 14:34:19 2009 New Revision: 760903 URL: http://svn.apache.org/viewvc?rev=760903&view=rev Log: Add IMClient demo. Added: incubator/pivot/trunk/demos/src/pivot/demos/dom/IMClient.java incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx incubator/pivot/trunk/wtk/src/pivot/wtk/effects/FadeTransition.java - copied, changed from r760897, incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/FadeTransition.java incubator/pivot/trunk/wtk/src/pivot/wtk/effects/SlideTransition.java - copied, changed from r760897, incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/SlideTransition.java incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Ellipse.java incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Polygon.java Removed: incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/FadeTransition.java incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/SlideTransition.java Modified: incubator/pivot/trunk/demos/lib/smack.jar incubator/pivot/trunk/demos/lib/smackx.jar incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java incubator/pivot/trunk/wtk/src/pivot/wtkx/WTKXSerializer.java Modified: incubator/pivot/trunk/demos/lib/smack.jar URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/lib/smack.jar?rev=760903&r1=760902&r2=760903&view=diff ============================================================================== Binary files - no diff available. Modified: incubator/pivot/trunk/demos/lib/smackx.jar URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/lib/smackx.jar?rev=760903&r1=760902&r2=760903&view=diff ============================================================================== Binary files - no diff available. Added: incubator/pivot/trunk/demos/src/pivot/demos/dom/IMClient.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/IMClient.java?rev=760903&view=auto ============================================================================== --- incubator/pivot/trunk/demos/src/pivot/demos/dom/IMClient.java (added) +++ incubator/pivot/trunk/demos/src/pivot/demos/dom/IMClient.java Wed Apr 1 14:34:19 2009 @@ -0,0 +1,217 @@ +/* + * Copyright (c) 2009 VMware, Inc. + * + * Licensed 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. + */ +package pivot.demos.dom; + +import org.jivesoftware.smack.ConnectionConfiguration; +import org.jivesoftware.smack.PacketListener; +import org.jivesoftware.smack.XMPPConnection; +import org.jivesoftware.smack.XMPPException; +import org.jivesoftware.smack.filter.PacketFilter; +import org.jivesoftware.smack.filter.PacketTypeFilter; +import org.jivesoftware.smack.packet.Message; +import org.jivesoftware.smack.packet.Packet; + +import pivot.collections.Dictionary; +import pivot.util.concurrent.Task; +import pivot.util.concurrent.TaskExecutionException; +import pivot.util.concurrent.TaskListener; +import pivot.wtk.Application; +import pivot.wtk.ApplicationContext; +import pivot.wtk.BrowserApplicationContext; +import pivot.wtk.Button; +import pivot.wtk.ButtonPressListener; +import pivot.wtk.CardPane; +import pivot.wtk.Component; +import pivot.wtk.ComponentKeyListener; +import pivot.wtk.Display; +import pivot.wtk.Form; +import pivot.wtk.Keyboard; +import pivot.wtk.Label; +import pivot.wtk.PushButton; +import pivot.wtk.TextInput; +import pivot.wtk.Window; +import pivot.wtk.effects.FadeTransition; +import pivot.wtk.effects.Transition; +import pivot.wtk.effects.TransitionListener; +import pivot.wtkx.WTKXSerializer; + +public class IMClient implements Application { + /** + * Task for asynchronously logging into Jabber. + * + * @author gbrown + */ + private class LoginTask extends Task<Void> { + public Void execute() throws TaskExecutionException { + try { + String domain = domainTextInput.getText(); + + ConnectionConfiguration connectionConfiguration = new ConnectionConfiguration(domain); + xmppConnection = new XMPPConnection(connectionConfiguration); + + String username = usernameTextInput.getText(); + String password = passwordTextInput.getText(); + xmppConnection.connect(); + xmppConnection.login(username, password); + } catch(XMPPException exception) { + throw new TaskExecutionException(exception); + } + + return null; + } + } + + private XMPPConnection xmppConnection = null; + + private Window window = null; + private CardPane cardPane = null; + private Form loginForm = null; + + private TextInput usernameTextInput; + private TextInput passwordTextInput; + private TextInput domainTextInput; + + private PushButton loginButton = null; + private Label errorMessageLabel = null; + + private Label messageLabel = null; + + private ApplicationContext.ScheduledCallback scheduledFadeCallback = null; + + public void startup(Display display, Dictionary<String, String> properties) + throws Exception { + WTKXSerializer wtkxSerializer = new WTKXSerializer(); + window = new Window((Component)wtkxSerializer.readObject(getClass().getResource("im_client.wtkx"))); + + cardPane = (CardPane)wtkxSerializer.getObjectByName("cardPane"); + loginForm = (Form)wtkxSerializer.getObjectByName("loginForm"); + + loginForm.getComponentKeyListeners().add(new ComponentKeyListener() { + public boolean keyTyped(Component component, char character) { + return false; + } + + public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) { + if (keyCode == Keyboard.KeyCode.ENTER) { + login(); + } + + return false; + } + + public boolean keyReleased(Component component, int keyCode, Keyboard.KeyLocation keyLocation) { + return false; + } + }); + + usernameTextInput = (TextInput)wtkxSerializer.getObjectByName("usernameTextInput"); + passwordTextInput = (TextInput)wtkxSerializer.getObjectByName("passwordTextInput"); + domainTextInput = (TextInput)wtkxSerializer.getObjectByName("domainTextInput"); + + loginButton = (PushButton)wtkxSerializer.getObjectByName("loginButton"); + loginButton.getButtonPressListeners().add(new ButtonPressListener() { + public void buttonPressed(final Button button) { + login(); + } + }); + + errorMessageLabel = (Label)wtkxSerializer.getObjectByName("errorMessageLabel"); + + messageLabel = (Label)wtkxSerializer.getObjectByName("messageLabel"); + + window.setMaximized(true); + window.open(display); + } + + public boolean shutdown(boolean optional) throws Exception { + return false; + } + + public void suspend() { + // No-op + } + + public void resume() { + // No-op + } + + private void login() { + if (usernameTextInput.getText().length() == 0) { + errorMessageLabel.setText("Username is required."); + } else if (passwordTextInput.getText().length() == 0) { + errorMessageLabel.setText("Password is required."); + } else if (domainTextInput.getText().length() == 0) { + errorMessageLabel.setText("Domain is required."); + } else { + LoginTask loginTask = new LoginTask(); + loginTask.execute(new TaskListener<Void>() { + public void taskExecuted(Task<Void> task) { + loginButton.setEnabled(true); + cardPane.setSelectedIndex(1); + listenForMessages(); + } + + public void executeFailed(Task<Void> task) { + loginButton.setEnabled(true); + errorMessageLabel.setText(task.getFault().getMessage()); + } + }); + + errorMessageLabel.setText(null); + loginButton.setEnabled(false); + } + } + + private void listenForMessages() { + PacketFilter filter = new PacketTypeFilter(Message.class); + + PacketListener packetListener = new PacketListener() { + public void processPacket(Packet packet) { + final Message message = (Message)packet; + + ApplicationContext.queueCallback(new Runnable() { + public void run() { + // Show the message text + String body = message.getBody(); + messageLabel.setText(body); + + // Notify the page that a message was received + BrowserApplicationContext.eval("messageReceived(\"" + body + "\");", IMClient.this); + + // Cancel any pending fade and schedule a new fade callback + if (scheduledFadeCallback != null) { + scheduledFadeCallback.cancel(); + } + + scheduledFadeCallback = ApplicationContext.scheduleCallback(new Runnable() { + public void run() { + FadeTransition fadeTransition = new FadeTransition(messageLabel, 500, 30); + + fadeTransition.start(new TransitionListener() { + public void transitionCompleted(Transition transition) { + messageLabel.setText(null); + } + }); + } + }, 2500); + } + }); + } + }; + + xmppConnection.addPacketListener(packetListener, filter); + } +} Added: incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html?rev=760903&view=auto ============================================================================== (empty) Added: incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html?rev=760903&view=auto ============================================================================== (empty) Added: incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx?rev=760903&view=auto ============================================================================== --- incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx (added) +++ incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx Wed Apr 1 14:34:19 2009 @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2009 VMware, Inc. + +Licensed 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. +--> + +<Border styles="{padding:8}" + xmlns:wtkx="http://incubator.apache.org/pivot/wtkx/1.1" + xmlns="pivot.wtk"> + <content> + <CardPane wtkx:id="cardPane" orientation="horizontal" selectedIndex="0"> + <Form wtkx:id="loginForm" styles="{fieldAlignment:'justify'}"> + <sections> + <Form.Section> + <TextInput wtkx:id="usernameTextInput" Form.name="Username" /> + <TextInput wtkx:id="passwordTextInput" Form.name="Password" password="true" /> + <TextInput wtkx:id="domainTextInput" Form.name="Domain"/> + <FlowPane> + <PushButton wtkx:id="loginButton" buttonData="Login"/> + </FlowPane> + <Label wtkx:id="errorMessageLabel" styles="{color:'#ff0000', wrapText:true}"/> + </Form.Section> + </sections> + </Form> + + <Border title="Messages" styles="{padding:4}"> + <content> + <Label wtkx:id="messageLabel" styles="{horizontalAlignment:'center', verticalAlignment:'center', wrapText:true}"/> + </content> + </Border> + </CardPane> + </content> +</Border> Copied: incubator/pivot/trunk/wtk/src/pivot/wtk/effects/FadeTransition.java (from r760897, incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/FadeTransition.java) URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/effects/FadeTransition.java?p2=incubator/pivot/trunk/wtk/src/pivot/wtk/effects/FadeTransition.java&p1=incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/FadeTransition.java&r1=760897&r2=760903&rev=760903&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/FadeTransition.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/effects/FadeTransition.java Wed Apr 1 14:34:19 2009 @@ -13,12 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package pivot.wtk.skin.terra; +package pivot.wtk.effects; import pivot.wtk.Component; -import pivot.wtk.effects.FadeDecorator; -import pivot.wtk.effects.Transition; -import pivot.wtk.effects.TransitionListener; /** * Fade transition class. Copied: incubator/pivot/trunk/wtk/src/pivot/wtk/effects/SlideTransition.java (from r760897, incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/SlideTransition.java) URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/effects/SlideTransition.java?p2=incubator/pivot/trunk/wtk/src/pivot/wtk/effects/SlideTransition.java&p1=incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/SlideTransition.java&r1=760897&r2=760903&rev=760903&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/SlideTransition.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/effects/SlideTransition.java Wed Apr 1 14:34:19 2009 @@ -13,13 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package pivot.wtk.skin.terra; +package pivot.wtk.effects; import pivot.wtk.Component; import pivot.wtk.Container; -import pivot.wtk.effects.Transition; -import pivot.wtk.effects.TransitionListener; -import pivot.wtk.effects.TranslationDecorator; import pivot.wtk.effects.easing.Easing; import pivot.wtk.effects.easing.Quadratic; Added: incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Ellipse.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Ellipse.java?rev=760903&view=auto ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Ellipse.java (added) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Ellipse.java Wed Apr 1 14:34:19 2009 @@ -0,0 +1,28 @@ +package pivot.wtk.media.drawing; + +import java.awt.Graphics2D; + +public class Ellipse extends Shape { + + @Override + public boolean contains(int x, int y) { + // TODO Auto-generated method stub + return false; + } + + public int getHeight() { + // TODO Auto-generated method stub + return 0; + } + + public int getWidth() { + // TODO Auto-generated method stub + return 0; + } + + public void paint(Graphics2D graphics) { + // TODO Auto-generated method stub + + } + +} Added: incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Polygon.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Polygon.java?rev=760903&view=auto ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Polygon.java (added) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Polygon.java Wed Apr 1 14:34:19 2009 @@ -0,0 +1,28 @@ +package pivot.wtk.media.drawing; + +import java.awt.Graphics2D; + +public class Polygon extends Shape { + + @Override + public boolean contains(int x, int y) { + // TODO Auto-generated method stub + return false; + } + + public int getHeight() { + // TODO Auto-generated method stub + return 0; + } + + public int getWidth() { + // TODO Auto-generated method stub + return 0; + } + + public void paint(Graphics2D graphics) { + // TODO Auto-generated method stub + + } + +} Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java?rev=760903&r1=760902&r2=760903&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java Wed Apr 1 14:34:19 2009 @@ -90,11 +90,14 @@ return null; } - public AffineTransform getTransform() { - // TODO - return null; - } - + /** + * TODO Subclasses should override this method to perform an inverse + * transformation and map to the untransformed coordinate space. + * + * @param x + * @param y + * @return + */ public abstract boolean contains(int x, int y); public Paint getFill() { @@ -180,4 +183,9 @@ public void setTranslateY(double translateY) { this.translateY = translateY; } + + public AffineTransform getTransform() { + // TODO + return null; + } } Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java?rev=760903&r1=760902&r2=760903&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java Wed Apr 1 14:34:19 2009 @@ -35,6 +35,7 @@ import pivot.wtk.Theme; import pivot.wtk.Window; import pivot.wtk.WindowStateListener; +import pivot.wtk.effects.FadeTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.CalendarButtonSkin; Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java?rev=760903&r1=760902&r2=760903&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java Wed Apr 1 14:34:19 2009 @@ -38,6 +38,7 @@ import pivot.wtk.Theme; import pivot.wtk.Window; import pivot.wtk.WindowStateListener; +import pivot.wtk.effects.FadeTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.ListButtonSkin; Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java?rev=760903&r1=760902&r2=760903&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java Wed Apr 1 14:34:19 2009 @@ -31,6 +31,7 @@ import pivot.wtk.Theme; import pivot.wtk.Window; import pivot.wtk.effects.DropShadowDecorator; +import pivot.wtk.effects.FadeTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.WindowSkin; Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java?rev=760903&r1=760902&r2=760903&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java Wed Apr 1 14:34:19 2009 @@ -32,6 +32,7 @@ import pivot.wtk.Theme; import pivot.wtk.Window; import pivot.wtk.effects.DropShadowDecorator; +import pivot.wtk.effects.SlideTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.WindowSkin; Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java?rev=760903&r1=760902&r2=760903&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java Wed Apr 1 14:34:19 2009 @@ -34,6 +34,7 @@ import pivot.wtk.TooltipListener; import pivot.wtk.Window; import pivot.wtk.effects.DropShadowDecorator; +import pivot.wtk.effects.FadeTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.WindowSkin; Modified: incubator/pivot/trunk/wtk/src/pivot/wtkx/WTKXSerializer.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtkx/WTKXSerializer.java?rev=760903&r1=760902&r2=760903&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtkx/WTKXSerializer.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtkx/WTKXSerializer.java Wed Apr 1 14:34:19 2009 @@ -142,6 +142,10 @@ public Object readObject(String resourceName) throws IOException, SerializationException { + if (resourceName == null) { + throw new IllegalArgumentException("resourceName is null."); + } + ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); URL location = classLoader.getResource(resourceName); @@ -154,6 +158,10 @@ } public Object readObject(URL location) throws IOException, SerializationException { + if (location == null) { + throw new IllegalArgumentException("location is null."); + } + this.location = location; return readObject(new BufferedInputStream(location.openStream())); } @@ -161,6 +169,10 @@ @SuppressWarnings("unchecked") public Object readObject(InputStream inputStream) throws IOException, SerializationException { + if (inputStream == null) { + throw new IllegalArgumentException("inputStream is null."); + } + Object object = null; // Clear any previous named objects and include serializers From pivot-commits-returnann78@example.com Wed Apr 01 15:00:34 2009 Return-Path: <pivot-commits-returnann78@example.com> Delivered-To: ann78@example.com Received: (qmail 95055 invoked from network); 1 Apr 2009 15:00:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 15:00:34 -0000 Received: (qmail 22035 invoked by uid 500); 1 Apr 2009 15:00:34 -0000 Delivered-To: ann78@example.com Received: (qmail 22018 invoked by uid 500); 1 Apr 2009 15:00:34 -0000 Mailing-List: contact ann78@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:ann78@example.com> List-Unsubscribe: <mailto:ann78@example.com> List-Post: <mailto:ann78@example.com> List-Id: <pivot-commits.incubator.apache.org> Reply-To: ann78@example.com Delivered-To: mailing list ann78@example.com Received: (qmail 22008 invoked by uid 99); 1 Apr 2009 15:00:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 15:00:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 15:00:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4EA4D238896D; Wed, 1 Apr 2009 15:00:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r760908 - in /incubator/pivot/branches/1.1: demos/lib/ demos/src/pivot/demos/dom/ wtk/src/pivot/wtk/effects/ wtk/src/pivot/wtk/media/drawing/ wtk/src/pivot/wtk/skin/terra/ wtk/src/pivot/wtkx/ Date: Wed, 01 Apr 2009 15:00:00 -0000 To: ann78@example.com From: ann78@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <ann78@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: tvolkert Date: Wed Apr 1 14:59:51 2009 New Revision: 760908 URL: http://svn.apache.org/viewvc?rev=760908&view=rev Log: Cross-port from trunk Added: incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/IMClient.java incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/dom_test.html incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/im_client.html incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/im_client.wtkx incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/FadeTransition.java incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/SlideTransition.java incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Ellipse.java incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Polygon.java Removed: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/FadeTransition.java incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/SlideTransition.java Modified: incubator/pivot/branches/1.1/demos/lib/smack.jar incubator/pivot/branches/1.1/demos/lib/smackx.jar incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Shape.java incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java incubator/pivot/branches/1.1/wtk/src/pivot/wtkx/WTKXSerializer.java Modified: incubator/pivot/branches/1.1/demos/lib/smack.jar URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/demos/lib/smack.jar?rev=760908&r1=760907&r2=760908&view=diff ============================================================================== Binary files - no diff available. Modified: incubator/pivot/branches/1.1/demos/lib/smackx.jar URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/demos/lib/smackx.jar?rev=760908&r1=760907&r2=760908&view=diff ============================================================================== Binary files - no diff available. Added: incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/IMClient.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/IMClient.java?rev=760908&view=auto ============================================================================== --- incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/IMClient.java (added) +++ incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/IMClient.java Wed Apr 1 14:59:51 2009 @@ -0,0 +1,217 @@ +/* + * Copyright (c) 2009 VMware, Inc. + * + * Licensed 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. + */ +package pivot.demos.dom; + +import org.jivesoftware.smack.ConnectionConfiguration; +import org.jivesoftware.smack.PacketListener; +import org.jivesoftware.smack.XMPPConnection; +import org.jivesoftware.smack.XMPPException; +import org.jivesoftware.smack.filter.PacketFilter; +import org.jivesoftware.smack.filter.PacketTypeFilter; +import org.jivesoftware.smack.packet.Message; +import org.jivesoftware.smack.packet.Packet; + +import pivot.collections.Dictionary; +import pivot.util.concurrent.Task; +import pivot.util.concurrent.TaskExecutionException; +import pivot.util.concurrent.TaskListener; +import pivot.wtk.Application; +import pivot.wtk.ApplicationContext; +import pivot.wtk.BrowserApplicationContext; +import pivot.wtk.Button; +import pivot.wtk.ButtonPressListener; +import pivot.wtk.CardPane; +import pivot.wtk.Component; +import pivot.wtk.ComponentKeyListener; +import pivot.wtk.Display; +import pivot.wtk.Form; +import pivot.wtk.Keyboard; +import pivot.wtk.Label; +import pivot.wtk.PushButton; +import pivot.wtk.TextInput; +import pivot.wtk.Window; +import pivot.wtk.effects.FadeTransition; +import pivot.wtk.effects.Transition; +import pivot.wtk.effects.TransitionListener; +import pivot.wtkx.WTKXSerializer; + +public class IMClient implements Application { + /** + * Task for asynchronously logging into Jabber. + * + * @author gbrown + */ + private class LoginTask extends Task<Void> { + public Void execute() throws TaskExecutionException { + try { + String domain = domainTextInput.getText(); + + ConnectionConfiguration connectionConfiguration = new ConnectionConfiguration(domain); + xmppConnection = new XMPPConnection(connectionConfiguration); + + String username = usernameTextInput.getText(); + String password = passwordTextInput.getText(); + xmppConnection.connect(); + xmppConnection.login(username, password); + } catch(XMPPException exception) { + throw new TaskExecutionException(exception); + } + + return null; + } + } + + private XMPPConnection xmppConnection = null; + + private Window window = null; + private CardPane cardPane = null; + private Form loginForm = null; + + private TextInput usernameTextInput; + private TextInput passwordTextInput; + private TextInput domainTextInput; + + private PushButton loginButton = null; + private Label errorMessageLabel = null; + + private Label messageLabel = null; + + private ApplicationContext.ScheduledCallback scheduledFadeCallback = null; + + public void startup(Display display, Dictionary<String, String> properties) + throws Exception { + WTKXSerializer wtkxSerializer = new WTKXSerializer(); + window = new Window((Component)wtkxSerializer.readObject(getClass().getResource("im_client.wtkx"))); + + cardPane = (CardPane)wtkxSerializer.getObjectByName("cardPane"); + loginForm = (Form)wtkxSerializer.getObjectByName("loginForm"); + + loginForm.getComponentKeyListeners().add(new ComponentKeyListener() { + public boolean keyTyped(Component component, char character) { + return false; + } + + public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) { + if (keyCode == Keyboard.KeyCode.ENTER) { + login(); + } + + return false; + } + + public boolean keyReleased(Component component, int keyCode, Keyboard.KeyLocation keyLocation) { + return false; + } + }); + + usernameTextInput = (TextInput)wtkxSerializer.getObjectByName("usernameTextInput"); + passwordTextInput = (TextInput)wtkxSerializer.getObjectByName("passwordTextInput"); + domainTextInput = (TextInput)wtkxSerializer.getObjectByName("domainTextInput"); + + loginButton = (PushButton)wtkxSerializer.getObjectByName("loginButton"); + loginButton.getButtonPressListeners().add(new ButtonPressListener() { + public void buttonPressed(final Button button) { + login(); + } + }); + + errorMessageLabel = (Label)wtkxSerializer.getObjectByName("errorMessageLabel"); + + messageLabel = (Label)wtkxSerializer.getObjectByName("messageLabel"); + + window.setMaximized(true); + window.open(display); + } + + public boolean shutdown(boolean optional) throws Exception { + return false; + } + + public void suspend() { + // No-op + } + + public void resume() { + // No-op + } + + private void login() { + if (usernameTextInput.getText().length() == 0) { + errorMessageLabel.setText("Username is required."); + } else if (passwordTextInput.getText().length() == 0) { + errorMessageLabel.setText("Password is required."); + } else if (domainTextInput.getText().length() == 0) { + errorMessageLabel.setText("Domain is required."); + } else { + LoginTask loginTask = new LoginTask(); + loginTask.execute(new TaskListener<Void>() { + public void taskExecuted(Task<Void> task) { + loginButton.setEnabled(true); + cardPane.setSelectedIndex(1); + listenForMessages(); + } + + public void executeFailed(Task<Void> task) { + loginButton.setEnabled(true); + errorMessageLabel.setText(task.getFault().getMessage()); + } + }); + + errorMessageLabel.setText(null); + loginButton.setEnabled(false); + } + } + + private void listenForMessages() { + PacketFilter filter = new PacketTypeFilter(Message.class); + + PacketListener packetListener = new PacketListener() { + public void processPacket(Packet packet) { + final Message message = (Message)packet; + + ApplicationContext.queueCallback(new Runnable() { + public void run() { + // Show the message text + String body = message.getBody(); + messageLabel.setText(body); + + // Notify the page that a message was received + BrowserApplicationContext.eval("messageReceived(\"" + body + "\");", IMClient.this); + + // Cancel any pending fade and schedule a new fade callback + if (scheduledFadeCallback != null) { + scheduledFadeCallback.cancel(); + } + + scheduledFadeCallback = ApplicationContext.scheduleCallback(new Runnable() { + public void run() { + FadeTransition fadeTransition = new FadeTransition(messageLabel, 500, 30); + + fadeTransition.start(new TransitionListener() { + public void transitionCompleted(Transition transition) { + messageLabel.setText(null); + } + }); + } + }, 2500); + } + }); + } + }; + + xmppConnection.addPacketListener(packetListener, filter); + } +} Added: incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/dom_test.html URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/dom_test.html?rev=760908&view=auto ============================================================================== (empty) Added: incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/im_client.html URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/im_client.html?rev=760908&view=auto ============================================================================== (empty) Added: incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/im_client.wtkx URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/im_client.wtkx?rev=760908&view=auto ============================================================================== --- incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/im_client.wtkx (added) +++ incubator/pivot/branches/1.1/demos/src/pivot/demos/dom/im_client.wtkx Wed Apr 1 14:59:51 2009 @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2009 VMware, Inc. + +Licensed 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. +--> + +<Border styles="{padding:8}" + xmlns:wtkx="http://incubator.apache.org/pivot/wtkx/1.1" + xmlns="pivot.wtk"> + <content> + <CardPane wtkx:id="cardPane" orientation="horizontal" selectedIndex="0"> + <Form wtkx:id="loginForm" styles="{fieldAlignment:'justify'}"> + <sections> + <Form.Section> + <TextInput wtkx:id="usernameTextInput" Form.name="Username" /> + <TextInput wtkx:id="passwordTextInput" Form.name="Password" password="true" /> + <TextInput wtkx:id="domainTextInput" Form.name="Domain"/> + <FlowPane> + <PushButton wtkx:id="loginButton" buttonData="Login"/> + </FlowPane> + <Label wtkx:id="errorMessageLabel" styles="{color:'#ff0000', wrapText:true}"/> + </Form.Section> + </sections> + </Form> + + <Border title="Messages" styles="{padding:4}"> + <content> + <Label wtkx:id="messageLabel" styles="{horizontalAlignment:'center', verticalAlignment:'center', wrapText:true}"/> + </content> + </Border> + </CardPane> + </content> +</Border> Added: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/FadeTransition.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/FadeTransition.java?rev=760908&view=auto ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/FadeTransition.java (added) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/FadeTransition.java Wed Apr 1 14:59:51 2009 @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2008 VMware, Inc. + * + * Licensed 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. + */ +package pivot.wtk.effects; + +import pivot.wtk.Component; + +/** + * Fade transition class. + * + * @author gbrown + */ +public class FadeTransition extends Transition { + private Component component; + private FadeDecorator fadeDecorator = new FadeDecorator(); + + public FadeTransition(Component component, int duration, int rate) { + super(duration, rate, false); + this.component = component; + } + + @Override + public void start(TransitionListener transitionListener) { + component.getDecorators().add(fadeDecorator); + + super.start(transitionListener); + } + + @Override + public void stop() { + component.getDecorators().remove(fadeDecorator); + + super.stop(); + } + + @Override + protected void update() { + fadeDecorator.setOpacity(1.0f - getPercentComplete()); + component.repaint(); + } +} Added: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/SlideTransition.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/SlideTransition.java?rev=760908&view=auto ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/SlideTransition.java (added) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/effects/SlideTransition.java Wed Apr 1 14:59:51 2009 @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2008 VMware, Inc. + * + * Licensed 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. + */ +package pivot.wtk.effects; + +import pivot.wtk.Component; +import pivot.wtk.Container; +import pivot.wtk.effects.easing.Easing; +import pivot.wtk.effects.easing.Quadratic; + +/** + * Slide transition class. + * + * @author gbrown + */ +public class SlideTransition extends Transition { + private Component component; + private int x0; + private int x1; + private int y0; + private int y1; + private boolean reverse; + + private int x; + private int y; + + private Easing easing = new Quadratic(); + private TranslationDecorator translationDecorator = new TranslationDecorator(true); + + public SlideTransition(Component component, int x0, int x1, int y0, int y1, + boolean reverse, int duration, int rate) { + super(duration, rate, false); + this.component = component; + this.x0 = x0; + this.x1 = x1; + this.y0 = y0; + this.y1 = y1; + this.reverse = reverse; + } + + public int getX() { + return x; + } + + public int getY() { + return y; + } + + @Override + public void start(TransitionListener transitionListener) { + component.getDecorators().add(translationDecorator); + super.start(transitionListener); + } + + @Override + public void stop() { + super.stop(); + component.getDecorators().remove(translationDecorator); + } + + @Override + protected void update() { + int elapsedTime = getElapsedTime(); + int duration = getDuration(); + + x = (int)(reverse ? easing.easeIn(elapsedTime, x0, x1 - x0, duration) + : easing.easeOut(elapsedTime, x0, x1 - x0, duration)); + + y = (int)(reverse ? easing.easeOut(elapsedTime, y0, y1 - y0, duration) + : easing.easeOut(elapsedTime, y0, y1 - y0, duration)); + + translationDecorator.setOffset(x, y); + + Container parent = component.getParent(); + if (parent != null) { + parent.repaint(component.getDecoratedBounds()); + } + } +} Added: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Ellipse.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Ellipse.java?rev=760908&view=auto ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Ellipse.java (added) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Ellipse.java Wed Apr 1 14:59:51 2009 @@ -0,0 +1,28 @@ +package pivot.wtk.media.drawing; + +import java.awt.Graphics2D; + +public class Ellipse extends Shape { + + @Override + public boolean contains(int x, int y) { + // TODO Auto-generated method stub + return false; + } + + public int getHeight() { + // TODO Auto-generated method stub + return 0; + } + + public int getWidth() { + // TODO Auto-generated method stub + return 0; + } + + public void paint(Graphics2D graphics) { + // TODO Auto-generated method stub + + } + +} Added: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Polygon.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Polygon.java?rev=760908&view=auto ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Polygon.java (added) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Polygon.java Wed Apr 1 14:59:51 2009 @@ -0,0 +1,28 @@ +package pivot.wtk.media.drawing; + +import java.awt.Graphics2D; + +public class Polygon extends Shape { + + @Override + public boolean contains(int x, int y) { + // TODO Auto-generated method stub + return false; + } + + public int getHeight() { + // TODO Auto-generated method stub + return 0; + } + + public int getWidth() { + // TODO Auto-generated method stub + return 0; + } + + public void paint(Graphics2D graphics) { + // TODO Auto-generated method stub + + } + +} Modified: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Shape.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Shape.java?rev=760908&r1=760907&r2=760908&view=diff ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Shape.java (original) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/media/drawing/Shape.java Wed Apr 1 14:59:51 2009 @@ -90,11 +90,14 @@ return null; } - public AffineTransform getTransform() { - // TODO - return null; - } - + /** + * TODO Subclasses should override this method to perform an inverse + * transformation and map to the untransformed coordinate space. + * + * @param x + * @param y + * @return + */ public abstract boolean contains(int x, int y); public Paint getFill() { @@ -180,4 +183,9 @@ public void setTranslateY(double translateY) { this.translateY = translateY; } + + public AffineTransform getTransform() { + // TODO + return null; + } } Modified: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java?rev=760908&r1=760907&r2=760908&view=diff ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java (original) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java Wed Apr 1 14:59:51 2009 @@ -35,6 +35,7 @@ import pivot.wtk.Theme; import pivot.wtk.Window; import pivot.wtk.WindowStateListener; +import pivot.wtk.effects.FadeTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.CalendarButtonSkin; @@ -151,7 +152,6 @@ calendarPopup.setContent(calendarBorder); } - @SuppressWarnings("unchecked") public int getPreferredWidth(int height) { CalendarButton calendarButton = (CalendarButton)getComponent(); Modified: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java?rev=760908&r1=760907&r2=760908&view=diff ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java (original) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraListButtonSkin.java Wed Apr 1 14:59:51 2009 @@ -38,6 +38,7 @@ import pivot.wtk.Theme; import pivot.wtk.Window; import pivot.wtk.WindowStateListener; +import pivot.wtk.effects.FadeTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.ListButtonSkin; @@ -159,7 +160,6 @@ listViewPopup.setContent(listViewBorder); } - @SuppressWarnings("unchecked") public int getPreferredWidth(int height) { ListButton listButton = (ListButton)getComponent(); List<?> listData = listButton.getListData(); Modified: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java?rev=760908&r1=760907&r2=760908&view=diff ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java (original) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraMenuPopupSkin.java Wed Apr 1 14:59:51 2009 @@ -31,6 +31,7 @@ import pivot.wtk.Theme; import pivot.wtk.Window; import pivot.wtk.effects.DropShadowDecorator; +import pivot.wtk.effects.FadeTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.WindowSkin; Modified: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java?rev=760908&r1=760907&r2=760908&view=diff ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java (original) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraSheetSkin.java Wed Apr 1 14:59:51 2009 @@ -32,6 +32,7 @@ import pivot.wtk.Theme; import pivot.wtk.Window; import pivot.wtk.effects.DropShadowDecorator; +import pivot.wtk.effects.SlideTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.WindowSkin; Modified: incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java?rev=760908&r1=760907&r2=760908&view=diff ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java (original) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtk/skin/terra/TerraTooltipSkin.java Wed Apr 1 14:59:51 2009 @@ -34,6 +34,7 @@ import pivot.wtk.TooltipListener; import pivot.wtk.Window; import pivot.wtk.effects.DropShadowDecorator; +import pivot.wtk.effects.FadeTransition; import pivot.wtk.effects.Transition; import pivot.wtk.effects.TransitionListener; import pivot.wtk.skin.WindowSkin; Modified: incubator/pivot/branches/1.1/wtk/src/pivot/wtkx/WTKXSerializer.java URL: http://svn.apache.org/viewvc/incubator/pivot/branches/1.1/wtk/src/pivot/wtkx/WTKXSerializer.java?rev=760908&r1=760907&r2=760908&view=diff ============================================================================== --- incubator/pivot/branches/1.1/wtk/src/pivot/wtkx/WTKXSerializer.java (original) +++ incubator/pivot/branches/1.1/wtk/src/pivot/wtkx/WTKXSerializer.java Wed Apr 1 14:59:51 2009 @@ -142,6 +142,10 @@ public Object readObject(String resourceName) throws IOException, SerializationException { + if (resourceName == null) { + throw new IllegalArgumentException("resourceName is null."); + } + ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); URL location = classLoader.getResource(resourceName); @@ -154,6 +158,10 @@ } public Object readObject(URL location) throws IOException, SerializationException { + if (location == null) { + throw new IllegalArgumentException("location is null."); + } + this.location = location; return readObject(new BufferedInputStream(location.openStream())); } @@ -161,6 +169,10 @@ @SuppressWarnings("unchecked") public Object readObject(InputStream inputStream) throws IOException, SerializationException { + if (inputStream == null) { + throw new IllegalArgumentException("inputStream is null."); + } + Object object = null; // Clear any previous named objects and include serializers From pivot-commits-returnann78@example.com Wed Apr 01 15:28:32 2009 Return-Path: <pivot-commits-returnann78@example.com> Delivered-To: ann78@example.com Received: (qmail 7668 invoked from network); 1 Apr 2009 15:28:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 15:28:32 -0000 Received: (qmail 798 invoked by uid 500); 1 Apr 2009 15:28:32 -0000 Delivered-To: ann78@example.com Received: (qmail 780 invoked by uid 500); 1 Apr 2009 15:28:32 -0000 Mailing-List: contact ann78@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:ann78@example.com> List-Unsubscribe: <mailto:ann78@example.com> List-Post: <mailto:ann78@example.com> List-Id: <pivot-commits.incubator.apache.org> Reply-To: ann78@example.com Delivered-To: mailing list ann78@example.com Received: (qmail 770 invoked by uid 99); 1 Apr 2009 15:28:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 15:28:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 15:28:30 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6BB2B23888E7; Wed, 1 Apr 2009 15:28:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r760921 - in /incubator/pivot/trunk: build.xml demos/src/pivot/demos/dom/dom_test.html demos/src/pivot/demos/dom/im_client.html demos/src/pivot/demos/dom/im_client.wtkx Date: Wed, 01 Apr 2009 15:28:09 -0000 To: ann78@example.com From: ann78@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <ann78@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: gbrown Date: Wed Apr 1 15:28:08 2009 New Revision: 760921 URL: http://svn.apache.org/viewvc?rev=760921&view=rev Log: Add HTML samples to deploy target. Modified: incubator/pivot/trunk/build.xml incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx Modified: incubator/pivot/trunk/build.xml URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/build.xml?rev=760921&r1=760920&r2=760921&view=diff ============================================================================== --- incubator/pivot/trunk/build.xml (original) +++ incubator/pivot/trunk/build.xml Wed Apr 1 15:28:08 2009 @@ -725,6 +725,8 @@ <!-- Demos --> <copy file="${folder.lib}/${ant.project.name}-charts.test.jar" todir="${folder.deploy}"/> <copy file="${folder.lib}/${ant.project.name}-demos.jar" todir="${folder.deploy}"/> + <copy file="demos/src/pivot/demos/dom/dom_test.html" todir="${folder.deploy}"/> + <copy file="demos/src/pivot/demos/dom/im_client.html" todir="${folder.deploy}"/> <signjar jar="${folder.deploy}/${ant.project.name}-demos.jar" signedjar="${folder.deploy}/${ant.project.name}-demos.signed.jar" keystore="${keystore.location}" storepass="${keystore.passwd}" alias="${keystore.alias}"/> Modified: incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html?rev=760921&r1=760920&r2=760921&view=diff ============================================================================== --- incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html (original) +++ incubator/pivot/trunk/demos/src/pivot/demos/dom/dom_test.html Wed Apr 1 15:28:08 2009 @@ -0,0 +1,38 @@ +<html> +<head> +<title>DOM Test</title> +<script> +// This function will be called by Pivot +function sayHello(helloText) { + alert(helloText); +} + +// This function will call into Pivot +function onHelloButtonClick() { + var domTestApplet = document.getElementById("domTestApplet"); + domTestApplet.getApplication().sayHello("Hello from JavaScript!"); +} +</script> +</head> + +<body> +<table> +<tr> +<td style="text-align:center; border:solid 1px #999999"> +<applet id="domTestApplet" + code="pivot.wtk.BrowserApplicationContext$HostApplet" + archive="pivot-core.jar,pivot-wtk.jar,pivot-wtk.terra.jar,pivot-demos.jar,stax-api-1.0.jar,stax-1.2.0.jar" + width="380" height="240"> + <param name="applicationClassName" value="pivot.demos.dom.DOMTest"> + <param name="image" value=""> +</applet> +</td> +</tr> +<tr> +<td style="text-align:center; border:solid 1px #999999"> +<button onclick="onHelloButtonClick()">Say Hello</button> +</td> +</tr> +</table> +</body> +</html> Modified: incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html?rev=760921&r1=760920&r2=760921&view=diff ============================================================================== --- incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html (original) +++ incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.html Wed Apr 1 15:28:08 2009 @@ -0,0 +1,27 @@ +<html> +<head> +<title>IM Client Demo</title> +<script> +// This function will be called by Pivot +function messageReceived(body) { + var messageDiv = document.getElementById("messageDiv"); + var p = document.createElement("p"); + var date = new Date(); + p.appendChild(document.createTextNode(date + ": " + body)); + messageDiv.appendChild(p); +} +</script> +</head> + +<body style="font-family:Verdana; font-size:11px"> +<applet code="pivot.wtk.BrowserApplicationContext$HostApplet" + archive="pivot-core.signed.jar,pivot-wtk.signed.jar,pivot-wtk.terra.signed.jar,pivot-demos.signed.jar,stax-api-1.0.signed.jar,stax-1.2.0.signed.jar,smack.signed.jar,smackx.signed.jar" + width="320" height="240"> + <param name="applicationClassName" value="pivot.demos.dom.IMClient"> + <param name="image" value=""> +</applet> +<hr> +<div id="messageDiv"> +</div> +</body> +</html> Modified: incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx?rev=760921&r1=760920&r2=760921&view=diff ============================================================================== --- incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx (original) +++ incubator/pivot/trunk/demos/src/pivot/demos/dom/im_client.wtkx Wed Apr 1 15:28:08 2009 @@ -34,7 +34,7 @@ </sections> </Form> - <Border title="Messages" styles="{padding:4}"> + <Border title="Messages" styles="{padding:4, color:10}"> <content> <Label wtkx:id="messageLabel" styles="{horizontalAlignment:'center', verticalAlignment:'center', wrapText:true}"/> </content> From pivot-commits-returnann78@example.com Wed Apr 01 16:22:35 2009 Return-Path: <pivot-commits-returnann78@example.com> Delivered-To: ann78@example.com Received: (qmail 31249 invoked from network); 1 Apr 2009 16:22:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 16:22:35 -0000 Received: (qmail 14669 invoked by uid 500); 1 Apr 2009 16:22:35 -0000 Delivered-To: ann78@example.com Received: (qmail 14651 invoked by uid 500); 1 Apr 2009 16:22:35 -0000 Mailing-List: contact ann78@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:ann78@example.com> List-Unsubscribe: <mailto:ann78@example.com> List-Post: <mailto:ann78@example.com> List-Id: <pivot-commits.incubator.apache.org> Reply-To: ann78@example.com Delivered-To: mailing list ann78@example.com Received: (qmail 14632 invoked by uid 99); 1 Apr 2009 16:22:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 16:22:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 16:22:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D4CB72388CFA; Wed, 1 Apr 2009 16:22:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r760949 [5/8] - in /incubator/pivot/trunk: charts-test/src/pivot/charts/test/ charts/src/pivot/charts/ charts/src/pivot/charts/content/ charts/src/pivot/charts/skin/ core-test/src/pivot/core/test/ core/src/pivot/beans/ core/src/pivot/collec... Date: Wed, 01 Apr 2009 16:21:46 -0000 To: ann78@example.com From: ann78@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <ann78@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/ListButtonSelectionListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/ListButtonSelectionListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/ListButtonSelectionListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/ListButtonSelectionListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/ListView.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/ListView.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/ListView.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/ListView.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewItemListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewItemListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewItemListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewItemListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewItemStateListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewItemStateListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewItemStateListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewItemStateListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewSelectionListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewSelectionListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewSelectionListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/ListViewSelectionListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/LocalManifest.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/LocalManifest.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/LocalManifest.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/LocalManifest.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/Manifest.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/Manifest.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/Manifest.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/Manifest.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/Menu.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/Menu.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/Menu.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/Menu.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MenuBar.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MenuBar.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MenuBar.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MenuBar.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MenuBarListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MenuBarListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MenuBarListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MenuBarListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MenuButton.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MenuButton.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MenuButton.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MenuButton.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MenuButtonListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MenuButtonListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MenuButtonListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MenuButtonListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MenuItemSelectionListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MenuItemSelectionListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MenuItemSelectionListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MenuItemSelectionListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MenuListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MenuListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MenuListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MenuListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MenuPopup.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MenuPopup.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MenuPopup.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MenuPopup.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MenuPopupListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MenuPopupListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MenuPopupListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MenuPopupListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MessageType.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MessageType.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MessageType.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MessageType.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/Meter.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/Meter.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/Meter.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/Meter.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/MeterListener.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/MeterListener.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/MeterListener.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/MeterListener.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * 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 * Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/Mouse.java URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/Mouse.java?rev=760949&r1=760948&r2=760949&view=diff ============================================================================== --- incubator/pivot/trunk/wtk/src/pivot/wtk/Mouse.java (original) +++ incubator/pivot/trunk/wtk/src/pivot/wtk/Mouse.java Wed Apr 1 16:21:14 2009 @@ -1,9 +1,10 @@ /* - * Copyright (c) 2008 VMware, Inc. - * - * Licensed 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 + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional
{'source': 'Apache Software Foundation Public Mail Archives'}