You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2011/01/10 19:24:13 UTC
svn commit: r1057297 [2/2] - in /pivot/branches/3.x: core-compat/
core-compat/src/ core-compat/src/org/ core-compat/src/org/apache/
core-compat/src/org/apache/pivot/
core-compat/src/org/apache/pivot/collections/ platform-awt/ platform-swt/
scene-awt/ s...
Added: pivot/branches/3.x/ui-swt/src/org/apache/pivot/ui/DesktopApplicationContext.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/ui-swt/src/org/apache/pivot/ui/DesktopApplicationContext.java?rev=1057297&view=auto
==============================================================================
--- pivot/branches/3.x/ui-swt/src/org/apache/pivot/ui/DesktopApplicationContext.java (added)
+++ pivot/branches/3.x/ui-swt/src/org/apache/pivot/ui/DesktopApplicationContext.java Mon Jan 10 18:24:11 2011
@@ -0,0 +1,5 @@
+package org.apache.pivot.ui;
+
+public class DesktopApplicationContext {
+
+}
Added: pivot/branches/3.x/ui-swt/src/org/apache/pivot/ui/PluginApplicationContext.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/ui-swt/src/org/apache/pivot/ui/PluginApplicationContext.java?rev=1057297&view=auto
==============================================================================
--- pivot/branches/3.x/ui-swt/src/org/apache/pivot/ui/PluginApplicationContext.java (added)
+++ pivot/branches/3.x/ui-swt/src/org/apache/pivot/ui/PluginApplicationContext.java Mon Jan 10 18:24:11 2011
@@ -0,0 +1,5 @@
+package org.apache.pivot.ui;
+
+public class PluginApplicationContext {
+
+}
Modified: pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextAreaContentListener.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextAreaContentListener.java?rev=1057297&r1=1057296&r2=1057297&view=diff
==============================================================================
--- pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextAreaContentListener.java (original)
+++ pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextAreaContentListener.java Mon Jan 10 18:24:11 2011
@@ -17,7 +17,7 @@
package org.apache.pivot.ui;
public interface TextAreaContentListener {
- public void textInserted(TextArea textArea, int index, int length);
- public void textRemoved(TextArea textArea, int index, int length);
+ public void textInserted(TextArea textArea, int index, CharSequence text);
+ public void textRemoved(TextArea textArea, int start, int length);
public void textChanged(TextArea textArea);
}
Modified: pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextAreaParagraphListener.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextAreaParagraphListener.java?rev=1057297&r1=1057296&r2=1057297&view=diff
==============================================================================
--- pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextAreaParagraphListener.java (original)
+++ pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextAreaParagraphListener.java Mon Jan 10 18:24:11 2011
@@ -16,8 +16,10 @@
*/
package org.apache.pivot.ui;
+import java.util.List;
+
public interface TextAreaParagraphListener {
- public void paragraphsInserted(TextArea textArea, int index, int count);
+ public void paragraphsInserted(TextArea textArea, int index, List<CharSequence> paragraphText);
public void paragraphsRemoved(TextArea textArea, int index, int count);
- public void paragraphUpdated(TextArea textArea, int index);
+ public void paragraphUpdated(TextArea textArea, int index, CharSequence paragraphText);
}
Added: pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInput.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInput.java?rev=1057297&view=auto
==============================================================================
--- pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInput.java (added)
+++ pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInput.java Mon Jan 10 18:24:11 2011
@@ -0,0 +1,5 @@
+package org.apache.pivot.ui;
+
+public interface TextInput {
+ // TODO
+}
Added: pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInputContentListener.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInputContentListener.java?rev=1057297&view=auto
==============================================================================
--- pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInputContentListener.java (added)
+++ pivot/branches/3.x/ui/src/org/apache/pivot/ui/TextInputContentListener.java Mon Jan 10 18:24:11 2011
@@ -0,0 +1,102 @@
+/*
+ * 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.
+ */
+package org.apache.pivot.ui;
+
+/**
+ * Text input text listener.
+ */
+public interface TextInputContentListener {
+ /**
+ * Called to preview a text insertion.
+ *
+ * @param textInput
+ * The source of the event.
+ *
+ * @param text
+ * The text that will be inserted.
+ *
+ * @param index
+ * The index at which the text will be inserted.
+ */
+ public boolean previewInsertText(TextInput textInput, CharSequence text, int index);
+
+ /**
+ * Called when a text insertion has been vetoed.
+ *
+ * @param textInput
+ * The source of the event.
+ */
+ public void insertTextVetoed(TextInput textInput);
+
+ /**
+ * Called when text has been inserted into a text input.
+ *
+ * @param textInput
+ * The source of the event.
+ *
+ * @param text
+ * The text that was inserted.
+ *
+ * @param text
+ * The index at which the text was inserted.
+ */
+ public void textInserted(TextInput textInput, CharSequence text, int index);
+
+ /**
+ * Called to preview a text removal.
+ *
+ * @param textInput
+ * The source of the event.
+ *
+ * @param start
+ * The starting index from which the text will be removed.
+ *
+ * @param length
+ * The number of characters that will be removed.
+ */
+ public boolean previewRemoveText(TextInput textInput, int start, int length);
+
+ /**
+ * Called when a text removal has been vetoed.
+ *
+ * @param textInput
+ * The source of the event.
+ */
+ public void removeTextVetoed(TextInput textInput);
+
+ /**
+ * Called when text has been removed from a text input.
+ *
+ * @param textInput
+ * The source of the event.
+ *
+ * @param start
+ * The starting index from which the text was removed.
+ *
+ * @param length
+ * The number of characters that were removed.
+ */
+ public void textRemoved(TextInput textInput, int start, int count);
+
+ /**
+ * Called when a text input's text has changed.
+ *
+ * @param textInput
+ * The source of the event.
+ */
+ public void textChanged(TextInput textInput);
+}
Added: pivot/branches/3.x/wtk-compat/.classpath
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/wtk-compat/.classpath?rev=1057297&view=auto
==============================================================================
--- pivot/branches/3.x/wtk-compat/.classpath (added)
+++ pivot/branches/3.x/wtk-compat/.classpath Mon Jan 10 18:24:11 2011
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/core"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/core-compat"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/scene"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/ui"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: pivot/branches/3.x/wtk-compat/.project
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/wtk-compat/.project?rev=1057297&view=auto
==============================================================================
--- pivot/branches/3.x/wtk-compat/.project (added)
+++ pivot/branches/3.x/wtk-compat/.project Mon Jan 10 18:24:11 2011
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>wtk-compat</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: pivot/branches/3.x/wtk-compat/src/org/apache/pivot/wtk/Window.java
URL: http://svn.apache.org/viewvc/pivot/branches/3.x/wtk-compat/src/org/apache/pivot/wtk/Window.java?rev=1057297&view=auto
==============================================================================
--- pivot/branches/3.x/wtk-compat/src/org/apache/pivot/wtk/Window.java (added)
+++ pivot/branches/3.x/wtk-compat/src/org/apache/pivot/wtk/Window.java Mon Jan 10 18:24:11 2011
@@ -0,0 +1,7 @@
+package org.apache.pivot.wtk;
+
+public class Window {
+ // TODO This class will extend org.apache.pivot.ui.Window and provide a
+ // convenience setContent() method that will wrap an
+ // org.apache.pivot.wtk.Component in a WTKAdapter node.
+}