public class LabelController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
LabelController.Property
The property that may be edited by the view associated to this controller.
|
Constructor and Description |
---|
LabelController(Home home,
float x,
float y,
UserPreferences preferences,
ViewFactory viewFactory,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates the controller of label creation with undo support.
|
LabelController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates the controller of label modifications with undo support.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(LabelController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
void |
createLabel()
Controls the creation of a label.
|
void |
displayView(View parentView)
Displays the view controlled by this controller.
|
java.lang.String |
getText()
Returns the edited text.
|
DialogView |
getView()
Returns the view associated with this controller.
|
protected boolean |
isLabelPartOfBasePlan(Label label)
Returns
true . |
void |
modifyLabels()
Controls the modification of selected labels.
|
void |
removePropertyChangeListener(LabelController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setText(java.lang.String text)
Sets the edited text.
|
protected void |
updateProperties()
Updates edited properties from selected labels in the home edited by this controller.
|
public LabelController(Home home, UserPreferences preferences, ViewFactory viewFactory, javax.swing.undo.UndoableEditSupport undoSupport)
public LabelController(Home home, float x, float y, UserPreferences preferences, ViewFactory viewFactory, javax.swing.undo.UndoableEditSupport undoSupport)
protected void updateProperties()
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(LabelController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(LabelController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.public void setText(java.lang.String text)
public java.lang.String getText()
public void createLabel()
protected boolean isLabelPartOfBasePlan(Label label)
true
.public void modifyLabels()
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License