Package clips.delegate.directory.simple.iwtype

Examples of clips.delegate.directory.simple.iwtype.DirectoryIWTypeItem


    private void formList() throws ClipsException {
        model = new DefaultListModel();
        SelectorEditableExceptional<DirectoryIWTypeItem> items = directoryIWT.getItems();
        for (int i = 0; i < items.size(); i++) {
            DirectoryIWTypeItem item = items.get(i);
            if (!iwIDs.contains(item.getID())) {
                model.addElement(item);
            }
        }
        lstIWTypes.setModel(model);
    }
View Full Code Here


private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
    int k = lstIWTypes.getSelectedIndex();
    if (k >= 0) {
        try {
            FieldForXML ffxml = new FieldForXML();
            DirectoryIWTypeItem type = (DirectoryIWTypeItem) model.getElementAt(k);
            ffxml.id = type.getID();
            ffxml.title = type.getTitle();
            iwIDs.add(type.getID());
            fields.add(ffxml);
            tabMetaIWTypes.updateUI();
            formList();
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

        if (result == null) {
            return;
        }
        DirectoryItemDetails details = new DirectoryItemDetails();
        details.title = result;
        DirectoryIWTypeItem newItem = new DirectoryIWTypeItem(details);
        directoryIWT.getItems().append(newItem);
        formList();
        lstIWTypes.setSelectedValue(newItem, true);
    } catch (ClipsException ex) {
        MessageBox.showException(ex);
View Full Code Here

    }
}//GEN-LAST:event_btAddTypeActionPerformed

private void btDeleteTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btDeleteTypeActionPerformed
    try {
        DirectoryIWTypeItem selectedType = (DirectoryIWTypeItem) lstIWTypes.getSelectedValue();
        if (selectedType == null) {
            return;
        }
        directoryIWT.getItems().remove(selectedType);
        formList();
View Full Code Here

            return null;


        }

        DirectoryIWTypeItem type = directory.getItemFromID(id);


        if (type == null) {
            throw new ClipsException("no such IntelliWriter directory: " + id);
View Full Code Here

TOP

Related Classes of clips.delegate.directory.simple.iwtype.DirectoryIWTypeItem

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.