Skip to content

Commit

Permalink
1.3 version released
Browse files Browse the repository at this point in the history
  • Loading branch information
galisha committed Jul 11, 2021
1 parent ee12fa2 commit e79b437
Show file tree
Hide file tree
Showing 50 changed files with 86 additions and 51 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version history

|Date | Ver | Author | Description |
|----------|-----|-----------------------------|--------------------|
|2021-07-11| 1.3 | galisha. | Added method for centering non Djf dialog and checking data form modifying |
|2020-12-27| 1.2 | galisha. | Added ability for tab panel selection event |
|2020-08-19| 1.1 | galisha. | Fix bug with closing HTML and text panel by ESC pressing. Added a new widget for phone. Added ability to close form with refreshing parent form. |
|2019-11-17| 1.0 | galisha. | Inital commit |
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Djf is Desktop Java Forms, a compact master-detail UI library like FoxBase, but based on Swing.
Djf uses Hibernate mapping concepts for data, for component layout - Miglayout and RSyntaxTextArea for text panels.

You can see almost all examples of forms definition, data bindings and assistances in [demo application](https://github.com/smart-flex/Djf/releases/download/1.1/djf-demo-1.1-standalone.jar).
After downloading you can run this demo: java -jar djf-demo-1.1-standalone.jar
You can see almost all examples of forms definition, data bindings and assistances in [demo application](https://github.com/smart-flex/Djf/releases/download/1.3/djf-demo-1.3-standalone.jar).
After downloading you can run this demo: java -jar djf-demo-1.3-standalone.jar

![One of the Djf demo form](djf-demo.png)

Expand Down
6 changes: 3 additions & 3 deletions djf-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>djf-parent</artifactId>
<groupId>ru.smartflex.djf</groupId>
<version>1.2</version>
<version>1.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -16,7 +16,7 @@
<dependency>
<groupId>ru.smartflex.djf</groupId>
<artifactId>djf</artifactId>
<version>1.2</version>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down Expand Up @@ -95,7 +95,7 @@
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>djf-demo-1.2-standalone</finalName>
<finalName>djf-demo-1.3-standalone</finalName>
<archive>
<manifest>
<mainClass>ru.smartflex.djf.demo.MainDjfDemo</mainClass>
Expand Down
2 changes: 1 addition & 1 deletion djf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>djf-parent</artifactId>
<groupId>ru.smartflex.djf</groupId>
<version>1.2</version>
<version>1.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
20 changes: 20 additions & 0 deletions djf/src/main/java/ru/smartflex/djf/Djf.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import ru.smartflex.djf.controller.FormStack;
import ru.smartflex.djf.controller.LongTaskManagerThread;
import ru.smartflex.djf.tool.FormUtil;
import ru.smartflex.djf.tool.FrameUtil;

import java.awt.*;

public class Djf extends DesktopJavaForms {

Expand Down Expand Up @@ -84,4 +87,21 @@ public static void doLongAssistantMethod(String longMethod, String longMessage)
LongTaskManagerThread task = new LongTaskManagerThread(longMethod);
task.execute();
}

@SuppressWarnings("unused")
public static void centerOnFrame(Component c) {
FrameUtil.centerOnFrame(c);
}

@SuppressWarnings("unused")
public static boolean isCurrentFormWasChanged() {
boolean fok = false;

if (FormStack.getCurrentFormBag() != null
&& FormStack.getCurrentFormBag().isFormWasChanged()) {
fok = true;
}

return fok;
}
}
2 changes: 1 addition & 1 deletion djf/src/main/java/ru/smartflex/djf/model/BeanType-1.0.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="BeanPropertyType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="BeanType">
<xs:sequence>
Expand Down
2 changes: 1 addition & 1 deletion djf/src/main/java/ru/smartflex/djf/model/FormType-1.0.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<xs:include schemaLocation="LayoutType-1.0.xsd" />
<xs:include schemaLocation="PanelType-1.0.xsd" />
<xs:include schemaLocation="AssistType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="FormType">
<xs:sequence>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<xs:schema targetNamespace="ru/smartflex/djf/model" xmlns:ct="ru/smartflex/djf/model"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemButtonRunType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<xs:schema targetNamespace="ru/smartflex/djf/model" xmlns:ct="ru/smartflex/djf/model"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemButtonType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemByteType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<xs:schema targetNamespace="ru/smartflex/djf/model" xmlns:ct="ru/smartflex/djf/model"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemCheckboxBaseType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemCheckboxBaseType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemCheckboxType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:ct="ru/smartflex/djf/model" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemComboboxBaseType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemComboboxBaseType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemComboboxType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemDateType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<xs:schema targetNamespace="ru/smartflex/djf/model" xmlns:ct="ru/smartflex/djf/model"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemFileType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridByteType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemCheckboxBaseType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridCheckboxType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemComboboxBaseType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridComboboxType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridDateType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridIntType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridLongType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridNumType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemPeriodBaseType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridPeriodType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemPhoneBaseType-1.1.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridPhoneType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridShortType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGridTextType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<xs:include schemaLocation="ItemGridTextType-1.0.xsd" />
<xs:include schemaLocation="ItemGridCheckboxType-1.0.xsd" />
<xs:include schemaLocation="ItemGridDateType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />
<xs:include schemaLocation="ItemGridComboboxType-1.0.xsd" />
<xs:include schemaLocation="ItemTreeGridCellType-1.0.xsd" />
<xs:include schemaLocation="ItemGridPeriodType-1.0.xsd" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<xs:include schemaLocation="ItemRadioType-1.0.xsd" />

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemGroupType">
<xs:sequence>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<xs:schema targetNamespace="ru/smartflex/djf/model" xmlns:ct="ru/smartflex/djf/model"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemInputType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemIntType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<xs:schema targetNamespace="ru/smartflex/djf/model" xmlns:ct="ru/smartflex/djf/model"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemLabelType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemLongType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemNumType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<xs:schema targetNamespace="ru/smartflex/djf/model" xmlns:ct="ru/smartflex/djf/model"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemOperatorType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemPasswordType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemPeriodBaseType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemPeriodType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="ItemInputType-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemPhoneType">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<xs:schema targetNamespace="ru/smartflex/djf/model" xmlns:ct="ru/smartflex/djf/model"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ru/smartflex/djf/model">

<xs:include schemaLocation="AttributeTypes-1.0.xsd" />
<xs:include schemaLocation="AttributeTypes-1.2.xsd" />

<xs:complexType name="ItemRadioType">

Expand Down
Loading

0 comments on commit e79b437

Please sign in to comment.