Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Mobile Tools for Java
Release 1.0

org.eclipse.mtj.ui.editors.jad
Interface IManifestPreferenceStore


public interface IManifestPreferenceStore

An IPreferenceStore implementation that reads and writes the information as a Manifest format file.

Since:
1.0
Restriction:
This class is not intended to be implemented by clients.

Method Summary
 void addPropertyChangeListener (IPropertyChangeListener listener)
           
 boolean contains ( String name)
           
 void firePropertyChangeEvent ( String name, Object oldValue, Object newValue)
           
 boolean getBoolean ( String name)
           
 boolean getDefaultBoolean ( String name)
           
 double getDefaultDouble ( String name)
           
 float getDefaultFloat ( String name)
           
 int getDefaultInt ( String name)
           
 long getDefaultLong ( String name)
           
  String getDefaultString ( String name)
           
 double getDouble ( String name)
           
 float getFloat ( String name)
           
 int getInt ( String name)
           
 long getLong ( String name)
           
  String getString ( String name)
           
 boolean isDefault ( String name)
           
 void load ()
          Loads this preference store from the file established in the constructor PreferenceStore(java.lang.String) (or by setFileName).
 void load ( InputStream in)
          Loads this preference store from the given input stream.
 boolean needsSaving ()
           
  String[] preferenceNames ()
          Returns an array of all preferences known to this store which have current values other than their default value.
 void putValue ( String name, String value)
           
 void removePropertyChangeListener (IPropertyChangeListener listener)
           
 void save ()
           
 void save ( OutputStream out)
          Saves this preference store to the given output stream.
 void setDefault ( String name, boolean value)
           
 void setDefault ( String name, double value)
           
 void setDefault ( String name, float value)
           
 void setDefault ( String name, int value)
           
 void setDefault ( String name, long value)
           
 void setDefault ( String name, String defaultObject)
           
 void setToDefault ( String name)
           
 void setValue ( String name, boolean value)
           
 void setValue ( String name, double value)
           
 void setValue ( String name, float value)
           
 void setValue ( String name, int value)
           
 void setValue ( String name, long value)
           
 void setValue ( String name, String value)
           
 

Method Detail

addPropertyChangeListener

void addPropertyChangeListener(IPropertyChangeListener listener)

contains

boolean contains(
String name)

firePropertyChangeEvent

void firePropertyChangeEvent(
String name,
                             
Object oldValue,
                             
Object newValue)

getBoolean

boolean getBoolean(
String name)

getDefaultBoolean

boolean getDefaultBoolean(
String name)

getDefaultDouble

double getDefaultDouble(
String name)

getDefaultFloat

float getDefaultFloat(
String name)

getDefaultInt

int getDefaultInt(
String name)

getDefaultLong

long getDefaultLong(
String name)

getDefaultString


String getDefaultString(
String name)

getDouble

double getDouble(
String name)

getFloat

float getFloat(
String name)

getInt

int getInt(
String name)

getLong

long getLong(
String name)

getString


String getString(
String name)

isDefault

boolean isDefault(
String name)

load

void load()
          throws 
IOException
Loads this preference store from the file established in the constructor PreferenceStore(java.lang.String) (or by setFileName). Default preference values are not affected.

Throws:
IOException - if there is a problem loading this store

load

void load(
InputStream in)
          throws 
IOException
Loads this preference store from the given input stream. Default preference values are not affected.

Parameters:
in - the input stream
Throws:
IOException - if there is a problem loading this store

needsSaving

boolean needsSaving()

preferenceNames


String[] preferenceNames()
Returns an array of all preferences known to this store which have current values other than their default value.

Returns:
an array of preference names

putValue

void putValue(
String name,
              
String value)

removePropertyChangeListener

void removePropertyChangeListener(IPropertyChangeListener listener)

save

void save()
          throws 
IOException
Throws:
IOException

save

void save(
OutputStream out)
          throws 
IOException
Saves this preference store to the given output stream. The given string is inserted as header information.

Parameters:
out - the output stream
Throws:
IOException - if there is a problem saving this store

setDefault

void setDefault(
String name,
                boolean value)

setDefault

void setDefault(
String name,
                double value)

setDefault

void setDefault(
String name,
                float value)

setDefault

void setDefault(
String name,
                int value)

setDefault

void setDefault(
String name,
                long value)

setDefault

void setDefault(
String name,
                
String defaultObject)

setToDefault

void setToDefault(
String name)

setValue

void setValue(
String name,
              boolean value)

setValue

void setValue(
String name,
              double value)

setValue

void setValue(
String name,
              float value)

setValue

void setValue(
String name,
              int value)

setValue

void setValue(
String name,
              long value)

setValue

void setValue(
String name,
              
String value)

Mobile Tools for Java
Release 1.0


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire