Examples of ViewEntry


Examples of com.opengamma.integration.swing.ViewEntry

   
    _comboBox.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        JComboBox<ViewEntry> cb = (JComboBox<ViewEntry>) e.getSource();
        final ViewEntry viewEntry = (ViewEntry) cb.getSelectedItem();
        if (viewEntry != null) {
          SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
              ConfigItem<ViewDefinition> configItem = (ConfigItem<ViewDefinition>) configSource.get(viewEntry.getUniqueId());
              if (configItem.getValue() != null) {
                _portfolioTree.setModel(getPortfolioTreeModel(configItem.getValue().getPortfolioId(), getToolContext()));
              } else {
                JOptionPane.showMessageDialog(null, "There is no portfolio set in the selected view", "No portfolio", JOptionPane.ERROR_MESSAGE);
              }
View Full Code Here

Examples of lotus.domino.ViewEntry

      if(StringUtil.isNotEmpty(id)) {
        Database database = ExtLibUtil.getCurrentDatabase();
        Vector v = new Vector();
        v.add(FORM);
        v.add(id);
        ViewEntry e = database.getView("AllSnippetsById").getEntryByKey(v);
        if(e!=null) {
          Document doc = e.getDocument();
          Properties p = new Properties();
          String props = doc.getItemValueString("Properties");
          if(StringUtil.isNotEmpty(props)) {
            p.load(new StringReader(props));
          }
View Full Code Here

Examples of lotus.domino.ViewEntry

    d.copyAllItems(newDoc, true);
    newDoc.save();
  }
  public void copyEnvironment(DominoDocument doc, String name) throws NotesException, IOException {
    View v = ExtLibUtil.getCurrentDatabase().getView("AllEnvironments");
    ViewEntry ve = v.getEntryByKey(name);
    if(ve!=null) {
      Document d = ve.getDocument();
      d.copyAllItems(doc.getDocument(), true);
      doc.setDocument(doc.getDocument());
    }
  }
View Full Code Here

Examples of lotus.domino.ViewEntry

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getEntry(Object entry) throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getEntry(
          TypeConverter.toNotesItemValue(entry));
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
View Full Code Here

Examples of lotus.domino.ViewEntry

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getFirstEntry() throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getFirstEntry();
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
    } catch (NotesException e) {
View Full Code Here

Examples of lotus.domino.ViewEntry

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getNextEntry() throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getNextEntry();
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
    } catch (NotesException e) {
View Full Code Here

Examples of lotus.domino.ViewEntry

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getNextEntry(NotesViewEntry previousEntry)
      throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getEntry(
          TypeConverter.toNotesItemValue(previousEntry));
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
View Full Code Here

Examples of lotus.domino.ViewEntry

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getLastEntry() throws RepositoryException {
    try {
      ViewEntry foundEntry = getNotesObject().getLastEntry();
      if (foundEntry == null) {
        return null;
      }
      return new NotesViewEntryImpl(foundEntry);
    } catch (NotesException e) {
View Full Code Here

Examples of lotus.domino.ViewEntry

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getFirst() throws NotesConnectorExceptionImpl {
    try {
      ViewEntry first = getNotesObject().getFirst();
      if (first == null) {
        return null;
      }
      return new NotesViewEntryImpl(first);
    } catch (NotesException e) {
View Full Code Here

Examples of lotus.domino.ViewEntry

  /** {@inheritDoc} */
  @Override
  public NotesViewEntry getNext() throws NotesConnectorExceptionImpl {
    try {
      ViewEntry next = getNotesObject().getNext();
      if (next == null) {
        return null;
      }
      return new NotesViewEntryImpl(next);
    } catch (NotesException e) {
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.