org.malai.preferences
Interface Preferenciable

All Known Subinterfaces:
ConcretePresentation, ICanvas
All Known Implementing Classes:
Border, CopierCutterPaster, DrawingPropertiesCustomiser, EditingSelector, ExceptionsManager, Exporter, FileLoaderSaver, Hand, Helper, Instrument, LCanvas, LCodePanel, LFrame, LMagneticGrid, MagneticGridCustomiser, MetaShapeCustomiser, Pencil, PreferencesActivator, PreferencesSetter, ScaleRulersCustomiser, Scroller, ShapeArcCustomiser, ShapeArrowCustomiser, ShapeAxesCustomiser, ShapeBorderCustomiser, ShapeCoordDimCustomiser, ShapeDeleter, ShapeDotCustomiser, ShapeDoubleBorderCustomiser, ShapeFillingCustomiser, ShapeGridCustomiser, ShapeGrouper, ShapePropertyCustomiser, ShapeRotationCustomiser, ShapeShadowCustomiser, TabSelector, TextCustomiser, TextSetter, UI, UndoRedoManager, WidgetInstrument, Zoomer

public interface Preferenciable

The interface can be applied on classes which can preferences can be saved into an XML document.

This file is part of libMalai.
Copyright (c) 2009-2012 Arnaud BLOUIN

libMalan is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

libMalan is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Since:
0.2
Version:
0.2
Author:
Arnaud BLOUIN

Method Summary
 void load(boolean generalPreferences, java.lang.String nsURI, org.w3c.dom.Element meta)
          Loads data save in an XML document.
 void save(boolean generalPreferences, java.lang.String nsURI, org.w3c.dom.Document document, org.w3c.dom.Element root)
          Saves the parameters of the instrument into an XML tag.
 

Method Detail

save

void save(boolean generalPreferences,
          java.lang.String nsURI,
          org.w3c.dom.Document document,
          org.w3c.dom.Element root)
Saves the parameters of the instrument into an XML tag.

Parameters:
generalPreferences - True: this operation is called to save the general preferences of the interactive system. Otherwise, it is called to save a presentation in a document. This parameter is useful when different information must be saved during a presentation backup or a general preferences backup.
nsURI - The namespace that must be added to tags corresponding to the instrument's parameters.
document - The XML document.
root - The root element that will contains the instrument's parameters.
Since:
0.2

load

void load(boolean generalPreferences,
          java.lang.String nsURI,
          org.w3c.dom.Element meta)
Loads data save in an XML document.

Parameters:
generalPreferences - True: this operation is called to load the general preferences of the interactive system. Otherwise, it is called to load a presentation in a document. This parameter is useful when different information must be loaded during a presentation backup or a general preferences backup.
meta - The meta data element.
nsURI - The namespace that must be added to tags corresponding to the instrument's parameters.
Since:
0.2