no message

This commit is contained in:
2024-10-14 11:50:57 +03:00
parent 334a8de3bf
commit e4422bf2c8
8 changed files with 12 additions and 33 deletions

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="Common.Visual.Windows.PassFields">
<grid id="cbd77" binding="content" layout-manager="GridLayoutManager" row-count="4" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="10" left="10" bottom="10" right="10"/>
<constraints>
<xy x="48" y="54" width="436" height="297"/>
</constraints>
<properties>
<background color="-1"/>
<enabled value="true"/>
<foreground color="-1"/>
</properties>
<border type="none"/>
<children>
<component id="8cfe8" class="javax.swing.JLabel">
<constraints>
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<icon value="Common/icons/Pass.gif"/>
<text value=""/>
</properties>
</component>
<component id="a7e0" class="javax.swing.JLabel" binding="Label1">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="1"/>
<text value=""/>
</properties>
</component>
<component id="7515a" class="javax.swing.JProgressBar" binding="ProgressBar">
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<stringPainted value="true"/>
<value value="0"/>
</properties>
</component>
<component id="e1308" class="javax.swing.JLabel" binding="Label2">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="14" style="2"/>
<text value=""/>
</properties>
</component>
</children>
</grid>
</form>

View File

@@ -0,0 +1,15 @@
package Common.Visual.Windows;
import Common.Visual.Windows.Dialog.DialogFields;
import javax.swing.*;
import java.awt.*;
public class PassFields implements DialogFields {
public JPanel content;
public JProgressBar ProgressBar;
public JLabel Label1;
public JLabel Label2;
@Override
public Component getContent() {
return content;
}
}

View File

@@ -0,0 +1,46 @@
package Common.Visual.Windows;
import Common.Utils.Utils_;
import Common.Visual.Windows.Dialog.Dialog;
import Common.Passes.Pass;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class PassForm extends Dialog<Pass, PassFields> {
public PassForm(Pass pass_in) {
super(PassFields.class);
Result = pass_in;
addWindowListener(new WindowAdapter() {
@Override
public void windowOpened(WindowEvent e) {
Result.animation_sem.release();
}
});
}
public boolean ShowDialog() {
return super.ShowDialog("");
}
@Override
public int getDefaultWidth() {
return 600;
}
@Override
public int getDefaultHeight() {
return 250;
}
//кнопок нет
@Override
public void CreateButtons() {
}
@Override
protected void onCancel() {
try {
Result.Interrupt();
} catch (Exception e) {
Utils_.MainLog.PrintException(e);
}
}
@Override
public String getTitleText() {
return Result.getDescription();
}
}