Exemple #1
0
 /** removes all variables */
 public void clear() {
   int rowCount = model.getRowCount();
   if (rowCount > 0) {
     variablesHashSet.clear();
     variables.clear();
     model.fireTableRowsDeleted(0, rowCount - 1);
   }
 }
Exemple #2
0
 /**
  * removes the variable at index <code>i</code>
  *
  * @param i the index
  * @return the removed variable, or <code>null</code> if none exists
  */
 public Variable<? extends TrickViewFluent> removeVariable(int i) {
   variablesHashSet.remove(variables.get(i));
   Variable<? extends TrickViewFluent> variable = variables.remove(i);
   model.fireTableRowsDeleted(i, i);
   return variable;
 }