/** * Constructs a new <code>ConnectorHierarchyTreeModel</code> instance. * * @param rootConnector * the connector being the root node of the tree. */ public ConnectorHierarchyTreeModel(ICompositeValueConnector rootConnector) { this.rootConnector = rootConnector; connectorsListener = new TreeConnectorsListener(); checkListenerRegistrationForConnector(rootConnector); addTreeModelListener(this); }
/** * {@inheritDoc} */ public void valueChange(@SuppressWarnings("unused") ValueChangeEvent evt) { setConnecteeValue(getConnecteeValue()); } }
/** * Constructs a new <code>DefaultTreeSelectionModelBinder</code> instance. */ public DefaultTreeSelectionModelBinder() { genericSelectionModelListener = new SelectionModelListener(); }
/** * Constructs a new <code>TreeConnectorsListener</code> instance. * * @param rootConnector * the root connector of the connector hierarchy. * @param selectionModel * the selection model of the related tree. */ public TreeConnectorsListener(IValueConnector rootConnector, TreeSelectionModel selectionModel) { connectorsSelectionListener = new CollectionConnectorsSelectionListener( rootConnector, selectionModel); checkListenerRegistrationForConnector((ICollectionConnectorListProvider) rootConnector); }
private void bindConnector() { collectionConnector .addConnectorValueChangeListener(new TableConnectorListener()); for (int row = 0; row < collectionConnector.getChildConnectorCount(); row++) { bindChildRowConnector(row); } }
/** * {@inheritDoc} */ public boolean areChildrenReadable() { return isReadable(); }
/** * {@inheritDoc} */ public void valueChange( @SuppressWarnings("unused") final ValueChangeEvent evt) { updateCell(); }
/** * {@inheritDoc} */ @Override protected SPasswordField getConnectedSComponent() { return (SPasswordField) super.getConnectedSComponent(); } }
private TreePath getTreePathForConnector(IValueConnector connector) { return ConnectorTreeHelper.getTreePathForConnector(rootConnector, connector); } }
/** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } });
/** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } });
/** * {@inheritDoc} */ public boolean isLeaf(Object node) { if (node == rootConnector) { return false; } return getChildCount(node) == 0; }
/** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } });
/** * {@inheritDoc} */ public boolean areChildrenWritable() { return isWritable(); }
/** * Constructs a new <code>CollectionConnectorListModel</code> instance. * * @param collectionConnector * the collection connector holding the values of this list model. */ public CollectionConnectorListModel(ICollectionConnector collectionConnector) { super(); this.collectionConnector = collectionConnector; bindConnector(); }
/** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } });
/** * Constructs a new <code>ConnectorHierarchyTreeModel</code> instance. * * @param rootConnector * the connector being the root node of the tree. */ public ConnectorHierarchyTreeModel(ICompositeValueConnector rootConnector) { this.rootConnector = rootConnector; connectorsListener = new TreeConnectorsListener(); checkListenerRegistrationForConnector(rootConnector); addTreeModelListener(this); }
/** * Constructs a new <code>DefaultTreeSelectionModelBinder</code> instance. */ public DefaultTreeSelectionModelBinder() { genericSelectionModelListener = new SelectionModelListener(); }
/** * {@inheritDoc} */ public boolean areChildrenReadable() { return isReadable(); }
/** * {@inheritDoc} */ public void propertyChange( @SuppressWarnings("unused") final PropertyChangeEvent evt) { updateCell(); }