Package org.openswing.swing.domains.java

Examples of org.openswing.swing.domains.java.Domain


      ex.printStackTrace();
    }


    // add user roles domain...
    Domain rolesDomain = new Domain("USERROLES");
    Iterator it = authorizations.getUserRoles().keySet().iterator();
    Object progressiveSYS04 = null;
    while(it.hasNext()) {
      progressiveSYS04 = new BigDecimal(it.next().toString());
      rolesDomain.addDomainPair(progressiveSYS04,authorizations.getUserRoles().get(progressiveSYS04).toString());
    }
    domains.put(
      rolesDomain.getDomainId(),
      rolesDomain
    );

    // add username panel to the status panel...
    GenericStatusPanel userPanel = new GenericStatusPanel();
View Full Code Here


        // set domain in combo box...
        ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
        ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
        final ArrayList companiesList = bca.getCompaniesList(functionCode);
        Domain domain = new Domain("DOMAIN_" + functionCode);
        for (int i = 0; i < companiesList.size(); i++) {
          if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
              functionCode,companiesList.get(i).toString()
          ))
            domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
        }
        super.setDomain(domain);

        if (applet.getAuthorizations().isOneCompany()) {
          new Thread() {
View Full Code Here

      // set domain in combo box...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("ACC06_BUDGET");
      Domain domain = new Domain("DOMAIN_ACC06_BUDGET");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "ACC06_BUDGET",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      controlCompaniesCombo.setDomain(domain);
      controlCompaniesCombo.getComboBox().setSelectedIndex(0);

      setSize(400,200);
View Full Code Here


  private void init() {
    // define combo on item types...
    Response res = ClientUtils.getData("loadItemTypes",new GridParams());
    final Domain d = new Domain("ITEM_TYPES");
    if (!res.isError()) {
      ItemTypeVO vo = null;
      itemTypes = ((VOListResponse)res).getRows();
      for(int i=0;i<itemTypes.size();i++) {
        vo = (ItemTypeVO)itemTypes.get(i);
        d.addDomainPair(vo.getProgressiveHie02ITM02(),vo.getDescriptionSYS10());
      }
    }
    colItemType.setDomain(d);
    colItemType.addItemListener(new ItemListener() {
      public void itemStateChanged(ItemEvent e) {
        if (e.getStateChange()==e.SELECTED) {
          try {
            int selIndex = ((JComboBox)e.getSource()).getSelectedIndex();
            Object selValue = d.getDomainPairList()[selIndex].getCode();
            ItemTypeVO vo = (ItemTypeVO)itemTypes.get(selIndex);
            treeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.PROGRESSIVE_HIE02,selValue);
            treeLevelDataLocator.getTreeNodeParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01ITM02());
            itemDataLocator.getLookupFrameParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01ITM02());
            itemDataLocator.getLookupValidationParameters().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01ITM02());
View Full Code Here

      return;

    ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
    ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
    ArrayList companiesList = bca.getCompaniesList(functionCode);
    final Domain domain = new Domain("DOMAIN_" + functionCode);
    for (int i = 0; i < companiesList.size(); i++) {
      domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
    }
    super.setDomain(domain);
    super.addItemListener(new ItemListener() {
      public void itemStateChanged(ItemEvent e) {
        if (e.getStateChange() == e.SELECTED &&
View Full Code Here

      init();


      Calendar cal = Calendar.getInstance();
      int year = cal.get(cal.YEAR);
      Domain d = new Domain("YEARS");
      for(int i=year-10;i<=year;i++)
        d.addDomainPair(new Integer(i),String.valueOf(i));
      controlYear.setDomain(d);
      controlYear.setValue(new Integer(year));

      d = new Domain("MONTHS");
      for(int i=0;i<=11;i++)
        d.addDomainPair(new Integer(i),String.valueOf(i+1));
      controlMonth.setDomain(d);

      MDIFrame.add(this);
      filterPanel.setMode(Consts.INSERT);
View Full Code Here

    controlComp.setFunctionCode("SCH03");
    controlCallOutTypes.setAttributeName("calloutType");

    // set call-out types in call-out type input control...
    Response res = ClientUtils.getData("loadCallOutTypes",new GridParams());
    Domain d = new Domain("CALL_OUT_TYPES");
    if (!res.isError()) {
      CallOutTypeVO vo = null;
      calloutTypes = ((VOListResponse)res).getRows();
      for(int i=0;i<calloutTypes.size();i++) {
        vo = (CallOutTypeVO)calloutTypes.get(i);
        d.addDomainPair(vo.getProgressiveHie02SCH11(),vo.getDescriptionSYS10());
      }
    }
    controlCallOutTypes.setDomain(d);

    buttonsPanel.setLayout(flowLayout1);
View Full Code Here

   */
  protected void initApplication() {
//    ClientUtils.setObjectSender(new HessianObjectSender());

    // define domains...
    Domain colTypeSYS12Domain = new Domain("COLUMN_TYPE");
    colTypeSYS12Domain.addDomainPair("S","text");
    colTypeSYS12Domain.addDomainPair("D","date");
    colTypeSYS12Domain.addDomainPair("N","numeric");
    domains.put(
      colTypeSYS12Domain.getDomainId(),
      colTypeSYS12Domain
    );

    Domain languagesDomain = new Domain("LANGUAGES");
    languagesDomain.addDomainPair("EN","english");
    languagesDomain.addDomainPair("IT","italian");
    languagesDomain.addDomainPair("ES","espanol");
    languagesDomain.addDomainPair("PTBR","brazilian");
    languagesDomain.addDomainPair("DE","german");
    languagesDomain.addDomainPair("HR","croatian");
    languagesDomain.addDomainPair("RU","russian");
    domains.put(
      languagesDomain.getDomainId(),
      languagesDomain
    );

    HashMap map = new HashMap();
    map.put("username","ADMIN");
View Full Code Here

      // fill in the company combo...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("SCH01");
      Domain domain = new Domain("DOMAIN_SCH01");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "SCH01",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      controlCompaniesCombo.setDomain(domain);


      // task lookup...
View Full Code Here

      // set domain in combo box...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("ACC06_CLOSE_ACCOUNT");
      Domain domain = new Domain("DOMAIN_ACC06_CLOSE_ACCOUNT");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "ACC06_CLOSE_ACCOUNT",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      controlCompaniesCombo.setDomain(domain);
      controlCompaniesCombo.addItemListener(new ItemListener() {
        public void itemStateChanged(ItemEvent e) {
          if (e.getStateChange()==e.SELECTED) {
View Full Code Here

TOP

Related Classes of org.openswing.swing.domains.java.Domain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.