本文整理匯總了Java中tonegod.gui.controls.windows.Window類的典型用法代碼示例。如果您正苦於以下問題:Java Window類的具體用法?Java Window怎麽用?Java Window使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Window類屬於tonegod.gui.controls.windows包,在下文中一共展示了Window類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: LayoutParser
import tonegod.gui.controls.windows.Window; //導入依賴的package包/類
public LayoutParser(Screen screen) {
this.screen = screen;
controls.add(OSRViewPort.class);
controls.add(Indicator.class);
controls.add(Slider.class);
controls.add(Dial.class);
controls.add(CheckBox.class);
controls.add(RadioButton.class);
controls.add(Button.class);
controls.add(ChatBox.class);
controls.add(ChatBoxExt.class);
controls.add(Panel.class);
controls.add(ColorWheel.class);
controls.add(LoginBox.class);
controls.add(AlertBox.class);
controls.add(DialogBox.class);
controls.add(Window.class);
controls.add(TabControl.class);
controls.add(SelectBox.class);
controls.add(ComboBox.class);
controls.add(Menu.class);
controls.add(SelectList.class);
controls.add(ScrollArea.class);
controls.add(SlideTray.class);
controls.add(Spinner.class);
controls.add(Label.class);
controls.add(Password.class);
controls.add(TextField.class);
}
示例2: initialiseDebug
import tonegod.gui.controls.windows.Window; //導入依賴的package包/類
private void initialiseDebug() {
debug = new Window(screen, Vector2f.ZERO);
Label label = new Label(screen, Vector2f.ZERO, new Vector2f(225, 35));
label.setText(Integer.toString(app.getStateManager()
.getState(AbstractHexGridAppState.class).getMapData().getGenerator().getSeed()));
debug.addWindowContent(label);
screen.addElement(debug);
}
示例3: show
import tonegod.gui.controls.windows.Window; //導入依賴的package包/類
/**
* Show the window on a free position on the screen.
*
* @param position
*/
protected final void show(Vector2f position) {
Vector2f size = getWindowSize();
window = new Window(screen, getUID(), position, size) {
@Override
public void hideWindow() {
super.hideWindow();
onPressCloseAndHide();
}
};
window.setUseCloseButton(true);
if (isHexGrid) {
window.setWindowTitle(name);
} else {
window.setWindowTitle(" " + name);
}
// window.setIgnoreMouse(true);
window.getDragBar().setIgnoreMouse(true);
if (parent == null) {
screen.addElement(window);
} else {
parent.addChild(window);
}
populate();
/**
* this resolve a weird issue with button not showing properly
* @todo : resolve.
*/
window.hide();
window.show();
}
示例4: getWindow
import tonegod.gui.controls.windows.Window; //導入依賴的package包/類
public Window getWindow() {
return window;
}