public static class GuiUtil.WindowReciverBuilder extends Object
SwingListener| Modifier and Type | Class and Description |
|---|---|
static class |
GuiUtil.WindowReciverBuilder.CalcTargetPos
Расчет расположения окна
|
class |
GuiUtil.WindowReciverBuilder.Position
Класс помошник для размежения окна
|
| Modifier and Type | Field and Description |
|---|---|
protected List<xyz.cofe.common.Reciver<Window>> |
actions |
| Constructor and Description |
|---|
WindowReciverBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Window wnd)
Применяет настройки к окну
|
xyz.cofe.common.Reciver<WindowEvent> |
build()
Создание приемника события WindowEvent, который работает когда проиходит событие
|
GuiUtil.WindowReciverBuilder |
center()
Разместить окно по центру
|
GuiUtil.WindowReciverBuilder |
minSize(int w,
int h)
Задать минимальные размеры окна
|
GuiUtil.WindowReciverBuilder.Position |
pos()
Указание расположения окна
|
GuiUtil.WindowReciverBuilder |
relativeSize(double w,
double h)
Задать относительные размеры
|
GuiUtil.WindowReciverBuilder |
size(int w,
int h)
Установить размер окна
|
public GuiUtil.WindowReciverBuilder center()
public GuiUtil.WindowReciverBuilder minSize(int w, int h)
w - ширинаh - высотаpublic GuiUtil.WindowReciverBuilder relativeSize(double w, double h)
w - коэф размеров от 0... до ...1h - коэф размеров от 0... до ...1public GuiUtil.WindowReciverBuilder size(int w, int h)
w - ширинаh - высотаpublic GuiUtil.WindowReciverBuilder.Position pos()
public xyz.cofe.common.Reciver<WindowEvent> build()
public void apply(Window wnd)
wnd - окноCopyright © 2019. All rights reserved.