moved package to temparory org.x4o.vasc.etc
This commit is contained in:
parent
3d6ceff732
commit
cc6331b7fe
322 changed files with 2032 additions and 1750 deletions
|
|
@ -5,6 +5,7 @@
|
|||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
#Sun Dec 25 17:29:07 CET 2011
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/main/resources=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding//src/test/resources=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
5
vasc-frontend-swing/.settings/org.eclipse.m2e.core.prefs
Normal file
5
vasc-frontend-swing/.settings/org.eclipse.m2e.core.prefs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#Sun Dec 25 17:29:02 CET 2011
|
||||
activeProfiles=
|
||||
eclipse.preferences.version=1
|
||||
resolveWorkspaceProjects=true
|
||||
version=1
|
||||
|
|
@ -1,18 +1,18 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<artifactId>vasc-base</artifactId>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
<artifactId>vasc</artifactId>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
</parent>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<artifactId>vasc-frontend-swing</artifactId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<name>vasc-frontend-swing</name>
|
||||
<description>vasc-frontend-swing</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<artifactId>vasc-core</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.swing;
|
||||
package org.x4o.vasc.frontends.swing;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
|
|
@ -64,24 +64,25 @@ import javax.swing.table.JTableHeader;
|
|||
import javax.swing.table.TableCellRenderer;
|
||||
import javax.swing.table.TableColumn;
|
||||
|
||||
import com.idcanet.vasc.core.AbstractVascFrontend;
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascFrontendData;
|
||||
import com.idcanet.vasc.core.actions.GlobalVascAction;
|
||||
import com.idcanet.vasc.core.actions.RowVascAction;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import com.idcanet.vasc.core.entry.VascEntryExporter;
|
||||
import com.idcanet.vasc.core.ui.VascColumnValueModelListener;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import com.idcanet.vasc.frontends.swing.ui.SwingBoolean;
|
||||
import com.idcanet.vasc.frontends.swing.ui.SwingButton;
|
||||
import com.idcanet.vasc.frontends.swing.ui.SwingColorChooser;
|
||||
import com.idcanet.vasc.frontends.swing.ui.SwingLabel;
|
||||
import com.idcanet.vasc.frontends.swing.ui.SwingList;
|
||||
import com.idcanet.vasc.frontends.swing.ui.SwingText;
|
||||
import com.idcanet.vasc.frontends.swing.ui.SwingTextArea;
|
||||
import org.x4o.vasc.core.AbstractVascFrontend;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascFrontendData;
|
||||
import org.x4o.vasc.core.actions.GlobalVascAction;
|
||||
import org.x4o.vasc.core.actions.RowVascAction;
|
||||
import org.x4o.vasc.core.entry.VascEntryExporter;
|
||||
import org.x4o.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import org.x4o.vasc.core.ui.VascColumnValueModelListener;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.frontends.swing.ui.SwingBoolean;
|
||||
import org.x4o.vasc.frontends.swing.ui.SwingButton;
|
||||
import org.x4o.vasc.frontends.swing.ui.SwingColorChooser;
|
||||
import org.x4o.vasc.frontends.swing.ui.SwingLabel;
|
||||
import org.x4o.vasc.frontends.swing.ui.SwingList;
|
||||
import org.x4o.vasc.frontends.swing.ui.SwingText;
|
||||
import org.x4o.vasc.frontends.swing.ui.SwingTextArea;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -99,7 +100,7 @@ public class SwingVascFrontend extends AbstractVascFrontend {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#getFrontendType()
|
||||
* @see org.x4o.vasc.core.VascFrontend#getFrontendType()
|
||||
*/
|
||||
public String getFrontendType() {
|
||||
return "swing";
|
||||
|
|
@ -144,7 +145,7 @@ public class SwingVascFrontend extends AbstractVascFrontend {
|
|||
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascViewRenderer#renderEdit(com.idcanet.vasc.core.VascEntry, java.lang.Object)
|
||||
* @see org.x4o.vasc.core.VascViewRenderer#renderEdit(org.x4o.vasc.core.VascEntry, java.lang.Object)
|
||||
*/
|
||||
public void renderEdit() throws Exception {
|
||||
logger.fine("Rending Edit View");
|
||||
|
|
@ -326,7 +327,7 @@ public class SwingVascFrontend extends AbstractVascFrontend {
|
|||
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascViewRenderer#renderExport(com.idcanet.vasc.core.VascEntry, com.idcanet.vasc.core.VascDataExporter)
|
||||
* @see org.x4o.vasc.core.VascViewRenderer#renderExport(org.x4o.vasc.core.VascEntry, org.x4o.vasc.core.VascDataExporter)
|
||||
*/
|
||||
public void renderExport(VascEntryExporter exporter) throws Exception {
|
||||
|
||||
|
|
@ -360,7 +361,7 @@ public class SwingVascFrontend extends AbstractVascFrontend {
|
|||
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascViewRenderer#renderView(com.idcanet.vasc.core.VascEntry)
|
||||
* @see org.x4o.vasc.core.VascViewRenderer#renderView(org.x4o.vasc.core.VascEntry)
|
||||
*/
|
||||
public void renderView() throws Exception {
|
||||
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.swing.ui;
|
||||
package org.x4o.vasc.frontends.swing.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
|
@ -33,11 +33,12 @@ import java.awt.event.ActionListener;
|
|||
import javax.swing.JCheckBox;
|
||||
import javax.swing.JComponent;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -61,7 +62,7 @@ public class SwingBoolean implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (checkBox==null) {
|
||||
|
|
@ -71,7 +72,7 @@ public class SwingBoolean implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (checkBox==null) {
|
||||
|
|
@ -86,28 +87,28 @@ public class SwingBoolean implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !checkBox.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
checkBox.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return checkBox.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
checkBox.setVisible(rendered);
|
||||
|
|
@ -24,18 +24,19 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.swing.ui;
|
||||
package org.x4o.vasc.frontends.swing.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JComponent;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -57,7 +58,7 @@ public class SwingButton implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (vascButton==null) {
|
||||
|
|
@ -67,7 +68,7 @@ public class SwingButton implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (vascButton==null) {
|
||||
|
|
@ -82,28 +83,28 @@ public class SwingButton implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !vascButton.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
vascButton.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return vascButton.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
vascButton.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.swing.ui;
|
||||
package org.x4o.vasc.frontends.swing.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
|
@ -34,11 +34,12 @@ import javax.swing.JButton;
|
|||
import javax.swing.JColorChooser;
|
||||
import javax.swing.JComponent;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -60,7 +61,7 @@ public class SwingColorChooser implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (colorButton==null) {
|
||||
|
|
@ -70,7 +71,7 @@ public class SwingColorChooser implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (colorButton==null) {
|
||||
|
|
@ -85,28 +86,28 @@ public class SwingColorChooser implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !colorButton.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
colorButton.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return colorButton.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
colorButton.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.swing.ui;
|
||||
package org.x4o.vasc.frontends.swing.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
|
@ -34,11 +34,12 @@ import java.util.Date;
|
|||
|
||||
import javax.swing.JComponent;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
import com.michaelbaranov.microba.calendar.DatePicker;
|
||||
|
||||
|
||||
|
|
@ -67,7 +68,7 @@ public class SwingDate implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (datePicker==null) {
|
||||
|
|
@ -77,7 +78,7 @@ public class SwingDate implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (datePicker==null) {
|
||||
|
|
@ -92,28 +93,28 @@ public class SwingDate implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !datePicker.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
datePicker.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return datePicker.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
datePicker.setVisible(rendered);
|
||||
|
|
@ -24,18 +24,19 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.swing.ui;
|
||||
package org.x4o.vasc.frontends.swing.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JLabel;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -58,7 +59,7 @@ public class SwingLabel implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (label==null) {
|
||||
|
|
@ -68,7 +69,7 @@ public class SwingLabel implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (label==null) {
|
||||
|
|
@ -83,28 +84,28 @@ public class SwingLabel implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !label.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
label.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return label.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
label.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.swing.ui;
|
||||
package org.x4o.vasc.frontends.swing.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
|
|
@ -37,13 +37,14 @@ import javax.swing.JLabel;
|
|||
import javax.swing.JList;
|
||||
import javax.swing.ListCellRenderer;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascSelectItem;
|
||||
import com.idcanet.vasc.core.ui.VascSelectItemModel;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascSelectItem;
|
||||
import org.x4o.vasc.core.ui.VascSelectItemModel;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -97,7 +98,7 @@ public class SwingList implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (comboBox==null) {
|
||||
|
|
@ -107,7 +108,7 @@ public class SwingList implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (comboBox==null) {
|
||||
|
|
@ -122,28 +123,28 @@ public class SwingList implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !comboBox.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
comboBox.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return comboBox.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
comboBox.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.swing.ui;
|
||||
package org.x4o.vasc.frontends.swing.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
|
|
@ -33,11 +33,12 @@ import javax.swing.JTextField;
|
|||
import javax.swing.event.DocumentEvent;
|
||||
import javax.swing.event.DocumentListener;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -60,7 +61,7 @@ public class SwingText implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (textField==null) {
|
||||
|
|
@ -70,7 +71,7 @@ public class SwingText implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (textField==null) {
|
||||
|
|
@ -85,28 +86,28 @@ public class SwingText implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !textField.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
textField.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return textField.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
textField.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.swing.ui;
|
||||
package org.x4o.vasc.frontends.swing.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
|
|
@ -34,11 +34,12 @@ import javax.swing.JTextArea;
|
|||
import javax.swing.event.DocumentEvent;
|
||||
import javax.swing.event.DocumentListener;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -69,7 +70,7 @@ public class SwingTextArea implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (textArea==null) {
|
||||
|
|
@ -79,7 +80,7 @@ public class SwingTextArea implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (textArea==null) {
|
||||
|
|
@ -94,28 +95,28 @@ public class SwingTextArea implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !textArea.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
textArea.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return textArea.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
textArea.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc;
|
||||
package org.x4o.vasc;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
|
@ -35,8 +35,9 @@ import javax.swing.JMenuBar;
|
|||
import javax.swing.JMenuItem;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.frontends.swing.SwingVascFrontend;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.frontends.swing.SwingVascFrontend;
|
||||
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
|
|
@ -25,22 +25,23 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc;
|
||||
package org.x4o.vasc;
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.x4o.vasc.annotations.VascDefaultValue;
|
||||
import org.x4o.vasc.annotations.VascEntry;
|
||||
import org.x4o.vasc.annotations.VascI18n;
|
||||
import org.x4o.vasc.annotations.VascModelReference;
|
||||
import org.x4o.vasc.annotations.VascStyle;
|
||||
import org.x4o.vasc.validators.VascDateFuture;
|
||||
import org.x4o.vasc.validators.VascObjectNotNull;
|
||||
import org.x4o.vasc.validators.VascStringLength;
|
||||
|
||||
//import org.hibernate.validator.NotNull;
|
||||
//import org.hibernate.validator.Max;
|
||||
|
||||
import com.idcanet.vasc.annotations.VascEntry;
|
||||
import com.idcanet.vasc.annotations.VascStyle;
|
||||
import com.idcanet.vasc.annotations.VascDefaultValue;
|
||||
import com.idcanet.vasc.annotations.VascModelReference;
|
||||
import com.idcanet.vasc.annotations.VascI18n;
|
||||
import com.idcanet.vasc.validators.VascDateFuture;
|
||||
import com.idcanet.vasc.validators.VascObjectNotNull;
|
||||
import com.idcanet.vasc.validators.VascStringLength;
|
||||
|
||||
/**
|
||||
* TestModel
|
||||
|
|
@ -24,23 +24,24 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc;
|
||||
package org.x4o.vasc;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.idcanet.vasc.core.AbstractVascBackend;
|
||||
import com.idcanet.vasc.core.VascBackendState;
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
||||
import com.idcanet.vasc.core.ui.VascSelectItem;
|
||||
import com.idcanet.vasc.core.ui.VascSelectItemModel;
|
||||
import com.idcanet.vasc.impl.entry.BeanPropertyVascEntryFieldValue;
|
||||
import com.idcanet.vasc.impl.entry.BeanVascEntryRecordCreator;
|
||||
import org.x4o.vasc.core.AbstractVascBackend;
|
||||
import org.x4o.vasc.core.VascBackendState;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||
import org.x4o.vasc.core.ui.VascSelectItem;
|
||||
import org.x4o.vasc.core.ui.VascSelectItemModel;
|
||||
import org.x4o.vasc.impl.entry.BeanPropertyVascEntryFieldValue;
|
||||
import org.x4o.vasc.impl.entry.BeanVascEntryRecordCreator;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -24,34 +24,35 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc;
|
||||
package org.x4o.vasc;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Locale;
|
||||
|
||||
import com.idcanet.vasc.core.VascBackend;
|
||||
import com.idcanet.vasc.core.VascBackendControllerLocal;
|
||||
import com.idcanet.vasc.core.VascController;
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.VascFrontendData;
|
||||
import com.idcanet.vasc.impl.DefaultVascBackedEntryFinalizer;
|
||||
import com.idcanet.vasc.impl.DefaultVascFactory;
|
||||
import com.idcanet.vasc.impl.DefaultVascFrontendData;
|
||||
import com.idcanet.vasc.impl.DefaultVascFrontendHelper;
|
||||
import com.idcanet.vasc.impl.VascBackendProxyPaged;
|
||||
import com.idcanet.vasc.impl.VascBackendProxySearch;
|
||||
import com.idcanet.vasc.impl.VascBackendProxySort;
|
||||
import com.idcanet.vasc.impl.actions.AddRowAction;
|
||||
import com.idcanet.vasc.impl.actions.CSVExportGlobalAction;
|
||||
import com.idcanet.vasc.impl.actions.DeleteRowAction;
|
||||
import com.idcanet.vasc.impl.actions.EditRowAction;
|
||||
import com.idcanet.vasc.impl.actions.RefreshDataGlobalAction;
|
||||
import com.idcanet.vasc.impl.actions.XMLExportGlobalAction;
|
||||
import com.idcanet.vasc.impl.x4o.VascParser;
|
||||
import org.x4o.vasc.core.VascBackend;
|
||||
import org.x4o.vasc.core.VascBackendControllerLocal;
|
||||
import org.x4o.vasc.core.VascController;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.VascFrontendData;
|
||||
import org.x4o.vasc.impl.DefaultVascBackedEntryFinalizer;
|
||||
import org.x4o.vasc.impl.DefaultVascFactory;
|
||||
import org.x4o.vasc.impl.DefaultVascFrontendData;
|
||||
import org.x4o.vasc.impl.DefaultVascFrontendHelper;
|
||||
import org.x4o.vasc.impl.VascBackendProxyPaged;
|
||||
import org.x4o.vasc.impl.VascBackendProxySearch;
|
||||
import org.x4o.vasc.impl.VascBackendProxySort;
|
||||
import org.x4o.vasc.impl.actions.AddRowAction;
|
||||
import org.x4o.vasc.impl.actions.CSVExportGlobalAction;
|
||||
import org.x4o.vasc.impl.actions.DeleteRowAction;
|
||||
import org.x4o.vasc.impl.actions.EditRowAction;
|
||||
import org.x4o.vasc.impl.actions.RefreshDataGlobalAction;
|
||||
import org.x4o.vasc.impl.actions.XMLExportGlobalAction;
|
||||
import org.x4o.vasc.impl.x4o.VascParser;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Loading…
Add table
Add a link
Reference in a new issue