01: package com.openedit.modules.image;
02:
03: import java.awt.Dimension;
04:
05: public class ConvertInstructions {
06: protected Dimension fieldMaxScaledSize = new Dimension(150,
07: Integer.MAX_VALUE);
08: protected int fieldPageNumber = 1;
09:
10: public Dimension getMaxScaledSize() {
11: if (fieldMaxScaledSize == null) {
12: fieldMaxScaledSize = new Dimension();
13: }
14: return fieldMaxScaledSize;
15: }
16:
17: public void setMaxScaledSize(Dimension inMaxScaledSize) {
18: fieldMaxScaledSize = inMaxScaledSize;
19: }
20:
21: public int getPageNumber() {
22: return fieldPageNumber;
23: }
24:
25: public void setPageNumber(int inPageNumber) {
26: fieldPageNumber = inPageNumber;
27: }
28:
29: public void setPageNumber(String inProperty) {
30: // TODO Auto-generated method stub
31: if (inProperty != null) {
32: setPageNumber(Integer.parseInt(inProperty));
33: }
34: }
35:
36: }
|