de.lessvoid.nifty.screen.Screen Java Examples
The following examples show how to use
de.lessvoid.nifty.screen.Screen.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestContextSwitching.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Override @SuppressWarnings("unchecked") public void bind(Nifty nifty, Screen screen) { applyButton = screen.findNiftyControl("ApplyButton", Button.class); platformListBox = screen.findNiftyControl("PlatformListBox", ListBox.class); deviceListBox = screen.findNiftyControl("DeviceListBox", ListBox.class); infoLabel = screen.findNiftyControl("InfoLabel", Label.class); updateInfos(); platformListBox.clear(); for (Platform p : availabePlatforms) { platformListBox.addItem(p.getName()); } platformListBox.selectItem(selectedPlatform); changePlatform(selectedPlatform); }
Example #2
Source File: GuiTrack.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void onStop() { Screen currentScreen = nifty.getCurrentScreen(); if (currentScreen != null) { currentScreen.endScreen(null); } }
Example #3
Source File: GuiEvent.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Invoked when the event is stopped. */ @Override public void onStop() { Screen currentScreen = nifty.getCurrentScreen(); if (currentScreen != null) { currentScreen.endScreen(null); } }
Example #4
Source File: GElement.java From niftyeditor with Apache License 2.0 | 5 votes |
public void lightRefresh() { Nifty temp = nElement.getNifty(); Screen currentScreen = temp.getCurrentScreen(); Attributes att = this.nElement.getElementType().getAttributes(); nElement.initializeFromAttributes(currentScreen, att, temp.getRenderEngine()); currentScreen.layoutLayers(); }
Example #5
Source File: GScreen.java From niftyeditor with Apache License 2.0 | 5 votes |
@Override public void createNiftyElement(Nifty nifty) { Screen screen = new ScreenBuilder(id){{ }}.build(nifty); nElement = screen.getRootElement(); for(String sel : attributes.keySet()){ nElement.getElementType().getAttributes().set(sel, attributes.get(sel)); } }
Example #6
Source File: TestNiftyGui.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void bind(Nifty nifty, Screen screen) { System.out.println("bind( " + screen.getScreenId() + ")"); }
Example #7
Source File: TestIssue1013.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void bind(Nifty nifty, Screen screen) { }
Example #8
Source File: BattlefieldGUIController.java From OpenRTS with MIT License | 4 votes |
@Override public void bind(Nifty nifty, Screen screen) { }
Example #9
Source File: EditorGUIController.java From OpenRTS with MIT License | 4 votes |
@Override public void bind(Nifty nifty, Screen screen) { }
Example #10
Source File: GroundGUIController.java From OpenRTS with MIT License | 4 votes |
@Override public void bind(Nifty nifty, Screen screen) { }
Example #11
Source File: GElement.java From niftyeditor with Apache License 2.0 | 4 votes |
private void lightRefresh(Attributes att) { Nifty temp = nElement.getNifty(); Screen currentScreen = temp.getCurrentScreen(); nElement.initializeFromAttributes(currentScreen, att, temp.getRenderEngine()); currentScreen.layoutLayers(); }
Example #12
Source File: GElement.java From niftyeditor with Apache License 2.0 | 4 votes |
protected void internalRefresh(Nifty nifty,Attributes att){ Screen currentScreen = nifty.getCurrentScreen(); nElement.initializeFromAttributes(currentScreen, att, nifty.getRenderEngine()); currentScreen.layoutLayers(); }
Example #13
Source File: GScreen.java From niftyeditor with Apache License 2.0 | 4 votes |
public Screen getScreen(){ return nElement.getNifty().getScreen(id); }
Example #14
Source File: TestNiftyGui.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 4 votes |
public void bind(Nifty nifty, Screen screen) { System.out.println("bind( " + screen.getScreenId() + ")"); }
Example #15
Source File: WelcomeScreen.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 4 votes |
public void bind(Nifty nifty, Screen screen) { this.nifty = nifty; this.screen = screen; }
Example #16
Source File: TestIssue99.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * A callback from Nifty, invoked when the screen gets enabled for the first * time. * * @param nifty (not null) * @param screen (not null) */ @Override public void bind(Nifty nifty, Screen screen) { }