|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eteks.sweethome3d.model.HomeApplication
public abstract class HomeApplication
Application managing a list of homes displayed at screen.
| Constructor Summary | |
|---|---|
HomeApplication()
|
|
| Method Summary | |
|---|---|
void |
addHome(Home home)
Adds a given home to the homes list of this application. |
void |
addHomesListener(CollectionListener<Home> listener)
Adds the home listener in parameter to this application. |
Home |
createHome()
Returns a new home. |
void |
deleteHome(Home home)
Removes a given home from the homes list of this application. |
abstract HomeRecorder |
getHomeRecorder()
Returns the default recorder able to write and read homes. |
HomeRecorder |
getHomeRecorder(HomeRecorder.Type type)
Returns a recorder of a given type able to write and read homes. |
List<Home> |
getHomes()
Returns an unmodifiable collection of the homes of this application. |
String |
getName()
Returns the name of this application. |
abstract UserPreferences |
getUserPreferences()
Returns user preferences. |
String |
getVersion()
Returns information about the version of this application. |
void |
removeHomesListener(CollectionListener<Home> listener)
Removes the home listener in parameter from this application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HomeApplication()
| Method Detail |
|---|
public void addHomesListener(CollectionListener<Home> listener)
listener in parameter to this application.
public void removeHomesListener(CollectionListener<Home> listener)
listener in parameter from this application.
public Home createHome()
public List<Home> getHomes()
public void addHome(Home home)
home to the homes list of this application.
Once the home is added, home listeners added
to this application will receive a
collectionChanged
notification, with an event type
equal to ADD.
public void deleteHome(Home home)
home from the homes list of this application.
Once the home is removed, home listeners added
to this application will receive a
collectionChanged
notification, with an event type
equal to DELETE.
public abstract HomeRecorder getHomeRecorder()
public HomeRecorder getHomeRecorder(HomeRecorder.Type type)
type able to write and read homes.
Subclasses may override this method to return a recorder matching type.
type - a hint for the application to choose the returned recorder.
public abstract UserPreferences getUserPreferences()
public String getName()
public String getVersion()
|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2010 eTeks - All rights reserved
Distributed under GNU General Public License |