Package hidb2.gui.util

Examples of hidb2.gui.util.DlgImageViewer


    gdTbl.horizontalAlignment = SWT.FILL;
    gdTbl.minimumHeight = 60;
    gdTbl.heightHint = 100;
    _tbl.setLayoutData(gdTbl);

    _tbl.addAttribut(new PojoColumnDescr("Attr", T_Object, "Attr", 80)
      {
        public CellEditor createCellEditor(final Table table)
          {
          if ((_cellEdt == null) && editable)
            {
View Full Code Here


    _tbl.addROAttribut("FileName", AttrType.T_String, "File", 120);

    _tbl.addROAttribut("Status", AttrType.T_Enum, "Status", 60);

    _tbl.addAttribut(new PojoColumnDescr("Action", AttrType.T_Enum, "Action", 80)
      {
        public CellEditor createCellEditor(final Table table)
          {
          if ((_cellEdt == null) && editable)
            {
View Full Code Here

    _tabvDp.getTable().setLayoutData(data_tabv);

    _tabvDp.addAttribut("Name", T_String, "Name", 100);
    _tabvDp.addAttribut("Comment", T_String, "Comment", 100);

    _tabvDp.addAttribut(new PojoColumnDescr("Path", T_String, "Path", 200)
      {
        public CellEditor createCellEditor(Table table)
          {
          if ((_cellEdt == null) && editable)
            {
View Full Code Here

   * @param toolkit
   * @param body
   */
  private void createFolderComp(Composite parent)
    {
    _fdPage = new PojoPageEditor(this, parent, _adLayout);

    // Add Management buttons
    Group btnGrp = new Group(parent, SWT.NONE);
    toolkit.adapt(btnGrp);
    btnGrp.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));
View Full Code Here

   * @param toolkit
   * @param body
   */
  private void createCardComp(Composite parent)
    {
    _cdPage = new PojoPageEditor(this, parent, _cdLayout);

    // Add Management (Prev/Next) buttons
    _cardBtnGrp = new Group(parent, SWT.NONE);
    toolkit.adapt(_cardBtnGrp);
    _cardBtnGrp.setLayout(FormLayoutFactory.createClearGridLayout(true, 4));
View Full Code Here

      });

    Label labA = new Label(panel, SWT.NONE);
    labA.setText("Attributes");

    _tbl = new PoserTableViewer(panel);

    GridData gdTbl = new GridData();
    gdTbl.grabExcessHorizontalSpace = true;
    gdTbl.horizontalAlignment = SWT.FILL;
    gdTbl.minimumHeight = 60;
View Full Code Here

          }
      });

    _fDescrImgIdx.setEditable(fde.isEditable());

    _tLayoutAttr = new PoserTableViewer(container);
    _tLayoutAttr.addROAttribut("Attr", AttrType.T_Object, "Attribut", 120);
    _tLayoutAttr.addAttribut("Width", AttrType.T_Integer, "Width", 80);
    _tLayoutAttr.addAttribut("Height", AttrType.T_Integer, "Height", 80);

    _tLayoutAttr.createMMI();
View Full Code Here

    panel.setLayout(new GridLayout(1, false));

//    Label labA = new Label(panel, SWT.NONE);
//    labA.setText("Attributes");

    _tbl = new PoserTableViewer(panel, SWT.SINGLE | SWT.FULL_SELECTION);

    GridData gdTbl = new GridData();
    gdTbl.grabExcessHorizontalSpace = true;
    gdTbl.horizontalAlignment = SWT.FILL;
    gdTbl.minimumHeight = 200;
View Full Code Here

    Composite container = toolkit.createComposite(section, SWT.NONE);
    container.setLayout(FormLayoutFactory.createSectionClientTableWrapLayout(false, 2));
    TableWrapData data = new TableWrapData(TableWrapData.FILL_GRAB);
    container.setLayoutData(data);

    _tabvDp = new PoserTableViewer(container, SWT.SINGLE | SWT.FULL_SELECTION);

    TableWrapData data_tabv = new TableWrapData(TableWrapData.FILL_GRAB);
    data_tabv.grabVertical = true;
    data_tabv.heightHint = 100 + 100 + 200;
    _tabvDp.getTable().setLayoutData(data_tabv);
View Full Code Here

    setContentProvider(new GenericTabContentProvider());
    setLabelProvider(new GenericTabLabelProvider());

    // Create Columns
    TableColumn colonne;
    TableSortSelectionListener listener;

    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
      if (indice == 0)
        {
        listener.chooseColumnForSorting();
        }
      }

    // Set the editors, cell modifier, and column properties
    setColumnProperties(_columnProp);
View Full Code Here

TOP

Related Classes of hidb2.gui.util.DlgImageViewer

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.