Package org.zeroexchange.web.components.link

Examples of org.zeroexchange.web.components.link.LinkPanel


            private static final long serialVersionUID = 1L;

            @Override
            public Component getActionComponent(String componentId,
                    final Resource resource) {
                return new LinkPanel(componentId,
                    new ResourceModel(MKEY_MANAGE_LINK_SIGN)) {
                        private static final long serialVersionUID = 1L;

                        /**
                         * {@inheritDoc}
 
View Full Code Here


            toolbarActions.add(new ToolbarItem() {
                private static final long serialVersionUID = 1L;

                @Override
                public Component getComponent(String componentId) {
                    return new LinkPanel(componentId, new ResourceModel(MKEY_ADD_RESOURCE)) {
                        private static final long serialVersionUID = 1L;
           
                        @Override
                        protected void onClick() {
                            Contract contract = getContract();
View Full Code Here

            toolbarActions.add(new ToolbarItem() {
                private static final long serialVersionUID = 1L;

                @Override
                public Component getComponent(String componentId) {
                    return new LinkPanel(componentId, new ResourceModel(MKEY_CONTRACT_REMOVE)) {
                        private static final long serialVersionUID = 1L;
                        @Override
                        protected void onClick() {
                            //delete the current contract
                            Contract contract = getContract();
View Full Code Here

            private static final long serialVersionUID = 1L;

            @Override
            public Component getActionComponent(String componentId,
                    final Resource resource) {
                return new LinkPanel(componentId,
                    new ResourceModel(MKEY_MANAGE_RESOURCE)) {
                        private static final long serialVersionUID = 1L;

                        /**
                         * {@inheritDoc}
 
View Full Code Here

                Resource resource = resourceTender.getResource();
                User resourceOwner = resource.getOwner();
                boolean acceptanceManagementEnable = resourceTender.getAcceptDate() == null &&
                        resourceOwner != null && currentUserId != null && currentUserId.equals(resourceOwner.getId())
                        && !resourceInformant.isAcceptedTendersCountExceeded(resource, resourceTender.getClass());
                return new LinkPanel(componentId, new ResourceModel(acceptanceManagementEnable ? MKEY_TENDER_MANAGE : MKEY_TENDER_VIEW)) {
                    private static final long serialVersionUID = 1L;

                    @Override
                    protected void onClick() {
                        setResponsePage(TenderView.class,
View Full Code Here

           
            private static final long serialVersionUID = 1L;

            @Override
            public Component getComponent(String componentId) {
                return new LinkPanel(
                    componentId, new ResourceModel(MKEY_DELETE_MESSAGE)) {
                        private static final long serialVersionUID = 1L;
   
                        @Override
                        protected void onClick() {
View Full Code Here

            toolbarActions.add(new ToolbarItem() {
                private static final long serialVersionUID = 1L;

                @Override
                public Component getComponent(String componentId) {
                    return new LinkPanel(componentId,
                            new ResourceModel(MKEY_ACCEPT_TENDER)) {
                        private static final long serialVersionUID = 1L;
                        @Override
                        protected void onClick() {
                            if(getTenderType() == TenderType.NEED) {
                                needManager.acceptTender((Need) tender);
                            } else {
                                supplyManager.acceptTender((Supply) tender);
                            }
                            eventsDispatcher.publishEvent(new TenderChanged(
                                    tender.getResource().getContract(), tender, TenderOperation.ACCEPTED));
                            goBack();
                        }
                    };
                }
               
            });
        }
       
        //'Decline' action
        if(contractPermissionsInformant.isTenderDeclineEnabled(tender)) {
            toolbarActions.add(new ToolbarItem() {
                private static final long serialVersionUID = 1L;

                @Override
                public Component getComponent(String componentId) {
                    return new LinkPanel(componentId,
                            new ResourceModel(MKEY_DECLINE_TENDER)) {
                        private static final long serialVersionUID = 1L;
                        @Override
                        protected void onClick() {
                            if(getTenderType() == TenderType.NEED) {
View Full Code Here

        items.add(new ToolbarItem() {
            private static final long serialVersionUID = 1L;

            @Override
            public Component getComponent(String toolbarItemId) {
                return new LinkPanel(toolbarItemId, new ResourceModel(MKEY_BACK)) {
                    private static final long serialVersionUID = 1L;

                    @Override
                    protected void onClick() {
                        goBack();
View Full Code Here

            private static final long serialVersionUID = 1L;

            @Override
            public Component getActionComponent(String componentId,
                    final Resource resource) {
                return new LinkPanel(componentId,
                    new ResourceModel(MKEY_VIEW_RESOURCE)) {
                        private static final long serialVersionUID = 1L;

                        /**
                         * {@inheritDoc}
 
View Full Code Here

                    String componentId, IModel<Message> rowModel) {
                final Message message = rowModel.getObject();
                if(message.getReadDate() == null) {
                    cellItem.add(new AttributeAppender("class", CSSCLASS_UNREAD_MESSAGE));
                }
                cellItem.add(new LinkPanel(componentId, new Model<String>(message.getSubject())) {
                    private static final long serialVersionUID = 1L;

                    @Override
                    protected void onClick() {
                        setResponsePage(MessageDetails.class, new PageParameters().
View Full Code Here

TOP

Related Classes of org.zeroexchange.web.components.link.LinkPanel

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.