本文整理了Java中javax.faces.view.Location
类的一些代码示例,展示了Location
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Location
类的具体详情如下:
包路径:javax.faces.view.Location
类名称:Location
[英]An object that represents the Location of a tag or attribute of a tag in a View Declaration Language file.
[中]表示视图声明语言文件中标记或标记属性的位置的对象。
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
private String getComponentLocation(UIComponent component)
{
Location location = (Location) component.getAttributes()
.get(UIComponent.VIEW_LOCATION_KEY);
if (location != null)
{
return location.toString();
}
return null;
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
public LocationMethodExpression apply(int newCCLevel, Location newLocation)
{
if(this.ccLevel == newCCLevel && this.location.getPath().equals(newLocation.getPath()))
{
return this;
}
else
{
return new LocationMethodExpression(newLocation, this.delegate, newCCLevel);
}
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
protected Location createLocation()
{
return new Location(this.alias, this.locator.getLineNumber(), this.locator.getColumnNumber());
}
代码示例来源:origin: stackoverflow.com
Location temp = cursor.getLoc(i);
if(theMaze[cursor.getRow()][cursor.getColumn()].validDirection(i) && (!locationSet.isElement(temp)) && !(theMaze[temp.getRow()][temp.getColumn()].isVisited()))
{
cursor = cursor.getLoc(i); <-- Why are you overwritting the current
<-- location when you have still not checked
<-- all the posible directions?
theMaze[cursor.getRow()][cursor.getColumn()].setVisited(true);
if(theMaze[cursor.getColumn()][cursor.getColumn()].getPathAmount() < 2)
{
cursor = startLocation;
continue;
}
locationSet.enter(cursor);
locationQueue.enqueue(cursor);
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
private String getComponentLocation(UIComponent component)
{
Location location = (Location) component.getAttributes()
.get(UIComponent.VIEW_LOCATION_KEY);
if (location != null)
{
return location.toString();
}
return null;
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
public LocationValueExpression apply(int newCCLevel, Location newLocation)
{
if(this.ccLevel == newCCLevel && this.location.getPath().equals(newLocation.getPath()))
{
return this;
}
else
{
return new LocationValueExpression(newLocation, this.delegate, newCCLevel);
}
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
protected Location createLocation()
{
return new Location(this.alias, this.locator.getLineNumber(), this.locator.getColumnNumber());
}
代码示例来源:origin: org.icefaces/icefaces-ace
private String getComponentLocation(UIComponent component) {
Location location = (Location) component.getAttributes().get(UIComponent.VIEW_LOCATION_KEY);
if (location != null) {
return location.toString();
}
return null;
}
代码示例来源:origin: com.sun.faces/jsf-impl
/**
* @return <code>true</code> if the argument handler is from the same
* template source as the argument <code>Resource</code> otherwise
* <code>false</code>
*/
protected boolean resourcesMatch(Resource compositeResource,
Location handlerLocation) {
String resName = compositeResource.getResourceName();
return (handlerLocation.getPath().contains(resName));
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl
protected Location createLocation()
{
return new Location(this.alias, this.locator.getLineNumber(), this.locator.getColumnNumber());
}
代码示例来源:origin: org.icefaces/icefaces-ace
/**
* Logic for this method is borrowed from MyFaces
*
* @param component
* @return
*/
private String getComponentLocation(UIComponent component) {
Location location = (Location) component.getAttributes().get(UIComponent.VIEW_LOCATION_KEY);
if (location != null) {
return location.toString();
}
return null;
}
代码示例来源:origin: org.glassfish/javax.faces
/**
* @return <code>true</code> if the argument handler is from the same
* template source as the argument <code>Resource</code> otherwise
* <code>false</code>
*/
protected boolean resourcesMatch(Resource compositeResource,
Location handlerLocation) {
String resName = compositeResource.getResourceName();
return (handlerLocation.getPath().contains(resName));
}
代码示例来源:origin: org.apache.myfaces.core.internal/myfaces-shaded-impl
protected Location createLocation()
{
return new Location(this.alias, this.locator.getLineNumber(), this.locator.getColumnNumber());
}
代码示例来源:origin: org.icefaces/icefaces
/**
* Logic for this method is borrowed from MyFaces
*
* @param component
* @return
*/
private String getComponentLocation(UIComponent component) {
Location location = (Location) component.getAttributes().get(UIComponent.VIEW_LOCATION_KEY);
if (location != null) {
return location.toString();
}
return null;
}
代码示例来源:origin: org.glassfish/jakarta.faces
/**
* @return <code>true</code> if the argument handler is from the same
* template source as the argument <code>Resource</code> otherwise
* <code>false</code>
*/
protected boolean resourcesMatch(Resource compositeResource,
Location handlerLocation) {
String resName = compositeResource.getResourceName();
return (handlerLocation.getPath().contains(resName));
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
protected Location createLocation()
{
return new Location(this.alias, this.locator.getLineNumber(), this.locator.getColumnNumber());
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
/**
* Gets the Location of the given UIComponent from its attribute map.
* @param component
* @return
*/
private String getComponentLocation(UIComponent component)
{
Location location = (Location) component.getAttributes()
.get(UIComponent.VIEW_LOCATION_KEY);
if (location != null)
{
return location.toString();
}
return null;
}
代码示例来源:origin: eclipse-ee4j/mojarra
/**
* @return <code>true</code> if the argument handler is from the same
* template source as the argument <code>Resource</code> otherwise
* <code>false</code>
*/
protected boolean resourcesMatch(Resource compositeResource,
Location handlerLocation) {
String resName = compositeResource.getResourceName();
return (handlerLocation.getPath().contains(resName));
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl
protected Location createLocation()
{
return new Location(this.alias, this.locator.getLineNumber(), this.locator.getColumnNumber());
}
代码示例来源:origin: org.apache.myfaces.core.internal/myfaces-shaded-impl
/**
* Gets the Location of the given UIComponent from its attribute map.
* @param component
* @return
*/
private static String _getComponentLocation(UIComponent component)
{
Location location = (Location) component.getAttributes()
.get(UIComponent.VIEW_LOCATION_KEY);
if (location != null)
{
return location.toString();
}
return null;
}
}
内容来源于网络,如有侵权,请联系作者删除!