SRJRCFrames
v0.1.296

de.schwarzrot.app.config
Class ApplicationConfig

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by de.schwarzrot.data.support.AbstractEntity
          extended by de.schwarzrot.app.config.support.AbstractConfigBase
              extended by de.schwarzrot.app.config.ApplicationConfig
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Entity, Serializable, Comparable<Entity>
Direct Known Subclasses:
AbstractSysConfig, ModellerConfig, SampleConfig

public class ApplicationConfig
extends AbstractConfigBase

base class for local application configurations (implemented by preferences

Author:
Reinhard Mantey
See Also:
Serialized Form

Constructor Summary
ApplicationConfig()
           
ApplicationConfig(ApplicationConfig other)
           
 
Method Summary
 JarExtension getArchive()
          accessor to the archive that holds the application.
 int getExtraTBOrientation()
          returns the orientation of the extra toolbar
 Map<String,Integer> getSkipList()
          startupSize and startupPosition are virtual properties, which are calculated at first access.
 int getStartupHeight()
           
 Point getStartupPosition()
           
 Dimension getStartupSize()
           
 int getStartupWidth()
           
 int getStartupX()
           
 int getStartupY()
           
 List<String> getUserAttributes()
          return a list of properties, that are user attributes.
 String getVersion()
           
 void setArchive(JarExtension je)
           
 void setExtraTBOrientation(int extraTBOrientation)
           
 void setStartupHeight(int h)
           
 void setStartupPosition(Point startupPosition)
           
 void setStartupSize(Dimension startupSize)
           
 void setStartupWidth(int w)
           
 void setStartupX(int x)
           
 void setStartupY(int y)
           
 void setVersion(String version)
           
 void validate(boolean read)
          will be called just before saving and after loading, so it is intended to give the opportunity to calculate virtual fields.
 
Methods inherited from class de.schwarzrot.app.config.support.AbstractConfigBase
getPersistenceName, getSupportedDBDrivers, getSystemClass, isUserType
 
Methods inherited from class de.schwarzrot.data.support.AbstractEntity
adoptChildren, adoptChildren, adoptGroupedChildren, compareTo, equals, getCModified, getCode, getDefaultOrder, getDtCreated, getDtModified, getId, getLogger, getMappings, getSchemaName, getUCreated, getUModified, getUniqColumnNames, getVariantColumnName, getVariantTypeMap, hashCode, isDirty, isVirtual, setCModified, setDirty, setDtCreated, setDtModified, setId, setSchemaName, setUCreated, setUModified, toString
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jgoodies.binding.beans.Observable
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

ApplicationConfig

public ApplicationConfig()

ApplicationConfig

public ApplicationConfig(ApplicationConfig other)
Method Detail

getArchive

public final JarExtension getArchive()
accessor to the archive that holds the application. Useful for dynamically loaded applications

Returns:
the JarExtension that describes the archive of current application

getExtraTBOrientation

public final int getExtraTBOrientation()
returns the orientation of the extra toolbar

Returns:
- returns the orientation of the extra toolbar

getSkipList

public Map<String,Integer> getSkipList()
startupSize and startupPosition are virtual properties, which are calculated at first access. So these properties should not go to persistence.

Specified by:
getSkipList in interface Entity
Overrides:
getSkipList in class AbstractEntity
Returns:
a Map

getStartupHeight

public final int getStartupHeight()

getStartupPosition

public Point getStartupPosition()

getStartupSize

public final Dimension getStartupSize()

getStartupWidth

public final int getStartupWidth()

getStartupX

public final int getStartupX()

getStartupY

public final int getStartupY()

getUserAttributes

public List<String> getUserAttributes()
Description copied from interface: Entity
return a list of properties, that are user attributes. Default is to return null to signal, that all properties are user attributes. In case this entity is a system entity, there may exists attributes, that may be overridded by users. So return a list of those attributes.

Specified by:
getUserAttributes in interface Entity
Overrides:
getUserAttributes in class AbstractEntity
Returns:
a list of property names

getVersion

public final String getVersion()

setArchive

public final void setArchive(JarExtension je)

setExtraTBOrientation

public final void setExtraTBOrientation(int extraTBOrientation)

setStartupHeight

public void setStartupHeight(int h)

setStartupPosition

public final void setStartupPosition(Point startupPosition)

setStartupSize

public final void setStartupSize(Dimension startupSize)

setStartupWidth

public void setStartupWidth(int w)

setStartupX

public void setStartupX(int x)

setStartupY

public void setStartupY(int y)

setVersion

public final void setVersion(String version)

validate

public void validate(boolean read)
Description copied from interface: Entity
will be called just before saving and after loading, so it is intended to give the opportunity to calculate virtual fields.

Specified by:
validate in interface Entity
Overrides:
validate in class AbstractEntity
Parameters:
read - signals whether calculation should be done for reading or for writing

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.