Package hudson.util

Examples of hudson.util.ComboBoxModel


         * of the combo box changes depending on the currently selected album.
         */
        public ComboBoxModel doFillTitleItems(@QueryParameter int album) {
            switch (album) {
            case 1:
                return new ComboBoxModel("Yellow Submarine","Only a Northern Song","All You Need Is Love");
            case 2:
                return new ComboBoxModel("Come Together","Something","I Want You");
            case 3:
                return new ComboBoxModel("The One After 909","Rocker","Get Back");
            default:
                // if no value is selected in the album, we'll get 0
                return new ComboBoxModel();
            }
        }
View Full Code Here


         return d;
      }

      // Populating the streams
      public ComboBoxModel doFillStreamItems(@QueryParameter String serverName, @QueryParameter String depot) {
         ComboBoxModel cbm = new ComboBoxModel();
         final AccurevServer server = getServerAndPath(serverName);
         if (server == null) {
            //descriptorlogger.warning("Failed to find server.");
            return new ComboBoxModel();
         }    
         // Execute the login command first & upon success of that run show streams
         // command. If any of the command's exitvalue is 1 proper error message is
         // logged     
         try {        
View Full Code Here

                    }
                } else {
                    projects.addAll(PluginImpl.getInstance().getServer(serverName).getGerritProjects());
                }
            }
            return new ComboBoxModel(projects);
        }
View Full Code Here

TOP

Related Classes of hudson.util.ComboBoxModel

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.