Author: jdonnerstag
Date: Sat Sep 26 10:41:35 2009
New Revision: 819107

URL: http://svn.apache.org/viewvc?rev=819107&view=rev
Log:
fixed: DefaultCssAutocompleteTextField should be renamed
Issue: WICKET-2421

Added:
    
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.css
    
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.java
Removed:
    
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutocompleteTextField.css
    
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutocompleteTextField.java

Added: 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.css
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.css?rev=819107&view=auto
==============================================================================
--- 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.css
 (added)
+++ 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.css
 Sat Sep 26 10:41:35 2009
@@ -0,0 +1,39 @@
+/*
+ * 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.
+ */
+div.wicket-aa {
+        font-family: "Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana;
+        font-size: 12px;
+        background-color: white;
+        border-color: #cccccc;
+        border-width: 1px;
+        border-style: solid;
+        padding: 2px;
+        margin: 1px 0 0 0;
+        text-align:left;
+}
+ 
+div.wicket-aa ul {
+        list-style:none;
+        padding: 2px;
+        margin:0;
+}
+
+div.wicket-aa ul li.selected {
+        background-color: #FFFF00;
+        padding: 2px;
+        margin:0;
+}
\ No newline at end of file

Added: 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.java?rev=819107&view=auto
==============================================================================
--- 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.java
 (added)
+++ 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/DefaultCssAutoCompleteTextField.java
 Sat Sep 26 10:41:35 2009
@@ -0,0 +1,48 @@
+/*
+ * 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.wicket.extensions.ajax.markup.html.autocomplete;
+
+import org.apache.wicket.behavior.HeaderContributor;
+import org.apache.wicket.model.IModel;
+
+/**
+ * An {...@link AutoCompleteTextField} which automatically includes the 
default CSS for the
+ * suggestions.
+ * 
+ * @see AutoCompleteTextField
+ * @author Antony Stubbs
+ * @param <T>
+ *            The model type
+ */
+public abstract class DefaultCssAutoCompleteTextField<T> extends 
AutoCompleteTextField<T>
+{
+       private static final long serialVersionUID = 1L;
+
+       /**
+        * Construct.
+        * 
+        * @param string
+        * @param model
+        */
+       public DefaultCssAutoCompleteTextField(String string, IModel<T> model)
+       {
+               super(string, model);
+               
add(HeaderContributor.forCss(DefaultCssAutoCompleteTextField.class,
+                       "DefaultCssAutoCompleteTextField.css"));
+       }
+
+}


Reply via email to