本文整理汇总了Java中de.lessvoid.nifty.Nifty.createPopup方法的典型用法代码示例。如果您正苦于以下问题:Java Nifty.createPopup方法的具体用法?Java Nifty.createPopup怎么用?Java Nifty.createPopup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类de.lessvoid.nifty.Nifty
的用法示例。
在下文中一共展示了Nifty.createPopup方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: bind
import de.lessvoid.nifty.Nifty; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public void bind(Nifty nifty, Screen screen) {
this.nifty = nifty;
this.screen = screen;
puPause = nifty.createPopup("puPause");
puMessage = nifty.createPopup("puMessage");
lbMessage = puMessage.findNiftyControl("lbMessage", Label.class);
puContextMenu = nifty.createPopup("puContextMenu");
mnContextMenu = puContextMenu.findNiftyControl("mnContextMenu", MyMenu.class);
mnContextMenu.addMenuItem("trigger", "Trigger", null);
mnContextMenu.addMenuItem("pointTo", "Point To", null);
mnContextMenu.addMenuItem("fasten", "Fasten", null);
mnContextMenu.addMenuItem("loosen", "Loosen", null);
windowControllers.add(new StatusWindowController());
windowControllers.add(new CamNavWindowController());
windowControllers.add(new RobotWindowController());
windowControllers.add(new DemoWindowController());
windowControllers.add(new ObjectsWindowController());
for (WindowController wc : windowControllers) {
wc.bind(nifty, screen);
Window window = wc.getWindow();
if (wc.getClass() != StatusWindowController.class) {
window.getElement().hide();
}
}
organizeWindows();
}
示例2: NiftyDDManager
import de.lessvoid.nifty.Nifty; //导入方法依赖的package包/类
public NiftyDDManager(Nifty nifty){
Element temp = nifty.findPopupByName(NIFTY_EDITOR_POPUP_SUPPORT);
if(temp == null){
PopupBuilder builder = new PopupBuilder(NIFTY_EDITOR_POPUP_SUPPORT);
builder.childLayoutAbsolute();
builder.registerPopup(nifty);
temp = nifty.createPopup(NIFTY_EDITOR_POPUP_SUPPORT);
}
popUp = temp;
this.nifty = nifty;
dragged = null;
}
示例3: bind
import de.lessvoid.nifty.Nifty; //导入方法依赖的package包/类
@Override
public void bind(Nifty nifty, Screen screen) {
this.nifty = nifty;
this.screen = screen;
popup = nifty.createPopup("select_player");
}