Exemplo n.º 1
0
 public void specific(ObjectContainer con, int step) {
   super.specific(con, step);
   TEntry entry = new TEntry().lastElement();
   Stack stack = new Stack();
   if (step > 0) {
     stack.addElement(entry.key);
     ObjectSet set = con.queryByExample(stack);
     if (set.size() != step) {
       Regression.addError("Stack member query not found");
     } else {
       Stack res = (Stack) set.next();
       if (!(stack.pop().equals(new TEntry().lastElement().key))) {
         Regression.addError("Stack order changed.");
       }
     }
   }
 }
Exemplo n.º 2
0
 /**
  * Method for getting the index of a given Panel
  *
  * @param object The object to get the index of
  * @return The index of the given object
  */
 public int getIndex(GPropertiesPanel object) {
   return objects.getIndex(object);
 }
Exemplo n.º 3
0
 /**
  * Method gets the size of this container.
  *
  * @return The size.
  */
 public int getPanelsSize() {
   return objects.getSize();
 }
Exemplo n.º 4
0
 /**
  * Method for getting a Panel by index reference
  *
  * @param index The index of the object
  * @return The object with the given index
  */
 public GPropertiesPanel getPanel(int index) {
   return (GPropertiesPanel) objects.get(index);
 }
Exemplo n.º 5
0
 /** Method for removing all current Panels */
 public void removeAllPanels() {
   pane.removeAll();
   objects.removeAll();
 }
Exemplo n.º 6
0
 /**
  * Method for removing a Panel by object reference
  *
  * @param object The object to remove
  */
 public void removePanel(GPropertiesPanel object) {
   pane.remove(object);
   objects.remove(object);
 }
Exemplo n.º 7
0
 /**
  * Method for removing a Panel by index reference
  *
  * @param index The index of the object to remove
  */
 public void removePanel(int index) {
   pane.remove((GPropertiesPanel) objects.get(index));
   objects.remove(index);
 }
Exemplo n.º 8
0
 /**
  * Method for adding a new Panel
  *
  * @param object The new Panel
  */
 public void addPanel(GPropertiesPanel object, String title) {
   pane.add(object, title);
   objects.add(object);
 }