no message
This commit is contained in:
@@ -18,7 +18,7 @@ public abstract class DBObjectDialog<T extends DBObject, F extends DialogFields>
|
||||
public void fillFields() {
|
||||
//отобразить объект
|
||||
}
|
||||
public void SetReadonly(){
|
||||
public void SetReadonly() {
|
||||
//заблокировать окно для редактирования
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package Common.Visual.Windows.Dialog;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.Themes.ThemeElement;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Utils.TextLog;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.Themes.ThemeElement;
|
||||
import Common.Visual.UI_;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
@@ -25,9 +25,6 @@ public class Dialog<T, F extends DialogFields> extends JDialog implements ThemeE
|
||||
protected JButton btnOK = null;
|
||||
protected JButton btnCancel = null;
|
||||
protected JCheckBox showNoMore = null;
|
||||
public String getIconPath() {
|
||||
return "";
|
||||
}
|
||||
protected Component content;
|
||||
//--------------------------------------
|
||||
public Dialog(Class<F> f_in) {
|
||||
@@ -60,6 +57,9 @@ public class Dialog<T, F extends DialogFields> extends JDialog implements ThemeE
|
||||
setLocationRelativeTo(null);
|
||||
LoadSize();
|
||||
}
|
||||
public String getIconPath() {
|
||||
return "";
|
||||
}
|
||||
public void CreateContent() {
|
||||
try {
|
||||
content = (fields = f.newInstance()).getContent();
|
||||
@@ -69,7 +69,6 @@ public class Dialog<T, F extends DialogFields> extends JDialog implements ThemeE
|
||||
}
|
||||
}
|
||||
public void onClose() {
|
||||
|
||||
}
|
||||
public void LoadSize() {
|
||||
setMinimumSize(new Dimension(getDefaultWidth(), getDefaultHeight()));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package Common.Visual.Windows.Dialog;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.UI_;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package Common.Visual.Windows.Dialog;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.Fonts.VisualiserFonts;
|
||||
import Common.Visual.UI_;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
public class DialogWrapText extends JTextPane implements DialogFields {
|
||||
public DialogWrapText(){
|
||||
public DialogWrapText() {
|
||||
setOpaque(true);
|
||||
setBackground(Color.WHITE);
|
||||
setFont(UI_.getTheme().Fonts.get(VisualiserFonts.TreeBold));
|
||||
|
||||
@@ -14,14 +14,14 @@ public class VFileChooser_ {
|
||||
return res;
|
||||
}
|
||||
};
|
||||
public File getCurrentDirectory(){
|
||||
return fileChooser.getCurrentDirectory();
|
||||
}
|
||||
public VFileChooser_(String title, FileFilter filter) {
|
||||
fileChooser.setDialogTitle(title);
|
||||
fileChooser.setAcceptAllFileFilterUsed(false);
|
||||
fileChooser.setFileFilter(filter);
|
||||
}
|
||||
public File getCurrentDirectory() {
|
||||
return fileChooser.getCurrentDirectory();
|
||||
}
|
||||
public void setTitle(String title_in) {
|
||||
fileChooser.setDialogTitle(title_in);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Common.Visual.Windows;
|
||||
import Common.Database.Objects.DBForm.DBForm;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Themes.ThemeElement;
|
||||
import Common.Database.Objects.DBForm.DBForm;
|
||||
import _VisualDVM.Global;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -11,7 +11,7 @@ import java.awt.event.WindowEvent;
|
||||
public abstract class Form extends JFrame implements ThemeElement {
|
||||
private DBForm dbInfo = null;
|
||||
public Form() {
|
||||
if (getIconPath()!=null) setIconImage(Utils_.getIcon(getIconPath()).getImage());
|
||||
if (getIconPath() != null) setIconImage(Utils_.getIcon(getIconPath()).getImage());
|
||||
SetListener();
|
||||
this.setTitle(Utils_.isWindows() ? getWTitleText() : getUTitleText());
|
||||
pack();
|
||||
@@ -73,7 +73,7 @@ public abstract class Form extends JFrame implements ThemeElement {
|
||||
public void AfterClose() {
|
||||
}
|
||||
public void LoadWindowParameters() throws Exception {
|
||||
if (getFormKey()!=null)
|
||||
if (getFormKey() != null)
|
||||
if (Global.mainModule.getDb().forms.Data.containsKey(getFormKey())) {
|
||||
dbInfo = Global.mainModule.getDb().forms.Data.get(getFormKey());
|
||||
dbInfo.Apply(this);
|
||||
@@ -83,7 +83,7 @@ public abstract class Form extends JFrame implements ThemeElement {
|
||||
setLocationRelativeTo(getRelative());
|
||||
}
|
||||
public void SaveWindowParameters() throws Exception {
|
||||
if (getFormKey()!=null) {
|
||||
if (getFormKey() != null) {
|
||||
if (dbInfo != null) {
|
||||
dbInfo.Init(this);
|
||||
Global.mainModule.getDb().Update(dbInfo);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package Common.Visual.Windows;
|
||||
import Common.Passes.Pass;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Windows.Dialog.Dialog;
|
||||
import Common.Passes.Pass;
|
||||
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
|
||||
Reference in New Issue
Block a user