// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: UIComponentBase.java
package javax.faces.component;
import java.beans.*;
import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.*;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.el.ELException;
import javax.el.ValueExpression;
import javax.faces.FacesException;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import javax.faces.event.*;
import javax.faces.render.RenderKit;
import javax.faces.render.Renderer;
// Referenced classes of package javax.faces.component:
// UIComponent, NamingContainer, StateHolderSaver, UIViewRoot,
// ValueBindingValueExpressionAdapter, ValueExpressionValueBindingAdapter, ContextCallback
public abstract class UIComponentBase extends UIComponent
{
private class AttributesMap
implements Map, Serializable
{
private Map attributes;
final UIComponentBase this$0;
public boolean containsKey(Object obj)
{
String s = (String)obj;
PropertyDescriptor propertydescriptor = getPropertyDescriptor(s);
if (propertydescriptor == null)
{
if (attributes != null)
return attributes.containsKey(s);
else
return false;
} else
{
return false;
}
}
public Object get(Object obj)
{
String s;
PropertyDescriptor propertydescriptor;
s = (String)obj;
if (s == null)
throw new NullPointerException();
propertydescriptor = getPropertyDescriptor(s);
if (propertydescriptor == null)
break MISSING_BLOCK_LABEL_90;
Object obj1 = propertydescriptor.getReadMethod();
if (obj1 != null)
return ((Method) (obj1)).invoke(UIComponentBase.this, UIComponentBase.empty);
try
{
throw new IllegalArgumentException(s);
}
catch (IllegalAccessException illegalaccessexception)
{
throw new FacesException(illegalaccessexception);
}
catch (InvocationTargetException invocationtargetexception)
{
throw new FacesException(invocationtargetexception.getTargetException());
}
if (attributes != null && attributes.containsKey(s))
return attributes.get(s);
invocationtargetexception = getValueExpression(s);
if (invocationtargetexception == null)
break MISSING_BLOCK_LABEL_171;
Object obj2 = null;
Object obj3 = invocationtargetexception.getValue(getFacesContext().getELContext());
return obj3;
ELException elexception;
elexception;
throw new FacesException(elexception);
return null;
}
public Object put(Object obj, Object obj1)
{
String s;
PropertyDescriptor propertydescriptor;
if (obj == null)
throw new NullPointerException();
if (!(obj instanceof String))
throw new ClassCastException("Key must be a String");
s = obj.toString();
propertydescriptor = getPropertyDescriptor(s);
if (propertydescriptor == null)
break MISSING_BLOCK_LABEL_149;
Object obj2;
obj2 = null;
Method method = propertydescriptor.getReadMethod();
if (method != null)
obj2 = method.invoke(UIComponentBase.this, UIComponentBase.empty);
Method method1 = propertydescriptor.getWriteMethod();
if (method1 != null)
method1.invoke(UIComponentBase.this, new Object[] {
obj1
});
else
throw new IllegalArgumentException();
return obj2;
Object obj3;
obj3;
throw new FacesException(((Throwable) (obj3)));
obj3;
throw new FacesException(((InvocationTargetException) (obj3)).getTargetException());
if (obj1 == null)
throw new NullPointerException();
if (attributes == null)
initMap();
return attributes.put(s, obj1);
}
public void putAll(Map map)
{
if (map == null)
throw new NullPointerException();
if (attributes == null)
initMap();
attributes.putAll(map);
}
public Object remove(Object obj)
{
String s = (String)obj;
if (s == null)
throw new NullPointerException();
PropertyDescriptor propertydescriptor = getPropertyDescriptor(s);
if (propertydescriptor != null)
throw new IllegalArgumentException(s);
if (attributes != null)
return attributes.remove(s);
else
return null;
}
public int size()
{
return attributes == null ? 0 : attributes.size();
}
public boolean isEmpty()
{
return attributes == null || attributes.isEmpty();
}
public boolean containsValue(Object obj)
{
return attributes != null && attributes.containsValue(obj);
}
public void clear()
{
if (attributes != null)
attributes.clear();
}
public Set keySet()
{
return attributes == null ? Collections.EMPTY_SET : attributes.keySet();
}
public Collection values()
{
return ((Collection) (attributes == null ? Collections.EMPTY_LIST : attributes.values()));
}
public Set entrySet()
{
return attributes == null ? Collections.EMPTY_SET : attributes.entrySet();
}
Map getBackingAttributes()
{
return attributes;
}
public boolean equals(Object obj)
{
Map map;
if (obj == this)
return true;
if (!(obj instanceof Map))
return false;
map = (Map)obj;
if (map.size() != size())
return false;
Iterator iterator = entrySet().iterator();
_L2:
Object obj3;
Object obj4;
do
{
if (!iterator.hasNext())
break MISSING_BLOCK_LABEL_147;
Object obj2 = iterator.next();
java.util.Map.Entry entry = (java.util.Map.Entry)obj2;
obj3 = entry.getKey();
obj4 = entry.getValue();
if (obj4 != null)
continue; /* Loop/switch isn't completed */
} while (map.get(obj3) == null && map.containsKey(obj3));
return false;
if (obj4.equals(map.get(obj3))) goto _L2; else goto _L1
_L1:
return false;
Object obj1;
obj1;
return false;
obj1;
return false;
return true;
}
public int hashCode()
{
int i = 0;
for (Iterator iterator = entrySet().iterator(); iterator.hasNext();)
{
Object obj = iterator.next();
i += obj.hashCode();
}
return i;
}
private void initMap()
{
attributes = new HashMap(8);
}
private AttributesMap()
{
this$0 = UIComponentBase.this;
super();
}
private AttributesMap(Map map)
{
this$0 = UIComponentBase.this;
super();
attributes = map;
}
}
private class ChildrenList extends ArrayList
{
final UIComponentBase this$0;
public void add(int i, UIComponent uicomponent)
{
if (uicomponent == null)
throw new NullPointerException();
if (i < 0 || i > size())
{
throw new IndexOutOfBoundsException();
} else
{
eraseParent(uicomponent);
uicomponent.setParent(UIComponentBase.this);
super.add(i, uicomponent);
return;
}
}
public boolean add(UIComponent uicomponent)
{
if (uicomponent == null)
{
throw new NullPointerException();
} else
{
eraseParent(uicomponent);
uicomponent.setParent(UIComponentBase.this);
return super.add(uicomponent);
}
}
public boolean addAll(Collection collection)
{
Iterator iterator1 = (new ArrayList(collection)).iterator();
boolean flag;
for (flag = false; iterator1.hasNext(); flag = true)
{
UIComponent uicomponent = (UIComponent)iterator1.next();
if (uicomponent == null)
throw new NullPointerException();
add(uicomponent);
}
return flag;
}
public boolean addAll(int i, Collection collection)
{
Iterator iterator1 = (new ArrayList(collection)).iterator();
boolean flag;
for (flag = false; iterator1.hasNext(); flag = true)
{
UIComponent uicomponent = (UIComponent)iterator1.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
javaee5源代码 (1075个子文件)
UIComponentBase.java 47KB
UIComponentClassicTagBase.java 23KB
MimeUtility.java 22KB
MimeMessage.java 22KB
Session.java 21KB
UIInput.java 19KB
ImplicitObjectELResolver.java 19KB
MimeBodyPart.java 19KB
UIData.java 17KB
MimeMultipart.java 17KB
InternetAddress.java 16KB
HtmlInputSecret.java 15KB
HtmlPanelGrid.java 15KB
HtmlInputText.java 15KB
HtmlSelectManyCheckbox.java 14KB
HtmlSelectOneRadio.java 14KB
HtmlDataTable.java 14KB
HtmlSelectManyListbox.java 14KB
HtmlSelectOneListbox.java 14KB
HtmlInputTextarea.java 14KB
HtmlCommandButton.java 13KB
MailcapCommandMap.java 13KB
HtmlCommandLink.java 13KB
HtmlOutputLink.java 13KB
HtmlSelectManyMenu.java 13KB
HtmlSelectOneMenu.java 13KB
UIViewRoot.java 13KB
HtmlSelectBooleanCheckbox.java 12KB
Folder.java 12KB
ResultSetDataModel.java 12KB
NumberConverter.java 12KB
ContextFinder.java 11KB
HtmlOutputLabel.java 10KB
HtmlGraphicImage.java 10KB
HtmlForm.java 10KB
DataHandler.java 9KB
MailDateParser.java 9KB
URLName.java 9KB
InternetHeaders.java 9KB
FactoryFinder.java 9KB
HttpServlet.java 9KB
BeanELResolver.java 9KB
HttpMethodSpec.java 9KB
AbstractUnmarshallerImpl.java 8KB
AbstractMarshallerImpl.java 8KB
EJBMethodPermission.java 8KB
LifeCycleManager.java 8KB
HtmlMessages.java 8KB
MethodBindingMethodExpressionAdapter.java 8KB
LocaleSupport.java 7KB
HtmlMessage.java 7KB
ParameterList.java 7KB
MimetypesFileTypeMap.java 7KB
ValueExpressionValueBindingAdapter.java 7KB
DateTimeConverter.java 7KB
MethodExpressionMethodBindingAdapter.java 7KB
ValueBindingValueExpressionAdapter.java 7KB
Service.java 7KB
LoopTagSupport.java 6KB
SharedFileInputStream.java 6KB
UIComponent.java 6KB
UISelectMany.java 6KB
UICommand.java 6KB
DoubleRangeValidator.java 6KB
SaveOrganizationTest.java 6KB
LongRangeValidator.java 6KB
MessageFactory.java 6KB
MessageFactory.java 6KB
MessageFactory.java 6KB
MessageFactory.java 6KB
ScriptFreeTLV.java 6KB
WebUserDataPermission.java 6KB
Application.java 6KB
Transport.java 6KB
URLPatternSpec.java 6KB
ScopedAttributeELResolver.java 6KB
Config.java 5KB
Message.java 5KB
UISelectItem.java 5KB
Flags.java 5KB
ExternalContext.java 5KB
HeaderTokenizer.java 5KB
DatatypeConverter.java 5KB
MimeTypeParameterList.java 5KB
ConverterTag.java 5KB
FactoryFinder.java 5KB
LengthValidator.java 4KB
JAXBSource.java 4KB
StreamReaderDelegate.java 4KB
TagInfo.java 4KB
MimeType.java 4KB
CompositeELResolver.java 4KB
ValidatorTag.java 4KB
XMLInputFactory.java 4KB
PolicyConfigurationFactory.java 4KB
HttpUtils.java 4KB
UIMessages.java 4KB
Message.java 4KB
NoBodyResponse.java 4KB
MimeHeaders.java 4KB
共 1075 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
yy82106811
- 粉丝: 7
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功