/** * {@inheritDoc} */ @Override protected void selectChildViewIndex(RComponent viewComponent, int index) { if (viewComponent instanceof RTabContainer) { RTabContainer rTab = ((RTabContainer) viewComponent); if (rTab.getSelectedIndex() != index) { rTab.setSelectedIndex(index); RemoteSelectionCommand selectionCommand = new RemoteSelectionCommand(); selectionCommand.setTargetPeerGuid(rTab.getGuid()); selectionCommand.setLeadingIndex(rTab.translateExcludingHiddenChildren(index)); getRemoteCommandHandler().registerCommand(selectionCommand); } } }
/** * {@inheritDoc} */ @Override protected void selectChildViewIndex(RComponent viewComponent, int index) { if (viewComponent instanceof RTabContainer) { RTabContainer rTab = ((RTabContainer) viewComponent); if (rTab.getSelectedIndex() != index) { rTab.setSelectedIndex(index); RemoteSelectionCommand selectionCommand = new RemoteSelectionCommand(); selectionCommand.setTargetPeerGuid(rTab.getGuid()); selectionCommand.setLeadingIndex(rTab.translateExcludingHiddenChildren(index)); getRemoteCommandHandler().registerCommand(selectionCommand); } } }
RemoteSelectionCommand parentCommand = new RemoteSelectionCommand(); parentCommand.setTargetPeerGuid(parentState.getGuid()); parentCommand.setLeadingIndex(parentState.getLeadingIndex()); parentCommand.setSelectedIndices(parentState.getSelectedIndices()); remoteCommandHandler.registerCommand(parentCommand); RemoteSelectionCommand command = new RemoteSelectionCommand(); command.setTargetPeerGuid(compositeValueState.getGuid()); command.setLeadingIndex(compositeValueState.getLeadingIndex()); command.setSelectedIndices(compositeValueState.getSelectedIndices()); remoteCommandHandler.registerCommand(command);