Package hidb2.gui.node

Examples of hidb2.gui.node.FolderListNode


              _fd = new FileDialog(getShell());
              }

            if (_attrImg == null)
              {
              _attrImg = new AttrImage();
              _attrImg.setChecker(_attrImgLayout.getAttr().getChecker());
              }

            String fullname = _attrImg.getAbsolutePath();
View Full Code Here


      for (File imgfic : _tabMMFile)
        {
        Folder f = _inpFdn.create();

        AttrImage imgAttr = (AttrImage) _attr.create(Application.getDataStore(), imgfic);

        f.setValue(_attrIdx, imgAttr);

        if (res == C_ERROR)
          {
View Full Code Here

      div.setPref(pref.getInt(PrefConst.P_IVR_MIN_ZOOM), pref.getInt(PrefConst.P_IVR_MAX_ZOOM), pref
          .getInt(PrefConst.P_IVR_DEFAULT_WIDTH), pref.getInt(PrefConst.P_IVR_DEFAULT_HEIGHT));

      for (Card crd : lstCard)
        {
        AttrImage imgAttr = (AttrImage) crd.getValue(attrIdx);
        if (imgAttr != null)
          {
          File imgFile = new File(imgAttr.getAbsolutePath());

          if (imgFile.exists())
            {
            lstFic.add(imgFile);
            }
          else
            {
            log.warning("File [" + imgAttr.getAbsolutePath() + "] not found");
            }
          }
        }

      div.open(lstFic);
View Full Code Here

                for (File fic : lstMMFile)
                  {
                  DeltaMMFile dlt = new DeltaMMFile(fic);
                  dlt.setFoundFic(fic);

                  AttrImage imgAttr = (AttrImage) a1.create(Application.getDataStore(), fic);

                  if (imgAttr != null)
                    {
                    dlt.setAttrFile(imgAttr);
                    }
View Full Code Here

              //          Tracker tracker = new Tracker(_drawArea, SWT.RESIZE);
              @Override
              public void mouseDoubleClick(MouseEvent e)
                {
                AttrImage ai = (AttrImage) _data;

                // Set initial values (directory)
                if (_fd == null)
                  {
                  _fd = new FileDialog(_wid.getShell());
                  }

                if (ai == null)
                  {
                  _data = ai = new AttrImage();
                  ai.setChecker(_al.getAttr().getChecker());
                  }

                String fullname = ai.getAbsolutePath();

                if (fullname != null)
                  {
                  _fd.setFileName(fullname);
                  }

                fullname = _fd.open();

                if (fullname != null)
                  {
                  // Find & Use correct DataPath               
                  DataPath rDp = Application.getDataStore().findDataPath(fullname);

                  ai.setDataPath(rDp);

                  if (rDp != null)
                    {
                    fullname = fullname.substring(rDp.getPath().length());
                    }

                  ai.setValue(fullname);

                  if (ai.getStatus() == StatusCycle.UNCHANGED)
                    {
                    ai.setStatus(StatusCycle.MODIFIED);
                    }

                  _edPart.setDirty(true);
                  }
                else
View Full Code Here

        log.warning("Not Allowed here");
        break;

      case T_Image:
        log.warning("Not fully Implemented yet");
        AttrImage ai = (AttrImage) v;

        if (ai != null)
          {
          // TODO : Use right size for the square icon
          ((ImageCanvas) _wid).setImage(ai.getSqrImage(_wid.getDisplay(), 64));
          _wid.redraw();
          }

        break;
View Full Code Here

    _mapIdx = new int[nbcol];
    _mapAttr = new Attribut[nbcol];

    for (int i = 0; i < nbcol; i++)
      {
      Attribut attr = _fd.getAttributList().get(i);
      _mapAttr[attr.getDisplayOrder()] = attr;
      _columnProp[attr.getDisplayOrder()] = attr.getColName();
      _mapIdx[attr.getDisplayOrder()] = i;
      }

    // Transversal TAB key Management - Tested OK
    TableViewerFocusCellManager tvfcm = new TableViewerFocusCellManager(this, new FocusCellOwnerDrawHighlighter(this));
    ColumnViewerEditorActivationStrategy cveas = new ColumnViewerEditorActivationStrategy(this);
View Full Code Here

    for (int indice = 0; indice < _fd.getAttributList().size(); indice++)
      {
      int wicon = 0;

      Attribut attr = _mapAttr[indice];

      colonne = new TableColumn(tabFile, SWT.LEFT);
      colonne.setText(attr.getName());

      if (attr.getType() == AttrType.T_Image)
        {
        wicon = ((AttrImageChecker) attr.getChecker()).getIconSize();
        if (wicon > _maxIconSize)
          {
          _maxIconSize = wicon;
          }
        }

      colonne.setWidth(Math.max(attr.getColumnWidth(), wicon));

      // Create sorter
      listener = new TableSortSelectionListener(this, colonne, new GenericTabSorter(indice), SWT.UP, false);

      // Initialise sort for 1st column
View Full Code Here

      ValuedInstance vi = (ValuedInstance) element;

      Object o = vi.getValue(_mapIdx[idx]);

      Attribut attr = _fd.getAttributList().get(_mapIdx[idx]);

      if ((attr.getType() == AttrType.T_RefList) && (o != null))
        {
        AttrEnumItemChecker aei = (AttrEnumItemChecker) attr.getChecker();

        int idxName = aei.getLstEnumItem().indexOf(o);

        o = new Integer(idxName);
        }
View Full Code Here

      if (value != null)
        {
        int idx = getPropIndex(property);
        ValuedInstance vi = (ValuedInstance) ((TableItem) element).getData();

        Attribut attr = _fd.getAttributList().get(_mapIdx[idx]);

        switch (attr.getType())
          {
          case T_Date:
            value = new java.sql.Date(((Date) value).getTime());
            break;

          case T_Time:
            value = new Time(((Date) value).getTime());
            break;

          case T_TimeStamp:
            value = new Timestamp(((Date) value).getTime());
            break;

          case T_RefList:
            int index = (Integer) value;

            AttrEnumItemChecker aei = (AttrEnumItemChecker) attr.getChecker();

            value = aei.getLstEnumItem().get(index);
            break;
          }
View Full Code Here

TOP

Related Classes of hidb2.gui.node.FolderListNode

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.