| 1 |
|
package org.trails.component.blob; |
| 2 |
|
|
| 3 |
|
import org.apache.tapestry.BaseComponent; |
| 4 |
|
import org.apache.tapestry.annotations.ComponentClass; |
| 5 |
|
import org.apache.tapestry.annotations.Parameter; |
| 6 |
|
import org.trails.descriptor.IPropertyDescriptor; |
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
@ComponentClass(allowBody = true, allowInformalParameters = true) |
| 12 |
0 |
public abstract class BlobComponent extends BaseComponent |
| 13 |
|
{ |
| 14 |
|
@Parameter(required = true, cache = true) |
| 15 |
|
public abstract Object getModel(); |
| 16 |
|
|
| 17 |
|
public abstract void setModel(Object model); |
| 18 |
|
|
| 19 |
|
@Parameter(required = true, cache = true) |
| 20 |
|
public abstract IPropertyDescriptor getDescriptor(); |
| 21 |
|
|
| 22 |
|
public abstract void setDescriptor( |
| 23 |
|
IPropertyDescriptor descriptor); |
| 24 |
|
|
| 25 |
|
@Parameter(required = false, cache = true) |
| 26 |
|
public abstract byte[] getBytes(); |
| 27 |
|
|
| 28 |
|
public abstract void setBytes(byte[] bytes); |
| 29 |
|
} |