renamed better
This commit is contained in:
parent
cc6331b7fe
commit
a523cc9122
289 changed files with 2546 additions and 1608 deletions
|
|
@ -2,17 +2,17 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<artifactId>vasc</artifactId>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<groupId>net.forwardfire.vasc</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
</parent>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<groupId>net.forwardfire.vasc</groupId>
|
||||
<artifactId>vasc-frontend-swt</artifactId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<name>vasc-frontend-swt</name>
|
||||
<description>vasc-frontend-swt</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<groupId>net.forwardfire.vasc</groupId>
|
||||
<artifactId>vasc-core</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,14 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc.frontends.swt;
|
||||
package net.forwardfire.vasc.frontends.swt;
|
||||
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.ui.VascColumnValueModelListener;
|
||||
import net.forwardfire.vasc.core.ui.VascUIComponent;
|
||||
import net.forwardfire.vasc.core.ui.VascValueModel;
|
||||
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.SelectionAdapter;
|
||||
|
|
@ -41,12 +48,6 @@ import org.eclipse.swt.widgets.Dialog;
|
|||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.swt.widgets.Label;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascColumnValueModelListener;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -24,13 +24,34 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc.frontends.swt;
|
||||
package net.forwardfire.vasc.frontends.swt;
|
||||
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import net.forwardfire.vasc.core.AbstractVascFrontend;
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.VascFrontendData;
|
||||
import net.forwardfire.vasc.core.actions.GlobalVascAction;
|
||||
import net.forwardfire.vasc.core.actions.RowVascAction;
|
||||
import net.forwardfire.vasc.core.entry.VascEntryExporter;
|
||||
import net.forwardfire.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import net.forwardfire.vasc.core.entry.VascEntryFrontendEventListener.VascFrontendEventType;
|
||||
import net.forwardfire.vasc.core.ui.VascOptionValueModelListener;
|
||||
import net.forwardfire.vasc.core.ui.VascUIComponent;
|
||||
import net.forwardfire.vasc.core.ui.VascValueModel;
|
||||
import net.forwardfire.vasc.core.ui.VascValueModelListener;
|
||||
import net.forwardfire.vasc.frontends.swt.ui.SwtBoolean;
|
||||
import net.forwardfire.vasc.frontends.swt.ui.SwtButton;
|
||||
import net.forwardfire.vasc.frontends.swt.ui.SwtLabel;
|
||||
import net.forwardfire.vasc.frontends.swt.ui.SwtList;
|
||||
import net.forwardfire.vasc.frontends.swt.ui.SwtText;
|
||||
import net.forwardfire.vasc.frontends.swt.ui.SwtTextArea;
|
||||
|
||||
import org.eclipse.jface.viewers.ILabelProviderListener;
|
||||
import org.eclipse.jface.viewers.IStructuredContentProvider;
|
||||
import org.eclipse.jface.viewers.ITableLabelProvider;
|
||||
|
|
@ -66,26 +87,6 @@ import org.eclipse.swt.widgets.TableColumn;
|
|||
import org.eclipse.swt.widgets.Text;
|
||||
import org.eclipse.swt.widgets.ToolBar;
|
||||
import org.eclipse.swt.widgets.ToolItem;
|
||||
import org.x4o.vasc.core.AbstractVascFrontend;
|
||||
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.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.entry.VascEntryFrontendEventListener.VascFrontendEventType;
|
||||
import org.x4o.vasc.core.ui.VascOptionValueModelListener;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.ui.VascValueModelListener;
|
||||
import org.x4o.vasc.frontends.swt.ui.SwtBoolean;
|
||||
import org.x4o.vasc.frontends.swt.ui.SwtButton;
|
||||
import org.x4o.vasc.frontends.swt.ui.SwtLabel;
|
||||
import org.x4o.vasc.frontends.swt.ui.SwtList;
|
||||
import org.x4o.vasc.frontends.swt.ui.SwtText;
|
||||
import org.x4o.vasc.frontends.swt.ui.SwtTextArea;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -105,7 +106,7 @@ public class SwtVascFrontend extends AbstractVascFrontend {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.VascFrontend#getFrontendType()
|
||||
* @see net.forwardfire.vasc.core.VascFrontend#getFrontendType()
|
||||
*/
|
||||
public String getFrontendType() {
|
||||
return "swt";
|
||||
|
|
@ -317,12 +318,12 @@ public class SwtVascFrontend extends AbstractVascFrontend {
|
|||
for (VascEntryField option:entry.getListOptions()) {
|
||||
for (int i=0;i<option.getVascEntryFieldType().getUIComponentCount(option);i++) {
|
||||
|
||||
org.x4o.vasc.core.ui.VascUIComponent label = option.getVascEntryFieldType().provideLabelUIComponent(i,option);
|
||||
net.forwardfire.vasc.core.ui.VascUIComponent label = option.getVascEntryFieldType().provideLabelUIComponent(i,option);
|
||||
VascValueModel model = new VascValueModel();
|
||||
model.setValue(i18n(option.getName()));
|
||||
label.createComponent(entry,option,model,headerOptions);
|
||||
|
||||
org.x4o.vasc.core.ui.VascUIComponent editor = option.getVascEntryFieldType().provideEditorUIComponent(i,option);
|
||||
net.forwardfire.vasc.core.ui.VascUIComponent editor = option.getVascEntryFieldType().provideEditorUIComponent(i,option);
|
||||
model = new VascValueModel(option.getVascEntryFieldType().provideEditorVascValueModel(i,option));
|
||||
model.addListener(new VascOptionValueModelListener(option));
|
||||
model.setValue(null);
|
||||
|
|
@ -24,7 +24,13 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc.frontends.swt.ui;
|
||||
package net.forwardfire.vasc.frontends.swt.ui;
|
||||
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.ui.VascUIComponent;
|
||||
import net.forwardfire.vasc.core.ui.VascValueModel;
|
||||
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.SelectionAdapter;
|
||||
|
|
@ -32,11 +38,6 @@ import org.eclipse.swt.events.SelectionEvent;
|
|||
import org.eclipse.swt.graphics.Color;
|
||||
import org.eclipse.swt.widgets.Button;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
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;
|
||||
|
||||
|
||||
|
||||
|
|
@ -78,7 +79,7 @@ public class SwtBoolean implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (button==null) {
|
||||
|
|
@ -88,7 +89,7 @@ public class SwtBoolean implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (button==null) {
|
||||
|
|
@ -103,28 +104,28 @@ public class SwtBoolean implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !button.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
button.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return button.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
button.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,13 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc.frontends.swt.ui;
|
||||
package net.forwardfire.vasc.frontends.swt.ui;
|
||||
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.ui.VascUIComponent;
|
||||
import net.forwardfire.vasc.core.ui.VascValueModel;
|
||||
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.SelectionAdapter;
|
||||
|
|
@ -32,11 +38,6 @@ import org.eclipse.swt.events.SelectionEvent;
|
|||
import org.eclipse.swt.graphics.Color;
|
||||
import org.eclipse.swt.widgets.Button;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
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;
|
||||
|
||||
|
||||
|
||||
|
|
@ -67,7 +68,7 @@ public class SwtButton implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (button==null) {
|
||||
|
|
@ -77,7 +78,7 @@ public class SwtButton implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (button==null) {
|
||||
|
|
@ -92,28 +93,28 @@ public class SwtButton implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !button.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
button.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return button.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
button.setVisible(rendered);
|
||||
|
|
@ -24,17 +24,18 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc.frontends.swt.ui;
|
||||
package net.forwardfire.vasc.frontends.swt.ui;
|
||||
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.ui.VascUIComponent;
|
||||
import net.forwardfire.vasc.core.ui.VascValueModel;
|
||||
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.graphics.Color;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Label;
|
||||
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 SwtLabel implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (label==null) {
|
||||
|
|
@ -68,7 +69,7 @@ public class SwtLabel implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (label==null) {
|
||||
|
|
@ -83,28 +84,28 @@ public class SwtLabel implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !label.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
label.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return label.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
label.setVisible(rendered);
|
||||
|
|
@ -24,24 +24,25 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc.frontends.swt.ui;
|
||||
package net.forwardfire.vasc.frontends.swt.ui;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.ui.VascSelectItem;
|
||||
import net.forwardfire.vasc.core.ui.VascSelectItemModel;
|
||||
import net.forwardfire.vasc.core.ui.VascUIComponent;
|
||||
import net.forwardfire.vasc.core.ui.VascValueModel;
|
||||
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.SelectionAdapter;
|
||||
import org.eclipse.swt.events.SelectionEvent;
|
||||
import org.eclipse.swt.graphics.Color;
|
||||
import org.eclipse.swt.widgets.Combo;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
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;
|
||||
|
||||
|
||||
|
||||
|
|
@ -125,7 +126,7 @@ public class SwtList implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (combo==null) {
|
||||
|
|
@ -135,7 +136,7 @@ public class SwtList implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
if (combo==null) {
|
||||
|
|
@ -150,28 +151,28 @@ public class SwtList implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !combo.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
combo.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return combo.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
combo.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,13 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc.frontends.swt.ui;
|
||||
package net.forwardfire.vasc.frontends.swt.ui;
|
||||
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.ui.VascUIComponent;
|
||||
import net.forwardfire.vasc.core.ui.VascValueModel;
|
||||
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.ModifyEvent;
|
||||
|
|
@ -32,11 +38,6 @@ import org.eclipse.swt.events.ModifyListener;
|
|||
import org.eclipse.swt.graphics.Color;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Text;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -84,7 +85,7 @@ public class SwtText implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (text==null) {
|
||||
|
|
@ -94,7 +95,7 @@ public class SwtText implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String textString) {
|
||||
if (text==null) {
|
||||
|
|
@ -109,28 +110,28 @@ public class SwtText implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !text.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
text.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return text.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
text.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,13 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc.frontends.swt.ui;
|
||||
package net.forwardfire.vasc.frontends.swt.ui;
|
||||
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.ui.VascUIComponent;
|
||||
import net.forwardfire.vasc.core.ui.VascValueModel;
|
||||
|
||||
import org.eclipse.swt.SWT;
|
||||
import org.eclipse.swt.events.ModifyEvent;
|
||||
|
|
@ -35,11 +41,6 @@ import org.eclipse.swt.graphics.GC;
|
|||
import org.eclipse.swt.layout.GridData;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Text;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -108,7 +109,7 @@ public class SwtTextArea implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
if (text==null) {
|
||||
|
|
@ -118,7 +119,7 @@ public class SwtTextArea implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String textString) {
|
||||
if (text==null) {
|
||||
|
|
@ -133,28 +134,28 @@ public class SwtTextArea implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return !text.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
text.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
return text.isVisible();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see net.forwardfire.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
text.setVisible(rendered);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc;
|
||||
package net.forwardfire.vasc;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
|
@ -24,15 +24,16 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc;
|
||||
package net.forwardfire.vasc;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.logging.LogManager;
|
||||
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.frontends.swt.SwtVascFrontend;
|
||||
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.frontends.swt.SwtVascFrontend;
|
||||
|
||||
|
||||
|
||||
|
|
@ -25,18 +25,19 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc;
|
||||
package net.forwardfire.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 net.forwardfire.vasc.annotations.VascDefaultValue;
|
||||
import net.forwardfire.vasc.annotations.VascEntry;
|
||||
import net.forwardfire.vasc.annotations.VascI18n;
|
||||
import net.forwardfire.vasc.annotations.VascModelReference;
|
||||
import net.forwardfire.vasc.annotations.VascStyle;
|
||||
import net.forwardfire.vasc.validators.VascDateFuture;
|
||||
import net.forwardfire.vasc.validators.VascObjectNotNull;
|
||||
import net.forwardfire.vasc.validators.VascStringLength;
|
||||
|
||||
|
||||
//import org.hibernate.validator.NotNull;
|
||||
//import org.hibernate.validator.Max;
|
||||
|
|
@ -24,23 +24,24 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc;
|
||||
package net.forwardfire.vasc;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
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;
|
||||
import net.forwardfire.vasc.core.AbstractVascBackend;
|
||||
import net.forwardfire.vasc.core.VascBackendState;
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.entry.VascEntryFieldValue;
|
||||
import net.forwardfire.vasc.core.entry.VascEntryRecordCreator;
|
||||
import net.forwardfire.vasc.core.ui.VascSelectItem;
|
||||
import net.forwardfire.vasc.core.ui.VascSelectItemModel;
|
||||
import net.forwardfire.vasc.impl.entry.BeanPropertyVascEntryFieldValue;
|
||||
import net.forwardfire.vasc.impl.entry.BeanVascEntryRecordCreator;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -24,34 +24,35 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package org.x4o.vasc;
|
||||
package net.forwardfire.vasc;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Locale;
|
||||
|
||||
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;
|
||||
import net.forwardfire.vasc.core.VascBackend;
|
||||
import net.forwardfire.vasc.core.VascBackendControllerLocal;
|
||||
import net.forwardfire.vasc.core.VascController;
|
||||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascException;
|
||||
import net.forwardfire.vasc.core.VascFrontendData;
|
||||
import net.forwardfire.vasc.impl.DefaultVascBackedEntryFinalizer;
|
||||
import net.forwardfire.vasc.impl.DefaultVascFactory;
|
||||
import net.forwardfire.vasc.impl.DefaultVascFrontendData;
|
||||
import net.forwardfire.vasc.impl.DefaultVascFrontendHelper;
|
||||
import net.forwardfire.vasc.impl.VascBackendProxyPaged;
|
||||
import net.forwardfire.vasc.impl.VascBackendProxySearch;
|
||||
import net.forwardfire.vasc.impl.VascBackendProxySort;
|
||||
import net.forwardfire.vasc.impl.actions.AddRowAction;
|
||||
import net.forwardfire.vasc.impl.actions.CSVExportGlobalAction;
|
||||
import net.forwardfire.vasc.impl.actions.DeleteRowAction;
|
||||
import net.forwardfire.vasc.impl.actions.EditRowAction;
|
||||
import net.forwardfire.vasc.impl.actions.RefreshDataGlobalAction;
|
||||
import net.forwardfire.vasc.impl.actions.XMLExportGlobalAction;
|
||||
import net.forwardfire.vasc.impl.x4o.VascParser;
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue