summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/web/StatusDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/web/StatusDialog.java')
-rw-r--r--wizards/com/sun/star/wizards/web/StatusDialog.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/wizards/com/sun/star/wizards/web/StatusDialog.java b/wizards/com/sun/star/wizards/web/StatusDialog.java
index ab1e7a0b6bc7..c765e2410312 100644
--- a/wizards/com/sun/star/wizards/web/StatusDialog.java
+++ b/wizards/com/sun/star/wizards/web/StatusDialog.java
@@ -32,6 +32,7 @@ import com.sun.star.awt.XProgressBar;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.wizards.common.Helper;
import com.sun.star.wizards.common.IRenderer;
+import com.sun.star.wizards.common.PropertyNames;
import com.sun.star.wizards.ui.UnoDialog;
import com.sun.star.wizards.ui.UnoDialog2;
import com.sun.star.wizards.ui.event.MethodInvocation;
@@ -83,7 +84,7 @@ public class StatusDialog extends UnoDialog2 implements TaskListener
Helper.setUnoPropertyValues(xDialogModel,
new String[]
{
- "Closeable", "Height", "HelpURL", "Moveable", "Name", "PositionX", "PositionY", "Step", "Title", "Width"
+ "Closeable", PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_HELPURL, "Moveable", PropertyNames.PROPERTY_NAME, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, "Title", PropertyNames.PROPERTY_WIDTH
},
new Object[]
{
@@ -95,7 +96,7 @@ public class StatusDialog extends UnoDialog2 implements TaskListener
lblTaskName = insertLabel("lblTask",
new String[]
{
- "Height", "Label", "PositionX", "PositionY", "TabIndex", "Width"
+ PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
},
new Object[]
{
@@ -104,7 +105,7 @@ public class StatusDialog extends UnoDialog2 implements TaskListener
lblCounter = insertLabel("lblCounter",
new String[]
{
- "Height", "Label", "PositionX", "PositionY", "TabIndex", "Width"
+ PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
},
new Object[]
{
@@ -113,7 +114,7 @@ public class StatusDialog extends UnoDialog2 implements TaskListener
progressBar = insertProgressBar("progress",
new String[]
{
- "Height", "PositionX", "PositionY", "TabIndex", "Width"
+ PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
},
new Object[]
{
@@ -126,7 +127,7 @@ public class StatusDialog extends UnoDialog2 implements TaskListener
btnCancel = insertButton("btnCancel", "performCancel", this,
new String[]
{
- "Height", "Label", "PositionX", "PositionY", "TabIndex", "Width"
+ PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_LABEL, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_TABINDEX, PropertyNames.PROPERTY_WIDTH
},
new Object[]
{
@@ -158,7 +159,7 @@ public class StatusDialog extends UnoDialog2 implements TaskListener
public void setLabel(String s)
{
// lblTaskName.setText(s);
- Helper.setUnoPropertyValue(UnoDialog.getModel(lblTaskName), "Label", s);
+ Helper.setUnoPropertyValue(UnoDialog.getModel(lblTaskName), PropertyNames.PROPERTY_LABEL, s);
xReschedule.reschedule();
}
@@ -208,7 +209,7 @@ public class StatusDialog extends UnoDialog2 implements TaskListener
}
else
{
- Helper.setUnoPropertyValue(getModel(btnCancel), "Label", res[2]);
+ Helper.setUnoPropertyValue(getModel(btnCancel), PropertyNames.PROPERTY_LABEL, res[2]);
}
}