Package de.iritgo.aktario.core.iobject

Examples of de.iritgo.aktario.core.iobject.IObjectList


          return false;
        }

        public Object getValueAt(int row, int col)
        {
          IObjectList list = ((AkteraQuery) getIObject()).getIObjectListResults();

          DataObject akteraQuery = (DataObject) list.get(row);

          Object object = new LinkedList(akteraQuery.getAttributes().values()).get(col);

          return object;
        }
      };

      akteraQueryTable.setShowGrid(true);

      akteraQueryTable.setCellSelectionEnabled(false);

      akteraQueryTable.setRowSelectionAllowed(true);

      akteraQueryTable.setSelectionMode(0);

      akteraQueryTable.setRowHeight(Math.max(akteraQueryTable.getRowHeight() + 4, 24 + 4));

      akteraQueryScrollPane.getColumnHeader().setVisible(true);

      tableSorter = akteraQueryTableModel.getTableSorter();
      akteraQueryTable.setModel(tableSorter);
      akteraQueryTableModel.addTableModelListener(this);

      akteraQueryTable.addMouseListener(new MouseAdapter()
      {
        public void mouseClicked(MouseEvent e)
        {
          int col = akteraQueryTable.columnAtPoint(e.getPoint());
          int row = tableSorter.getRealRow(akteraQueryTable.getSelectedRow());

          if ((col < 0) || (row < 0))
          {
            return;
          }

          IObjectList list = ((AkteraQuery) getIObject()).getIObjectListResults();

          DataObject akteraQuery = (DataObject) list.get(row);

          String attributeName = (String) new LinkedList(akteraQuery.getAttributes().keySet()).get(col);

          if (e.getClickCount() == 2)
          {
View Full Code Here


    return new AkteraQueryPane();
  }

  public DynDataObject getIObjectAtRow(int row)
  {
    IObjectList list = ((AkteraQuery) getIObject()).getIObjectListResults();

    DynDataObject dynDataObject = (DynDataObject) list.get(tableSorter.getRealRow(row));

    return dynDataObject;
  }
View Full Code Here

    setAttribute("listSearchValues", listSearchValues);
  }

  public void refresh()
  {
    IObjectList results = (IObjectList) getIObjectListResults();

    results.clearIObjectList();
    doQuery();
  }
View Full Code Here

    {
      return;
    }

    ResponseElement resultList = result.get("list");
    IObjectList results = (IObjectList) akteraQuery.getIObjectListResults();

    if (resultList == null)
    {
      Log.logError("ConnectorServerManager", "No result list for model: " + model);
    }

    registerListElement(resultList, model);

    List rows = resultList.getAll();
    DynDataObject listObject = null;

    for (Iterator i = rows.iterator(); i.hasNext();)
    {
      ResponseElement row = (ResponseElement) i.next();

      listObject = createQueryDataObjectAndRegister(row, row.getAll().iterator(), resultList, model, akteraQuery);

      if (listObject != null)
      {
        // System.out.println (listObject.dump ());
        results.add(listObject);
      }
    }

    Input attribute = (Input) result.get("listSearchCategory");
View Full Code Here

TOP

Related Classes of de.iritgo.aktario.core.iobject.IObjectList

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.