Package cli_fmw.delegate.directory.complex

Examples of cli_fmw.delegate.directory.complex.DirectoryTextTemplateItem


private void btAddTemplateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddTemplateActionPerformed
    try {
        TextTemplateDetails details = new TextTemplateDetails();
        details.title = "Введите текст шаблона";
        details.groupId = templateNode.getID();
        DirectoryTextTemplateItem item = new DirectoryTextTemplateItem(details);
        dirTextTemplate.getItems().append(item);
        updateTable(templateNode);
    } catch (ClipsException ex) {
        MessageBox.showException(ex);
    }
View Full Code Here


    try {
        ArrayList<DirectoryTextTemplateItem> items =
                (ArrayList<DirectoryTextTemplateItem>) dirTextTemplate.getItems(templateNode);
        int[] sels = tblTemplates.getSelectedRowsSorted();
        for (int j = sels.length - 1; j > -1; j--) {
            DirectoryTextTemplateItem template = items.get(sels[j]);
            dirTextTemplate.getItems().remove(template);
        }
        updateTable(templateNode);
    } catch (ClipsException ex) {
        MessageBox.showException(ex);
View Full Code Here

            return;
        }           
        DirectoryTextTemplate dva = DirectoryLocator.getDirectory(DirectoryTextTemplate.class, false);
        SelectorEditableExceptional<DirectoryTextTemplateItem> sel = dva.getItems();
        for(int i=0; i<sel.size(); i++) {
            DirectoryTextTemplateItem item = sel.get(i);
            List found = findMatch(item, value);
            if(found != null) {                   
                found.add(treeTextTemplates.getModel().getRoot());
                ArrayList reordered = new ArrayList();
                for(int j=found.size()-1; j>=0; j--) {
View Full Code Here

    }

    @Override
    public void setValueAt(Object value, int row, int col) {
        try {
            DirectoryTextTemplateItem item = textTemplateList.get(row);
            if (col == COL_TITLE) {
                item.setTitle((String) value);
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
    }
View Full Code Here

        if (item != null) {
            try {
                DirectoryTextTemplate dir = (DirectoryTextTemplate) DirectoryLocator.getDirectory(DirectoryTextTemplate.class, false);
                List<DirectoryTextTemplateItem> list = dir.getItems(item);
                for (int i = 0; i < list.size(); i++) {
                    DirectoryTextTemplateItem li = list.get(i);
                    System.out.println("Model + " + li);
                    model.add(i, li);
                }
                delGroupBtn.setEnabled(item.getItems().size() == 0);
            } catch (ClipsException ex) {
View Full Code Here

            DirectoryTextTemplate dir = (DirectoryTextTemplate) DirectoryLocator.getDirectory(DirectoryTextTemplate.class, false);

            TextTemplateDetails details = new TextTemplateDetails();
            details.title = template;
            details.groupId = treeItem.getID();
            DirectoryTextTemplateItem newItem = new DirectoryTextTemplateItem(details);

            dir.getItems().append(newItem);
            rebuldListModel();
        }
    } catch (ClipsException ex) {
View Full Code Here

    }
}//GEN-LAST:event_newTemplateBtnActionPerformed

private void delTemplateBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_delTemplateBtnActionPerformed
    try {
        DirectoryTextTemplateItem tmpl = (DirectoryTextTemplateItem) mainList.getSelectedValue();
        if (template != null) {
            DirectoryTextTemplate dir = (DirectoryTextTemplate) DirectoryLocator.getDirectory(DirectoryTextTemplate.class, false);
            dir.getItems().remove(tmpl);
            rebuldListModel();
        }
View Full Code Here

TOP

Related Classes of cli_fmw.delegate.directory.complex.DirectoryTextTemplateItem

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.