Examples of ChainActionCreator


Examples of com.daikit.daikit4gxt.client.action.ChainActionCreator

   */
  public static final BaseAction<?> get(final BaseUser previousLoggedUser, final BaseAction<?> actionToChain)
  {
    final BaseAction<?> afterConnectAction = DkMain.controller().getSpecificAfterConnectAction(previousLoggedUser);

    afterConnectAction.setLastChainActionCreator(new ChainActionCreator()
    {
      @Override
      public BaseAction<?> getCreatedActions()
      {
        BaseAction<?> ret = null;
        if (DkMain.controller().getCurrentScreen() == null)
        {
          ret = BaseShowScreenAction.get(DkMain.controller().getDefaultScreen());
        }
        else
        {
          if (DkMain.config().loadDefaultScreenAfterEachLogin()
              && !DkMain.controller().isCurrentScreen(DkMain.controller().getDefaultScreen()))
          {
            log.debug("BaseMain.loadDefaultScreenAfterEachLogin() && !BaseMain.controller().isCurrentScreen(BaseMain.controller().getDefaultScreen())");
            log.debug("BaseMain.controller().getDefaultScreen()=" + DkMain.controller().getDefaultScreen());
            log.debug("BaseMain.controller().getCurrentScreen()=" + DkMain.controller().getCurrentScreen().getClass());
            ret = BaseShowScreenAction.get(DkMain.controller().getDefaultScreen());
            ret.setLastChainActionCreator(new ChainActionCreator()
            {
              @Override
              public BaseAction<?> getCreatedActions()
              {
                return !DkMain.model().getUserLogged().equals(previousLoggedUser) ? BaseReloadCurrentScreenAction
View Full Code Here

Examples of com.daikit.daikit4gxt.client.action.ChainActionCreator

          }
        });
      }
    };
    // create different action according to the current logged user.
    actionLoadSynchronizedLoggedUser.setLastChainActionCreator(new ChainActionCreator()
    {
      @Override
      public BaseAction<?> getCreatedActions()
      {
        final BaseUser loggedUser = DkMain.model().getUserLogged();
View Full Code Here

Examples of com.daikit.daikit4gxt.client.action.ChainActionCreator

        });
      }
    };

    // create different action according to the current logged user.
    actionLoadCurrentLoggedUser.setLastChainActionCreator(new ChainActionCreator()
    {
      @Override
      public BaseAction<?> getCreatedActions()
      {
        final BaseUser loggedUser = DkMain.model().getUserLogged();
View Full Code Here

Examples of com.daikit.daikit4gxt.client.action.ChainActionCreator

      }
    };
    if (DkMain.controller().getCurrentScreen() == null
        || !clazz.getName().equals(DkMain.controller().getCurrentScreen().getClass().getName()))
    {
      actionShowScreen.setLastChainActionCreator(new ChainActionCreator()
      {
        @Override
        public BaseAction<?> getCreatedActions()
        {
          final BaseAction<?> actionInitializeScreen = BaseInitlializeCurrentScreenAction.get(optionalArgs);
View Full Code Here

Examples of com.daikit.daikit4gxt.client.action.ChainActionCreator

  public static BaseAction<Void> get()
  {
    final BaseAction<Void> actionDoDisconnect = BaseSimpleDisconnectAction.get();
    if (DkMain.config().loadDefaultScreenAfterDisconnect())
    {
      actionDoDisconnect.setLastChainActionCreator(new ChainActionCreator()
      {
        @Override
        public BaseAction<?> getCreatedActions()
        {
          BaseAction<?> ret = null;
View Full Code Here

Examples of com.daikit.daikit4gxt.client.action.ChainActionCreator

  public static BaseAction<?> get()
  {
    final BaseUser previousLoggedUser = DkMain.model().getUserLogged();
    final BaseAction<?> actionLoadCurrentLoggedUser = BaseLoadCurrentLoggedUserAction.get();
    // create different action according to the current logged user.
    actionLoadCurrentLoggedUser.setLastChainActionCreator(new ChainActionCreator()
    {
      @Override
      public BaseAction<?> getCreatedActions()
      {
        final BaseUser loggedUser = DkMain.model().getUserLogged();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.