17f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell/* 27f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * Copyright (C) 2011 The Android Open Source Project 37f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * 47f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * Licensed under the Apache License, Version 2.0 (the "License"); 57f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * you may not use this file except in compliance with the License. 67f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * You may obtain a copy of the License at 77f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * 87f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * http://www.apache.org/licenses/LICENSE-2.0 97f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * 107f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * Unless required by applicable law or agreed to in writing, software 117f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * distributed under the License is distributed on an "AS IS" BASIS, 127f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 137f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * See the License for the specific language governing permissions and 147f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * limitations under the License. 157f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell */ 167f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powellpackage android.text.method; 177f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell 187f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell/** 197f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * TransformationMethod2 extends the TransformationMethod interface 207f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * and adds the ability to relax restrictions of TransformationMethod. 217f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * 227f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * @hide 237f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell */ 247f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powellpublic interface TransformationMethod2 extends TransformationMethod { 257f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell /** 267f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * Relax the contract of TransformationMethod to allow length changes, 277f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * or revert to the length-restricted behavior. 287f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * 297f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * @param allowLengthChanges true to allow the transformation to change the length 307f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell * of the input string. 317f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell */ 327f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell public void setLengthChangesAllowed(boolean allowLengthChanges); 337f8f79a1ff086c04a3ad2a442b1d39a8186e3e50Adam Powell} 34