@@ -0,0 +1,2567 @@
+//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%0A// This file is a part of the 'gewt-material' project.%0A// Copyright 2016 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A//%09  http://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%0Apackage de.esoco.ewt.impl.gwt.material.widget;%0A%0Aimport gwt.material.design.client.ui.MaterialSearch;%0Aimport gwt.material.design.client.ui.MaterialTextBox;%0A%0Aimport de.esoco.ewt.component.TextControl.IsTextControlWidget;%0A%0A%0A/********************************************************************%0A * A %7B@link MaterialTextBox%7D subclass that also implements the interface %7B@link%0A * IsTextControlWidget%7D.%0A *%0A * @author eso%0A */%0Apublic class GewtMaterialSearch extends MaterialSearch%0A%09implements IsTextControlWidget%0A%7B%0A%09//~ Methods ----------------------------------------------------------------%0A%0A%09/***************************************%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public int getCursorPos()%0A%09%7B%0A%09%09return asGwtValueBoxBase().getCursorPos();%0A%09%7D%0A%0A%09/***************************************%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public String getSelectedText()%0A%09%7B%0A%09%09return asGwtValueBoxBase().getSelectedText();%0A%09%7D%0A%0A%09/***************************************%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public boolean isReadOnly()%0A%09%7B%0A%09%09return asGwtValueBoxBase().isReadOnly();%0A%09%7D%0A%0A%09/***************************************%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public void setCursorPos(int nPosition)%0A%09%7B%0A%09%09asGwtValueBoxBase().setCursorPos(nPosition);%0A%09%7D%0A%0A%09/***************************************%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public void setReadOnly(boolean bReadOnly)%0A%09%7B%0A%09%09asGwtValueBoxBase().setReadOnly(bReadOnly);%0A%09%7D%0A%0A%09/***************************************%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public void setSelectionRange(int nStart, int nLength)%0A%09%7B%0A%09%09asGwtValueBoxBase().setSelectionRange(nStart, nLength);%0A%09%7D%0A%0A%09/***************************************%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public void setVisibleLength(int nColumns)%0A%09%7B%0A%09%7D%0A%7D%0A

Support for MaterialSearch