01: package net.xoetrope.builder.editor.components.swing;
02:
03: import net.xoetrope.builder.editor.components.PropertyHelper;
04: import net.xoetrope.xui.XPage;
05:
06: /**
07: * A helper for the XPage types
08: * <p> Copyright (c) Xoetrope Ltd., 2002-2003</p>
09: * <p> $Revision: 1.11 $</p>
10: */
11: public class XPageHelper extends PropertyHelper {
12: protected String extraProperties[] = { "resource" };
13:
14: public XPageHelper() {
15: className = XPage.class.toString();
16: componentType = "Page";
17: extraPropertyNames = extraProperties;
18: allowsChildren = true;
19: }
20:
21: public boolean isReadOnly(Object o) {
22: if (o.toString().compareTo("Name") == 0)
23: return true;
24: else if (o.toString().compareTo("X") == 0)
25: return true;
26: else if (o.toString().compareTo("Y") == 0)
27: return true;
28: else if (o.toString().compareTo("W") == 0)
29: return true;
30: else if (o.toString().compareTo("H") == 0)
31: return true;
32: return super.isReadOnly(o);
33: }
34: }
|