Package de.iritgo.aktario.framework.base

Examples of de.iritgo.aktario.framework.base.DataObject


      props.put("maximizable", false);
      props.put("maximized", false);
      props.put("titlebar", false);
      props.put("visible", true);

      DataObject dataObject = DataObjectTools.registerDataObject("BuddyList", AppContext.instance().getUser()
              .getUniqueId());

      CommandTools.performAsync(new ShowWindow("BuddyListPane", dataObject), props);

      props = new Properties();
View Full Code Here


    props.put("iconifiable", Boolean.FALSE);
    props.put("maximizable", Boolean.FALSE);
    props.put("maximized", Boolean.TRUE);
    props.put("titlebar", Boolean.FALSE);

    DataObject dataObject = (DataObject) ((QueryPane) swingGUIPane).getSelectedItem();

    if (dataObject == null)
    {
      return;
    }
View Full Code Here

  /**
   *
   */
  public void perform()
  {
    DataObject dataObject = (DataObject) ((QueryPane) swingGUIPane).getSelectedItem();

    if (dataObject == null)
    {
      return;
    }
View Full Code Here

        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)
          {
            Properties props = new Properties();
View Full Code Here

  }

  public void command(GUIPane guiPane, IObject iObject, Properties properties)
  {
    QueryPane queryPane = (QueryPane) guiPane;
    DataObject dataObject = (DataObject) iObject;

    if (dataObject == null)
    {
      return;
    }

    Point point = (Point) properties.get("mousePosition");
    JTable table = (JTable) properties.get("table");

    JPopupMenu popupMenu = new JPopupMenu();
    long id = dataObject.getUniqueId();
    String rawData = StringTools.trim(dataObject.getStringAttribute("journal_rawData"));

    String executeString = Engine.instance().getResourceService().getStringWithoutException("journalExecute");
    JMenuItem call = new JMenuItem("<html><span style=\"width:8em\"><b>" + executeString + "</b></span> " + rawData
            + "</html>", (Icon) executeIcon);
View Full Code Here

      ((KeelContextualizable) req).setKeelContext((Context) keelIritgoAuthMap.get(new Long(userUniqueId)));

      req.setParameter("id", keelObjectId);

      DataObject systemObject = (DataObject) Engine.instance().getBaseRegistry().get(dataObject.getUniqueId(),
              dataObject.getTypeId());

      for (Iterator i = dataObject.getAttributes().keySet().iterator(); i.hasNext();)
      {
        String attributeName = (String) i.next();

        systemObject.setAttribute(attributeName, dataObject.getAttribute(attributeName));
        req.setParameter(attributeName, dataObject.getAttribute(attributeName));
      }

      req.setParameter("id", dataObject.getStringAttribute("keelObjectId"));
View Full Code Here

TOP

Related Classes of de.iritgo.aktario.framework.base.DataObject

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.