Package cli_fmw.delegate.directory

Examples of cli_fmw.delegate.directory.DirectoryItemRO


    public void setData(Directory<? extends DirectoryItemRO> dir, DirectoryItemRO current,
            String label) throws ClipsException {
        Selector<?> selector = dir.getItems();
        ArrayList<ChoosePanelData> data = new ArrayList<ChoosePanelData>();
        for(int i=0; i< selector.size(); i++) {
            DirectoryItemRO item = (DirectoryItemRO) selector.get(i);
            /*if(!item.isVisible()) {
                continue;
            }*/
            ChoosePanelData d = buildData(item);
            data.add(d);
View Full Code Here


        initComponents();
        this.directory = directory;
        this.withNull = withNull;
        DirectoryItemRO[] arr = directory.toArray(withNull);
        final DefaultComboBoxModel model = new DefaultComboBoxModel(arr);
        DirectoryItemRO currentItem = null;
        for (int i = 0; i < arr.length; i++) {
            DirectoryItemRO item = arr[i];
            if (item.toString().equals(currentValue)) {
                currentItem = item;
                break;
            }
        }
        model.setSelectedItem(currentItem);
View Full Code Here

*/
public class DirectoryRenderer extends LabelRenderer {

    @Override
    protected void modifyErrorTableCellRendererComponent(JTable table, Object value, int row, int col) {
        DirectoryItemRO item = (DirectoryItemRO) value;
        if (!item.isVisible()){
            render().setText(DirectoryBean.HIDE_SYMBOL + render().getText());
            System.out.println("DirectoryRenderer---------------> hidden item: " + render().getText());
        }
    }
View Full Code Here

    }

    @Override
    protected boolean isFit(Object item) throws ClipsException {
        if(item instanceof DirectoryItemRO) {
            DirectoryItemRO si = (DirectoryItemRO) item;
            if(si.isVisible()) {
                return true;
            }           
        }
        return false;
    }
View Full Code Here

    if (treeServices.getPathForLocation(evt.getX(), evt.getY()) == null) {
        return;
    }
    Object obj = treeServices.getPathForLocation(evt.getX(), evt.getY()).getLastPathComponent();
    if (obj instanceof DirectoryItemRO) {
        DirectoryItemRO item = (DirectoryItemRO) obj;
        treeServices.setToolTipText(item.getTitle());
    }
    else {
        treeServices.setToolTipText(null);
    }
}//GEN-LAST:event_treeServicesMouseMoved
View Full Code Here

       
        searchBy.addItem(bytitle);
        searchBy.addItem(bycode);
        searchBy.addItem(bymask);
               
        DirectoryItemRO array[] = mkb10.toArray(false, true);
        for(int i=0; i<array.length; i++) {
            searchBy.addItem(array[i]);
        }       
       
        searchBy.setSelectedItem(bytitle);
View Full Code Here

        if (trServices.getPathForLocation(evt.getX(), evt.getY()) == null) {
            return;
        }
        Object obj = trServices.getPathForLocation(evt.getX(), evt.getY()).getLastPathComponent();
        if (obj instanceof DirectoryItemRO) {
            DirectoryItemRO item = (DirectoryItemRO) obj;
            trServices.setToolTipText(item.getTitle());
        }
        else {
            trServices.setToolTipText(null);
        }
    }//GEN-LAST:event_trServicesMouseMoved
View Full Code Here

TOP

Related Classes of cli_fmw.delegate.directory.DirectoryItemRO

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.