Esempio n. 1
0
  public ClientApplication() {

    Hashtable domains = new Hashtable();
    Properties props = new Properties();
    props.setProperty("category", "Category");
    props.setProperty("subCategory", "Sub Category");
    props.setProperty("item", "Item");
    props.setProperty("sellQty", "Qty");
    props.setProperty("sellAmount", "Sell");
    props.setProperty("orderDate", "Order Date");
    props.setProperty("year", "Year");
    props.setProperty("quarter", "Quarter");
    props.setProperty("sells", "Sells");
    props.setProperty("agent", "Agent");
    props.setProperty("country", "Country");
    props.setProperty("region", "Region");

    ClientSettings clientSettings =
        new ClientSettings(new EnglishOnlyResourceFactory("£", props, true), domains);
    ClientSettings.FILTER_PANEL_ON_GRID = true;

    Domain orderStateDomain = new Domain("ORDERSTATE");
    orderStateDomain.addDomainPair(new Integer(0), "opened");
    orderStateDomain.addDomainPair(new Integer(1), "suspended");
    orderStateDomain.addDomainPair(new Integer(2), "delivered");
    orderStateDomain.addDomainPair(new Integer(3), "closed");
    domains.put(orderStateDomain.getDomainId(), orderStateDomain);
    ClientSettings.ALLOW_OR_OPERATOR = false;
    ClientSettings.INCLUDE_IN_OPERATOR = false;
    ClientSettings.GRID_PROFILE_MANAGER = new FileGridProfileManager();

    // createData();
    long t = System.currentTimeMillis();
    //    ArrayList vos = loadData();
    //    System.out.println("Loading data in "+(System.currentTimeMillis()-t)+"ms");
    //    ArrayList vos = null;
    //    new GridFrame(vos);

    new GridFrame();
  }
Esempio n. 2
0
 /** Method used to destroy application. */
 public void stopApplication() {
   System.exit(0);
 }