Examples of FolderDescription


Examples of hidb2.kern.FolderDescription

      // Control Destination Class
      if (obj instanceof FolderDescrNode)
        {
        FolderDescrNode on = (FolderDescrNode) obj;

        FolderDescription fd = (FolderDescription) on.getDescr();

        fd.updateStats(Application.getDataStore());

        // Calculate Impact + Confirmation window
        boolean rb = MessageDialog.openConfirm(wbwin.getShell(), "Delete Folder Description",
            "Do you confirm the deletion of :" + fd.getName() + "\nHaving : " + fd.getNbInstance() + " folders");

        if (rb)
          {
          fd.setStatus(StatusCycle.DELETED);

          fd.write(Application.getDataStore());

          DefaultNode p = on.getParent();
         
          p.removeChild(on);
View Full Code Here

Examples of hidb2.kern.FolderDescription

      {
        public void widgetSelected(SelectionEvent e)
          {
          int idx = _cmbDescr.getSelectionIndex();

          FolderDescription nfd = Application.getDataStore().getFolderDescriptionList().get(idx);

          if (_query.fd != nfd)
            {
            _query.fd = nfd;
            String[] tblAttrName = new String[nfd.getAttributList().size()];
            int i = 0;
            for (Attribut a : nfd.getAttributList())
              {
              tblAttrName[i++] = a.getName();
              }

            _cmbCellEditor.setItems(tblAttrName);
View Full Code Here

Examples of hidb2.kern.FolderDescription

              if (rc == C_OK)
                {
                // Display search results
                for (FolderSearchResult fsr : lstSR)
                  {
                  FolderDescription fd = null;
                  CardDescription cd = null;
                  boolean isCard = false;

                  // Retrieve FolderDescription
                  AttributedDescription ad = das.find(fsr.getTableName());
View Full Code Here

Examples of hidb2.kern.FolderDescription

   */
  protected void pageChange(int newPageIndex)
    {
    super.pageChange(newPageIndex);

    FolderDescription fd = getFD();

    switch (newPageIndex)
      {
      case 0:
        setPartName(fd.getName());

        _fNameEntry.setValue(fd.getName(), true);

        _fCmtEntry.setValue(fd.getComment(), true);

        _fIdxIconEntry.setValue(Integer.toString(fd.getIconAttrIndex()), true);

        _fIdxLabelEntry.setValue(Integer.toString(fd.getLabelAttrIndex()), true);

        // Fill Statistic fields
        _fMainTable.setValue(fd.getTName(), true);
        _fCardTable.setValue(fd.getCardDescription().getTName(), true);

        fd.updateStats(Application.getDataStore());
        _fNbInstance.setValue(Long.toString(fd.getNbInstance()), true);
        break;

      case 1:
        _tabvFdAttr.setDescr(fd);
        break;

      case 2:
        _tabvCdAttr.setDescr(fd.getCardDescription());
        break;

      case 3:
        // Check if layout data are created or read
        if (_adLayout == null)
          {
          _adLayout = Application.getDataStore().readLayout(fd);
          }

        if (_cdLayout == null)
          {
          _cdLayout = Application.getDataStore().readLayout(fd.getCardDescription());
          }

        // Fill layout general fields
        _lsMainLayout.setLayout(_adLayout);
        _lsCardLayout.setLayout(_cdLayout);
View Full Code Here

Examples of hidb2.kern.FolderDescription

   */
  protected void pageChange(int newPageIndex)
    {
    super.pageChange(newPageIndex);

    FolderDescription fd = getFD();

    switch (newPageIndex)
      {
      case 0:
        setPartName(fd.getName());

        _fNameEntry.setValue(fd.getName(), true);

        _fCmtEntry.setValue(fd.getComment(), true);

        _fIdxIconEntry.setValue(Integer.toString(fd.getIconAttrIndex()), true);

        _fIdxLabelEntry.setValue(Integer.toString(fd.getLabelAttrIndex()), true);

        // Fill Statistic fields
        _fMainTable.setValue(fd.getTName(), true);
        _fCardTable.setValue(fd.getCardDescription().getTName(), true);

        fd.updateStats(Application.getDataStore());
        _fNbInstance.setValue(Long.toString(fd.getNbInstance()), true);
        break;

      case 1:
        _tabvFdAttr.setDescr(fd);
        break;

      case 2:
        _tabvCdAttr.setDescr(fd.getCardDescription());
        break;
      }
    }
View Full Code Here

Examples of hidb2.kern.FolderDescription

        if (obj instanceof FolderDescrTitleNode)
          {
          if (iwp instanceof DBStructView)
            {
            // Create a new FolderDescrNode and open the editor
            FolderDescription fd = Application.getDataStore().createFolderDescription();
            FolderDescrNode fnd = new FolderDescrNode(fd);
            ((FolderDescrTitleNode) obj).addChild(fnd);

            page.openEditor(fnd, FolderDescrEditor.ID);
View Full Code Here

Examples of hidb2.kern.FolderDescription

      {
        public void widgetSelected(SelectionEvent e)
          {
          int idx = _cmbDescr.getSelectionIndex();

          FolderDescription nfd = Application.getDataStore().getFolderDescriptionList().get(idx);

          if (_query.fd != nfd)
            {
            _query.fd = nfd;
            String[] tblAttrName = new String[nfd.getAttributList().size()];
            int i = 0;
            for (Attribut a : nfd.getAttributList())
              {
              tblAttrName[i++] = a.getName();
              }

            _cmbCellEditor.setItems(tblAttrName);
View Full Code Here

Examples of hidb2.kern.FolderDescription

              if (rc == C_OK)
                {
                // Display search results
                for (FolderSearchResult fsr : lstSR)
                  {
                  FolderDescription fd = null;
                  CardDescription cd = null;
                  boolean isCard = false;

                  // Retrieve FolderDescription
                  AttributedDescription ad = das.find(fsr.getTableName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.