public class TextureChoiceController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
TextureChoiceController.Property |
Constructor and Description |
---|
TextureChoiceController(java.lang.String title,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(TextureChoiceController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
void |
deleteTexture(CatalogTexture texture)
Controls the deletion of a texture.
|
java.lang.String |
getDialogTitle()
Returns the text that should be displayed as texture choice dialog title.
|
HomeTexture |
getTexture()
Returns the texture displayed by view.
|
TextureChoiceView |
getView()
Returns the view associated with this controller.
|
void |
importTexture()
Controls texture import.
|
void |
importTexture(java.lang.String textureName)
Controls the import of a texture with a given name.
|
void |
modifyTexture(CatalogTexture texture)
Controls the modification of a texture.
|
void |
removePropertyChangeListener(TextureChoiceController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setTexture(HomeTexture texture)
Sets the texture displayed by view and fires a
PropertyChangeEvent . |
public TextureChoiceController(java.lang.String title, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public TextureChoiceView getView()
getView
in interface Controller
public void addPropertyChangeListener(TextureChoiceController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(TextureChoiceController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.public void setTexture(HomeTexture texture)
PropertyChangeEvent
.public HomeTexture getTexture()
public java.lang.String getDialogTitle()
public void importTexture()
public void importTexture(java.lang.String textureName)
public void modifyTexture(CatalogTexture texture)
public void deleteTexture(CatalogTexture texture)
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License