本文整理汇总了Java中javax.faces.event.FacesListener类的典型用法代码示例。如果您正苦于以下问题:Java FacesListener类的具体用法?Java FacesListener怎么用?Java FacesListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FacesListener类属于javax.faces.event包,在下文中一共展示了FacesListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addFacesListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
protected void addFacesListener(FacesListener listener)
{
if (listener == null)
throw new NullPointerException();
getFacesBean().addEntry(_LISTENERS_KEY, listener);
}
示例2: removeFacesListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
protected void removeFacesListener(FacesListener listener)
{
if (listener == null)
throw new NullPointerException();
getFacesBean().removeEntry(_LISTENERS_KEY, listener);
}
示例3: getFacesListeners
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
protected FacesListener[] getFacesListeners(Class clazz)
{
if (clazz == null)
throw new NullPointerException();
if (!FacesListener.class.isAssignableFrom(clazz))
throw new IllegalArgumentException();
return (FacesListener[])
getFacesBean().getEntries(_LISTENERS_KEY, clazz);
}
示例4: processListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
public void processListener(FacesListener listener) {
TabRepeat owner = (TabRepeat) this.getComponent();
int prevIndex = owner.index;
FacesContext ctx = FacesContext.getCurrentInstance();
try {
owner.setIndex(ctx, this.index);
if (owner.isIndexAvailable()) {
this.target.processListener(listener);
}
} finally {
owner.setIndex(ctx, prevIndex);
}
}
示例5: addFacesListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
protected void addFacesListener(FacesListener listener) {
throw new UnsupportedOperationException();
}
示例6: getFacesListeners
import javax.faces.event.FacesListener; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
@Override
protected FacesListener[] getFacesListeners(Class arg0) {
throw new UnsupportedOperationException();
}
示例7: removeFacesListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
protected void removeFacesListener(FacesListener listener) {
throw new UnsupportedOperationException();
}
示例8: addFacesListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
protected void addFacesListener(FacesListener arg0) {
throw new UnsupportedOperationException();
}
示例9: getFacesListeners
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
@SuppressWarnings("rawtypes")
protected FacesListener[] getFacesListeners(Class arg0) {
throw new UnsupportedOperationException();
}
示例10: removeFacesListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
protected void removeFacesListener(FacesListener arg0) {
throw new UnsupportedOperationException();
}
示例11: processListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
public void processListener(
FacesListener listener)
{
}
示例12: isAppropriateListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
public boolean isAppropriateListener(
FacesListener listener)
{
return false;
}
示例13: processListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
public void processListener(FacesListener listener)
{
((PollListener) listener).processPoll(this);
}
示例14: isAppropriateListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
public boolean isAppropriateListener(FacesListener listener)
{
return (listener instanceof PollListener);
}
示例15: processListener
import javax.faces.event.FacesListener; //导入依赖的package包/类
@Override
public void processListener(FacesListener listener)
{
((ReturnListener) listener).processReturn(this);
}