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.ActionSource; 021 import javax.faces.component.StateHolder; 022 import javax.faces.component.UIComponent; 023 import javax.faces.context.FacesContext; 024 import javax.faces.el.ValueBinding; 025 import javax.faces.event.AbortProcessingException; 026 import java.io.IOException; 027 import java.util.Iterator; 028 import java.util.List; 029 import java.util.Map; 030 031 /** 032 * @deprecated Please use {@link UILink} 033 */ 034 @Deprecated 035 public interface UILinkCommand extends ActionSource, StateHolder { 036 037 String COMPONENT_TYPE = "org.apache.myfaces.tobago.Link"; 038 039 Map<String, Object> getAttributes(); 040 041 ValueBinding getValueBinding(String name); 042 043 void setValueBinding(String name, ValueBinding binding); 044 045 String getClientId(FacesContext context); 046 047 String getFamily(); 048 049 String getId(); 050 051 void setId(String id); 052 053 UIComponent getParent(); 054 055 void setParent(UIComponent parent); 056 057 boolean isRendered(); 058 059 void setRendered(boolean rendered); 060 061 String getRendererType(); 062 063 void setRendererType(String rendererType); 064 065 boolean getRendersChildren(); 066 067 List<UIComponent> getChildren(); 068 069 int getChildCount(); 070 071 UIComponent findComponent(String expr); 072 073 Map<String, UIComponent> getFacets(); 074 075 UIComponent getFacet(String name); 076 077 Iterator<UIComponent> getFacetsAndChildren(); 078 079 void broadcast(javax.faces.event.FacesEvent event) throws AbortProcessingException; 080 081 void decode(FacesContext context); 082 083 void encodeBegin(FacesContext context) throws IOException; 084 085 void encodeChildren(FacesContext context) throws IOException; 086 087 void encodeEnd(FacesContext context) throws IOException; 088 089 void queueEvent(javax.faces.event.FacesEvent event); 090 091 void processRestoreState(FacesContext context, Object state); 092 093 void processDecodes(FacesContext context); 094 095 void processValidators(FacesContext context); 096 097 void processUpdates(FacesContext context); 098 099 Object processSaveState(FacesContext context); 100 101 }