1 11 package org.eclipse.jface.preference; 12 13 import org.eclipse.jface.util.IPropertyChangeListener; 14 15 56 public interface IPreferenceStore { 57 58 61 public static final boolean BOOLEAN_DEFAULT_DEFAULT = false; 62 63 66 public static final double DOUBLE_DEFAULT_DEFAULT = 0.0; 67 68 71 public static final float FLOAT_DEFAULT_DEFAULT = 0.0f; 72 73 76 public static final int INT_DEFAULT_DEFAULT = 0; 77 78 81 public static final long LONG_DEFAULT_DEFAULT = 0L; 82 83 86 public static final String STRING_DEFAULT_DEFAULT = ""; 88 91 public static final String TRUE = "true"; 93 96 public static final String FALSE = "false"; 98 135 public void addPropertyChangeListener(IPropertyChangeListener listener); 136 137 145 public boolean contains(String name); 146 147 163 public void firePropertyChangeEvent(String name, Object oldValue, 164 Object newValue); 165 166 176 public boolean getBoolean(String name); 177 178 188 public boolean getDefaultBoolean(String name); 189 190 200 public double getDefaultDouble(String name); 201 202 212 public float getDefaultFloat(String name); 213 214 224 public int getDefaultInt(String name); 225 226 236 public long getDefaultLong(String name); 237 238 248 public String getDefaultString(String name); 249 250 260 public double getDouble(String name); 261 262 272 public float getFloat(String name); 273 274 284 public int getInt(String name); 285 286 296 public long getLong(String name); 297 298 308 public String getString(String name); 309 310 319 public boolean isDefault(String name); 320 321 329 public boolean needsSaving(); 330 331 344 public void putValue(String name, String value); 345 346 352 public void removePropertyChangeListener(IPropertyChangeListener listener); 353 354 369 public void setDefault(String name, double value); 370 371 386 public void setDefault(String name, float value); 387 388 403 public void setDefault(String name, int value); 404 405 420 public void setDefault(String name, long value); 421 422 437 public void setDefault(String name, String defaultObject); 438 439 454 public void setDefault(String name, boolean value); 455 456 468 public void setToDefault(String name); 469 470 487 public void setValue(String name, double value); 488 489 506 public void setValue(String name, float value); 507 508 525 public void setValue(String name, int value); 526 527 544 public void setValue(String name, long value); 545 546 563 public void setValue(String name, String value); 564 565 582 public void setValue(String name, boolean value); 583 } 584 | Popular Tags |