summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/ui/event/DataAware.java
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 23:09:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-26 04:20:34 -0600
commite8e4fc00e783d4f854de3d6b666c3c8268b12db4 (patch)
tree0056df526afdf7bace66754d70c3b8163f76d493 /wizards/com/sun/star/wizards/ui/event/DataAware.java
parent4e5fb3ae8aaa7a65b065f0415fe4df667dab3def (diff)
Remove visual noise from wizards
Change-Id: I27c730fa18b665bffe8c8d032fa51680cbbb2dd5 Reviewed-on: https://gerrit.libreoffice.org/8341 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'wizards/com/sun/star/wizards/ui/event/DataAware.java')
-rw-r--r--wizards/com/sun/star/wizards/ui/event/DataAware.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/ui/event/DataAware.java b/wizards/com/sun/star/wizards/ui/event/DataAware.java
index b83889703aed..0dc9b192d2cc 100644
--- a/wizards/com/sun/star/wizards/ui/event/DataAware.java
+++ b/wizards/com/sun/star/wizards/ui/event/DataAware.java
@@ -49,7 +49,7 @@ public abstract class DataAware {
* from/to the data object.
*/
protected Value value;
-
+
/**
* creates a DataAware object for the given data object and Value object.
* @param dataObject_
@@ -76,7 +76,7 @@ public abstract class DataAware {
*/
public void setDataObject(Object obj, boolean updateUI) {
- if (obj != null && !value.isAssignable(obj.getClass()))
+ if (obj != null && !value.isAssignable(obj.getClass()))
throw new ClassCastException("can not cast new DataObject to original Class");
dataObject = obj;
@@ -106,7 +106,7 @@ public abstract class DataAware {
protected Object getFromData() {
return value.get(getDataObject());
}
-
+
/**
* sets the given value to the UI control
* @param newValue the value to set to the ui control.
@@ -208,7 +208,7 @@ public abstract class DataAware {
for (Iterator<DataAware> i = dataAwares.iterator(); i.hasNext();)
i.next().setDataObject(dataObject, updateUI);
}
-
+
/**
* Value objects read and write a value from and
* to an object. Typically using reflection and JavaBeans properties
@@ -241,7 +241,7 @@ public abstract class DataAware {
*/
public boolean isAssignable(Class<?> type);
}
-
+
/**
* implementation of Value, handling JavaBeans properties through
* reflection.
@@ -268,7 +268,7 @@ public abstract class DataAware {
getMethod = createGetMethod(propertyName, propertyOwner);
setMethod = createSetMethod(propertyName, propertyOwner, getMethod.getReturnType());
}
-
+
/**
* called from the constructor, and creates a get method reflection object
* for the given property and object.