本文整理汇总了Java中javax.faces.component.behavior.Behavior类的典型用法代码示例。如果您正苦于以下问题:Java Behavior类的具体用法?Java Behavior怎么用?Java Behavior使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Behavior类属于javax.faces.component.behavior包,在下文中一共展示了Behavior类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: rowEditedTest
import javax.faces.component.behavior.Behavior; //导入依赖的package包/类
@Test
public void rowEditedTest(){
SlotConnectionBean slotConnection = saveASlotConnection();
Slot slot2 = rackService.findSlotByRack( RACK_1, 2 );
slotConnection.setSlot( slot2 );
Behavior behaviour = new Behavior()
{
@Override
public void broadcast( BehaviorEvent arg0 )
{
}
};
RowEditEvent event = new RowEditEvent( new UICommand(), behaviour, slotConnection );
settopController.rowEdited( event );
settopSlotService.refresh();
SlotConnectionBean slotConnection1 = settopSlotService.getSlotConnection( "1" );
assertEquals( slot2, slotConnection1.getSlot() );
}
开发者ID:Comcast,项目名称:cats,代码行数:21,代码来源:SettopControllerTest.java
示例2: validateMacAddress1Test
import javax.faces.component.behavior.Behavior; //导入依赖的package包/类
@Test
public void validateMacAddress1Test(){
Behavior behaviour = new Behavior()
{
@Override
public void broadcast( BehaviorEvent arg0 )
{
}
};
SlotConnectionBean slotConnection = saveASlotConnection();
// settopController.rowSelected(new SelectEvent( new UIColumn(), behaviour, slotConnection ));
settopController.setSelectedSlotConnection(slotConnection);
settopController.validateMacAddress( null, null, "12:23:23:23:23:23" );
}
开发者ID:Comcast,项目名称:cats,代码行数:17,代码来源:SettopControllerTest.java
示例3: getApplication
import javax.faces.component.behavior.Behavior; //导入依赖的package包/类
@Override
public Application getApplication() {
return new ApplicationWrapper() {
@Override
public Application getWrapped() {
return null;
}
@Override
public UIComponent createComponent(FacesContext context,
String componentType, String rendererType) {
return new HtmlInputText();
}
@Override
public Behavior createBehavior(String behaviorId)
throws FacesException {
return new ToggleControl();
}
};
}
开发者ID:fpuna-cia,项目名称:karaku,代码行数:28,代码来源:KarakuComponentFactoryTest.java
示例4: TabChangeEvent
import javax.faces.component.behavior.Behavior; //导入依赖的package包/类
public TabChangeEvent(UIComponent component, Behavior behavior, Tab tab) {
super(component, behavior);
this.tab = tab;
}
开发者ID:edvin,项目名称:tornadofaces,代码行数:5,代码来源:TabChangeEvent.java
示例5: SwitchEvent
import javax.faces.component.behavior.Behavior; //导入依赖的package包/类
public SwitchEvent(Switch _switch, Behavior behavior) {
super(_switch, behavior);
}
开发者ID:edvin,项目名称:tornadofaces,代码行数:4,代码来源:SwitchEvent.java
示例6: SelectionEvent
import javax.faces.component.behavior.Behavior; //导入依赖的package包/类
public SelectionEvent(UIComponent component, Behavior behavior, T selection) {
super(component, behavior);
this.selection = selection;
}
开发者ID:edvin,项目名称:tornadofaces,代码行数:5,代码来源:SelectionEvent.java
示例7: FlipPanelEvent
import javax.faces.component.behavior.Behavior; //导入依赖的package包/类
public FlipPanelEvent(FlipPanel panel, Behavior behavior) {
super(panel, behavior);
}
开发者ID:edvin,项目名称:tornadofaces,代码行数:4,代码来源:FlipPanelEvent.java
示例8: createBehavior
import javax.faces.component.behavior.Behavior; //导入依赖的package包/类
public static Behavior createBehavior(String behaviorId) {
FacesContext context = FacesContext.getCurrentInstance();
return context.getApplication().createBehavior(behaviorId);
}
开发者ID:rcandidosilva,项目名称:paas-iot-platform,代码行数:5,代码来源:JSFHelper.java
注:本文中的javax.faces.component.behavior.Behavior类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论