no message

This commit is contained in:
2024-10-09 22:21:57 +03:00
parent 54c80c516b
commit 6252af944e
699 changed files with 2634 additions and 1997 deletions

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="_VisualDVM.GlobalData.User.UI.UserFields">
<grid id="27dc6" binding="content" layout-manager="GridLayoutManager" row-count="4" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="500" height="400"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="374e0" class="javax.swing.JTextField" binding="tfLogin" custom-create="true">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
</component>
<vspacer id="9bcf9">
<constraints>
<grid row="3" column="1" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
</constraints>
</vspacer>
<component id="33ebe" class="javax.swing.JLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="логин"/>
</properties>
</component>
<tabbedpane id="936e5" binding="AuthenticationTabs">
<constraints>
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false">
<minimum-size width="-1" height="80"/>
<preferred-size width="200" height="80"/>
<maximum-size width="-1" height="80"/>
</grid>
</constraints>
<properties>
<enabled value="true"/>
<font name="Times New Roman" size="14" style="0"/>
</properties>
<border type="none"/>
<children>
<grid id="55883" binding="PasswordTab" layout-manager="GridLayoutManager" row-count="2" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<tabbedpane title="по паролю"/>
</constraints>
<properties>
<font/>
</properties>
<border type="none"/>
<children>
<vspacer id="d5d71">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
</constraints>
</vspacer>
<component id="75250" class="javax.swing.JButton" binding="bPasswordVisibility">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<icon value="icons/HidePassword.png"/>
<text value=""/>
<toolTipText value="Показывать пароль"/>
</properties>
</component>
<component id="82048" class="javax.swing.JPasswordField" binding="tfPassword" custom-create="true">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
</component>
</children>
</grid>
</children>
</tabbedpane>
<component id="be99c" class="javax.swing.JLabel">
<constraints>
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="9" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="вход"/>
<verticalAlignment value="0"/>
<verticalTextPosition value="0"/>
</properties>
</component>
<component id="e064b" class="javax.swing.JTextField" binding="tfWorkspace" custom-create="true">
<constraints>
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties>
<editable value="false"/>
</properties>
</component>
<component id="7bee1" class="javax.swing.JLabel">
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<text value="папка"/>
<toolTipText value="рабочая папка визуализатора"/>
</properties>
</component>
</children>
</grid>
</form>

View File

@@ -0,0 +1,45 @@
package _VisualDVM.GlobalData.User.UI;
import Common.Utils.CommonUtils;
import Common.Visual.Menus.TextEditorMenu;
import Common.Visual.TextField.StyledPasswordField;
import Common.Visual.TextField.StyledTextField;
import Common.Visual.Windows.Dialog.DialogFields;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class UserFields implements DialogFields {
public JPanel content;
public JTextField tfLogin;
public JTabbedPane AuthenticationTabs;
public JPanel PasswordTab;
public JPasswordField tfPassword;
public JTextField tfWorkspace;
char mask;
char unmask = (char) 0;
boolean password_visible = false;
private JButton bPasswordVisibility;
public UserFields() {
mask = tfPassword.getEchoChar();
bPasswordVisibility.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
password_visible = !password_visible;
tfPassword.setEchoChar(password_visible ? unmask : mask);
bPasswordVisibility.setIcon(CommonUtils.getIcon("/icons/" + (password_visible ? "Show" : "Hide") + "Password.png"));
}
});
}
@Override
public Component getContent() {
return content;
}
private void createUIComponents() {
// TODO: place custom component creation code here
tfLogin = new StyledTextField();
tfPassword = new StyledPasswordField();
tfPassword.setComponentPopupMenu(new TextEditorMenu(tfPassword));
tfWorkspace = new StyledTextField();
}
}