Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java')
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java102
1 files changed, 0 insertions, 102 deletions
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java
deleted file mode 100644
index 474be9a87a3..00000000000
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeDisplayOptionsComponentImpl.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.display.view.web.components;
-
-import org.eclipse.osee.display.api.components.DisplayOptionsComponent;
-import org.eclipse.osee.display.api.data.DisplayOptions;
-import org.eclipse.osee.display.api.search.SearchNavigator;
-import org.eclipse.osee.display.api.search.SearchPresenter;
-import com.vaadin.data.Property;
-import com.vaadin.data.Property.ValueChangeEvent;
-import com.vaadin.ui.CheckBox;
-import com.vaadin.ui.VerticalLayout;
-
-/**
- * @author Shawn F. Cook
- */
-@SuppressWarnings("serial")
-public class OseeDisplayOptionsComponentImpl extends VerticalLayout implements DisplayOptionsComponent {
-
- private final CheckBox showVerboseCheckBox = new CheckBox("Show Detailed Results", false);
- private Boolean lock_InhibitActionFromServer = false;
- private boolean isLayoutComplete = false;
-
- @Override
- public void attach() {
- if (!isLayoutComplete) {
- createLayout();
- isLayoutComplete = true;
- }
- }
-
- private void createLayout() {
- setSizeFull();
-
- showVerboseCheckBox.setImmediate(true);
- showVerboseCheckBox.addListener(new Property.ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- synchronized (lock_InhibitActionFromServer) {
- if (!lock_InhibitActionFromServer) {
- boolean showVerbose = showVerboseCheckBox.toString().equalsIgnoreCase("true");
- onBoxChecked(showVerbose);
- }
- }
- }
- });
-
- addComponent(showVerboseCheckBox);
- }
-
- @Override
- public void clearAll() {
- showVerboseCheckBox.setValue(false);
- }
-
- @Override
- public void setDisplayOptions(DisplayOptions options) {
- if (options != null) {
- boolean showVerbose_fromPres = options.getVerboseResults();
- boolean showVerbose_fromUi = showVerboseCheckBox.toString().equalsIgnoreCase("true");
- if (showVerbose_fromUi != showVerbose_fromPres) {
- synchronized (lock_InhibitActionFromServer) {
- lock_InhibitActionFromServer = true;
- showVerboseCheckBox.setValue(showVerbose_fromPres);
- lock_InhibitActionFromServer = false;
- }
- }
- } else {
- ComponentUtility.logWarn("OseeDisplayOptionsComponentImpl.setDisplayOptions - WARNING: null value detected.",
- this);
- }
- }
-
- private void onBoxChecked(boolean isShowVerbose) {
- DisplayOptions options = new DisplayOptions(isShowVerbose);
-
- String url = ComponentUtility.getUrl(OseeDisplayOptionsComponentImpl.this);
- SearchNavigator navigator = ComponentUtility.getNavigator(OseeDisplayOptionsComponentImpl.this);
- SearchPresenter<?, ?> presenter = ComponentUtility.getPresenter(OseeDisplayOptionsComponentImpl.this);
- if (presenter != null) {
- presenter.selectDisplayOptions(url, options, navigator);
- } else {
- ComponentUtility.logWarn("OseeDisplayOptionsComponentImpl.onBoxChecked - WARNING: null value detected.", this);
- }
- }
-
- public void enableDisplayOptions() {
- showVerboseCheckBox.setEnabled(true);
- }
-
- public void disableDisplayOptions() {
- showVerboseCheckBox.setEnabled(false);
- }
-}

Back to the top