Package org.rhq.coregui.client.inventory.resource.selection

Examples of org.rhq.coregui.client.inventory.resource.selection.SingleResourcePicker


        singleResourceButtonItem.setShowTitle(false);
        singleResourceButtonItem.setShowIfCondition(new ShowIfModeFunction(ResourceSelectionMode.SPECIFIC));
        singleResourceButtonItem.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                SingleResourcePicker singleResourcePicker;
                singleResourcePicker = new SingleResourcePicker(new OkHandler() {
                    public boolean ok(Set<Integer> resourceIdSelection) {
                        final int resourceId = resourceIdSelection.iterator().next().intValue();
                        setSpecificResource(resourceId, null, null);
                        return true;
                    }
                }, null);
                singleResourcePicker.show();
            }
        });

        // for RELATIVE mode
View Full Code Here

TOP

Related Classes of org.rhq.coregui.client.inventory.resource.selection.SingleResourcePicker

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.