package demo23;
import java.util.*;
import org.openswing.swing.internationalization.java.EnglishOnlyResourceFactory;
import org.openswing.swing.domains.java.*;
import java.sql.*;
import org.openswing.swing.util.client.*;
import org.openswing.swing.internationalization.java.*;
/**
* <p>Title: OpenSwing Demo</p>
* <p>Description: Used to start application from main method:
* it creates an editable grid frame having a column with multiple data types.</p>
* <p>Copyright: Copyright (C) 2006 Mauro Carniel</p>
* <p> </p>
* @author Mauro Carniel
* @version 1.0
*/
public class ClientApplication {
Connection conn = null;
public ClientApplication() {
Hashtable domains = new Hashtable();
Properties props = new Properties();
props.setProperty("propertyName","Property Name");
props.setProperty("propertyValue","Property Value");
props.setProperty("opened","Opened");
props.setProperty("suspended","Suspended");
props.setProperty("delivered","Delivered");
props.setProperty("closed","Closed");
ClientSettings clientSettings = new ClientSettings(
new EnglishOnlyResourceFactory("�",props,false),
domains
);
Domain orderStateDomain = new Domain("ORDERSTATE");
orderStateDomain.addDomainPair("O","opened");
orderStateDomain.addDomainPair("S","suspended");
orderStateDomain.addDomainPair("D","delivered");
orderStateDomain.addDomainPair("ABC","closed");
domains.put(
orderStateDomain.getDomainId(),
orderStateDomain
);
new GridFrameController();
}
public static void main(String[] argv) {
new ClientApplication();
}
}