Example usage for java.awt Choice removeAll

List of usage examples for java.awt Choice removeAll

Introduction

In this page you can find the example usage for java.awt Choice removeAll.

Prototype

public void removeAll() 

Source Link

Document

Removes all items from the choice menu.

Usage

From source file:mesquite.zephyr.lib.GarliRunner.java

public void preparePartitionChoice(Choice partitionChoice, int partitionScheme) {
    partitionChoice.removeAll();

    switch (partitionScheme) {
    case partitionByCharacterGroups:
        ZephyrUtil.setPartitionChoice(data, partitionChoice);
        break;/*from  w  ww .  j  a  v a 2 s  .  c  o m*/
    case partitionByCodonPosition:
        partitionChoice.addItem(codpos1Subset);
        partitionChoice.addItem(codpos2Subset);
        partitionChoice.addItem(codpos3Subset);
        partitionChoice.addItem(nonCodingSubset);
        break;
    case noPartition:
        partitionChoice.addItem("All Characters");
        break;
    default:
        partitionChoice.addItem("All Characters");
    }
}