001 package org.apache.myfaces.tobago.component; 002 003 /* 004 * Licensed to the Apache Software Foundation (ASF) under one or more 005 * contributor license agreements. See the NOTICE file distributed with 006 * this work for additional information regarding copyright ownership. 007 * The ASF licenses this file to You under the Apache License, Version 2.0 008 * (the "License"); you may not use this file except in compliance with 009 * the License. You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 */ 019 020 import javax.faces.component.EditableValueHolder; 021 import javax.faces.component.StateHolder; 022 import javax.faces.component.UIComponent; 023 import javax.faces.context.FacesContext; 024 import javax.faces.el.MethodBinding; 025 import javax.faces.el.ValueBinding; 026 import javax.faces.event.AbortProcessingException; 027 import java.io.IOException; 028 import java.util.Iterator; 029 import java.util.List; 030 import java.util.Map; 031 032 /** 033 * @deprecated Please use {@link UIIn} 034 */ 035 @Deprecated 036 public interface UIInput extends StateHolder, EditableValueHolder { 037 038 Map<String, Object> getAttributes(); 039 040 ValueBinding getValueBinding(String name); 041 042 void setValueBinding(String name, ValueBinding binding); 043 044 String getClientId(FacesContext context); 045 046 String getFamily(); 047 048 String getId(); 049 050 void setId(String id); 051 052 UIComponent getParent(); 053 054 void setParent(UIComponent parent); 055 056 boolean isRendered(); 057 058 void setRendered(boolean rendered); 059 060 String getRendererType(); 061 062 void setRendererType(String rendererType); 063 064 boolean getRendersChildren(); 065 066 List<UIComponent> getChildren(); 067 068 int getChildCount(); 069 070 UIComponent findComponent(String expr); 071 072 Map<String, UIComponent> getFacets(); 073 074 UIComponent getFacet(String name); 075 076 Iterator<UIComponent> getFacetsAndChildren(); 077 078 void broadcast(javax.faces.event.FacesEvent event) throws AbortProcessingException; 079 080 void decode(FacesContext context); 081 082 void encodeBegin(FacesContext context) throws IOException; 083 084 void encodeChildren(FacesContext context) throws IOException; 085 086 void encodeEnd(FacesContext context) throws IOException; 087 088 void queueEvent(javax.faces.event.FacesEvent event); 089 090 void processRestoreState(FacesContext context, Object state); 091 092 void processDecodes(FacesContext context); 093 094 void processValidators(FacesContext context); 095 096 void processUpdates(FacesContext context); 097 098 Object processSaveState(FacesContext context); 099 100 void setSuggestMethod(MethodBinding suggestMethod); 101 }