Search in sources :

Example 6 with SegmentViewEvent

use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.

the class ViteroAdminController method event.

@Override
protected void event(UserRequest ureq, Component source, Event event) {
    if (source == segmentView) {
        if (event instanceof SegmentViewEvent) {
            SegmentViewEvent sve = (SegmentViewEvent) event;
            String segmentCName = sve.getComponentName();
            Component clickedLink = mainVC.getComponent(segmentCName);
            if (clickedLink == accountLink) {
                doOpenAccountSettings(ureq);
            } else if (clickedLink == bookingsLink) {
                doOpenBookings(ureq);
            }
        }
    }
}
Also used : SegmentViewEvent(org.olat.core.gui.components.segmentedview.SegmentViewEvent) Component(org.olat.core.gui.components.Component) SegmentViewComponent(org.olat.core.gui.components.segmentedview.SegmentViewComponent)

Example 7 with SegmentViewEvent

use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.

the class UserOrderController method event.

@Override
protected void event(UserRequest ureq, Component source, Event event) {
    if (source == segmentView) {
        if (event instanceof SegmentViewEvent) {
            SegmentViewEvent sve = (SegmentViewEvent) event;
            String segmentCName = sve.getComponentName();
            Component clickedLink = mainVC.getComponent(segmentCName);
            if (clickedLink == ordersLink) {
                doOpenOrders(ureq);
            } else if (clickedLink == advanceOrdersLink) {
                doOpenAdvanceOrders(ureq);
            }
        }
    }
}
Also used : SegmentViewEvent(org.olat.core.gui.components.segmentedview.SegmentViewEvent) Component(org.olat.core.gui.components.Component) SegmentViewComponent(org.olat.core.gui.components.segmentedview.SegmentViewComponent)

Example 8 with SegmentViewEvent

use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.

the class MembersOverviewController method event.

@Override
protected void event(UserRequest ureq, Component source, Event event) {
    if (event instanceof SegmentViewEvent) {
        SegmentViewEvent sve = (SegmentViewEvent) event;
        String segmentCName = sve.getComponentName();
        Component clickedLink = mainVC.getComponent(segmentCName);
        if (clickedLink == allMembersLink) {
            selectedCtrl = updateAllMembers(ureq);
        } else if (clickedLink == ownersLink) {
            selectedCtrl = updateOwners(ureq);
        } else if (clickedLink == tutorsLink) {
            selectedCtrl = updateTutors(ureq);
        } else if (clickedLink == participantsLink) {
            selectedCtrl = updateParticipants(ureq);
        } else if (clickedLink == waitingListLink) {
            selectedCtrl = updateWaitingList(ureq);
        } else if (clickedLink == searchLink) {
            updateSearch(ureq);
            selectedCtrl = null;
        }
    } else if (source == addMemberLink) {
        doChooseMembers(ureq);
    } else if (source == importMemberLink) {
        doImportMembers(ureq);
    } else if (source == dedupLink) {
        doDedupMembers(ureq);
    } else if (source == overrideLink) {
        doOverrideManagedResource(ureq);
    } else if (source == unOverrideLink) {
        doUnOverrideManagedResource(ureq);
    }
}
Also used : SegmentViewEvent(org.olat.core.gui.components.segmentedview.SegmentViewEvent) Component(org.olat.core.gui.components.Component) SegmentViewComponent(org.olat.core.gui.components.segmentedview.SegmentViewComponent)

Example 9 with SegmentViewEvent

use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.

the class DocumentPoolAdminController method event.

@Override
protected void event(UserRequest ureq, Component source, Event event) {
    if (source == segmentView) {
        if (event instanceof SegmentViewEvent) {
            SegmentViewEvent sve = (SegmentViewEvent) event;
            String segmentCName = sve.getComponentName();
            Component clickedLink = mainVC.getComponent(segmentCName);
            if (clickedLink == configurationLink) {
                doOpenConfiguration(ureq);
            } else if (clickedLink == permissionsLink) {
                doOpenPermissions(ureq);
            } else if (clickedLink == infosPageLink) {
                doOpenInfosPage(ureq);
            }
        }
    }
}
Also used : SegmentViewEvent(org.olat.core.gui.components.segmentedview.SegmentViewEvent) Component(org.olat.core.gui.components.Component) SegmentViewComponent(org.olat.core.gui.components.segmentedview.SegmentViewComponent)

Example 10 with SegmentViewEvent

use of org.olat.core.gui.components.segmentedview.SegmentViewEvent in project OpenOLAT by OpenOLAT.

the class QuestionPoolAdminController method event.

@Override
protected void event(UserRequest ureq, Component source, Event event) {
    if (source == segmentView && event instanceof SegmentViewEvent) {
        SegmentViewEvent sve = (SegmentViewEvent) event;
        String segmentCName = sve.getComponentName();
        Component clickedLink = mainVC.getComponent(segmentCName);
        if (clickedLink == configurationLink) {
            doOpenConfiguration(ureq);
        } else if (clickedLink == infoPageLink) {
            doOpenInfosPage(ureq);
        } else if (clickedLink == reviewProcessLink) {
            doOpenReviewProcess(ureq);
        } else if (clickedLink == taxonomyLink) {
            doOpenTaxonomy(ureq);
        } else if (clickedLink == poolsLink) {
            doOpenPools(ureq);
        } else if (clickedLink == itemTypesLink) {
            doOpenItemTypes(ureq);
        } else if (clickedLink == educationalContextLink) {
            doOpenEducationalContext(ureq);
        }
    }
}
Also used : SegmentViewEvent(org.olat.core.gui.components.segmentedview.SegmentViewEvent) Component(org.olat.core.gui.components.Component) SegmentViewComponent(org.olat.core.gui.components.segmentedview.SegmentViewComponent)

Aggregations

Component (org.olat.core.gui.components.Component)90 SegmentViewComponent (org.olat.core.gui.components.segmentedview.SegmentViewComponent)90 SegmentViewEvent (org.olat.core.gui.components.segmentedview.SegmentViewEvent)90 Link (org.olat.core.gui.components.link.Link)4 Controller (org.olat.core.gui.control.Controller)4 BasicController (org.olat.core.gui.control.controller.BasicController)4 Statistics (org.hibernate.stat.Statistics)2 PopEvent (org.olat.core.gui.components.stack.PopEvent)2 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)2 Identity (org.olat.core.id.Identity)2 RepositoryHandler (org.olat.repository.handlers.RepositoryHandler)2 ImportRepositoryEntryController (org.olat.repository.ui.author.ImportRepositoryEntryController)2