本文整理汇总了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;
}