public void set (int index, T value) { if (iterating > 0) throw new IllegalStateException("Invalid between begin/end."); super.set(index, value); }
public void set (int index, T value) { if (iterating > 0) throw new IllegalStateException("Invalid between begin/end."); super.set(index, value); }
public void set (int index, T value) { modified(); super.set(index, value); }
public void set (int index, T value) { modified(); super.set(index, value); }
/** Register an uniform which might be used by this shader. Only possible prior to the call to init(). * @return The ID of the uniform to use in this shader. */ public int register (final String alias, final Validator validator, final Setter setter) { if (locations != null) throw new GdxRuntimeException("Cannot register an uniform after initialization"); final int existing = getUniformID(alias); if (existing >= 0) { validators.set(existing, validator); setters.set(existing, setter); return existing; } uniforms.add(alias); validators.add(validator); setters.add(setter); return uniforms.size - 1; }
/** Register an uniform which might be used by this shader. Only possible prior to the call to init(). * @return The ID of the uniform to use in this shader. */ public int register (final String alias, final Validator validator, final Setter setter) { if (locations != null) throw new GdxRuntimeException("Cannot register an uniform after initialization"); final int existing = getUniformID(alias); if (existing >= 0) { validators.set(existing, validator); setters.set(existing, setter); return existing; } uniforms.add(alias); validators.add(validator); setters.add(setter); return uniforms.size - 1; }
imagePaths.set(i, effectDirUri.relativize(imageUri).getPath());
imagePaths.set(i, effectDirUri.relativize(imageUri).getPath());
/** Add a attribute to this material. If the material already contains an attribute of the same type it is overwritten. */ public final void set (final Attribute attribute) { final int idx = indexOf(attribute.type); if (idx < 0) { enable(attribute.type); attributes.add(attribute); sorted = false; } else { attributes.set(idx, attribute); } sort(); //FIXME: See #4186 }
/** Add a attribute to this material. If the material already contains an attribute of the same type it is overwritten. */ public final void set (final Attribute attribute) { final int idx = indexOf(attribute.type); if (idx < 0) { enable(attribute.type); attributes.add(attribute); sorted = false; } else { attributes.set(idx, attribute); } sort(); //FIXME: See #4186 }
/** Gets the cell values that will be used as the defaults for all cells in the specified column. Columns are indexed starting * at 0. */ public Cell columnDefaults (int column) { Cell cell = columnDefaults.size > column ? columnDefaults.get(column) : null; if (cell == null) { cell = obtainCell(); cell.clear(); if (column >= columnDefaults.size) { for (int i = columnDefaults.size; i < column; i++) columnDefaults.add(null); columnDefaults.add(cell); } else columnDefaults.set(column, cell); } return cell; }
/** Gets the cell values that will be used as the defaults for all cells in the specified column. Columns are indexed starting * at 0. */ public Cell columnDefaults (int column) { Cell cell = columnDefaults.size > column ? columnDefaults.get(column) : null; if (cell == null) { cell = obtainCell(); cell.clear(); if (column >= columnDefaults.size) { for (int i = columnDefaults.size; i < column; i++) columnDefaults.add(null); columnDefaults.add(cell); } else columnDefaults.set(column, cell); } return cell; }
@Override public void added(Entity e) { active++; added++; entities.set(e.id, e); }
public void set (int index, T value) { if (iterating > 0) throw new IllegalStateException("Invalid between begin/end."); super.set(index, value); }
public void set (int index, ItemT value) { array.set(index, value); itemsChanged(); }
public void set (int index, T value) { modified(); super.set(index, value); }
/** Add a attribute to this material. If the material already contains an attribute of the same type it is overwritten. */ public final void set (final Attribute attribute) { final int idx = indexOf(attribute.type); if (idx < 0) { enable(attribute.type); attributes.add(attribute); sorted = false; } else { attributes.set(idx, attribute); } sort(); //FIXME: See #4186 }
@SuppressWarnings("unchecked") @Override public void changed(ChangeEvent event, Actor actor) { BaseActor e = ((EditModelDialog<Scene, BaseActor>) actor).getElement(); // When the type is changed, a new element is created and it is needed to replace the previous element. if(e != list.getSelected()) { int i = list.getSelectedIndex(); getItems().set(i, e); list.setSelectedIndex(i); list.invalidateHierarchy(); } } });