Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
package org.litesoft.datt.client.boviews;

import org.litesoft.bo.views.*;

/**
 * Need to optionally carry TaskViews
 */
public abstract class StoryViewGO
        extends ViewObject<StoryView>
        implements StoryViewNames {
    @Deprecated
    protected StoryViewGO() {
        super( StoryViewMetaData.getInstance() );
    }

    protected StoryViewGO( boolean pNew, TransactionSet pTransactionSet ) {
        super( StoryViewMetaData.getInstance(), pNew, pTransactionSet );
    }

    private Long mID;

    @Override
    public Long getID() {
        return mID;
    }

    @Override
    public void setID( Long pID ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aID );
        if ( verifyMutabilityOnChange( zAttribute, getID(), pID = zAttribute.normalize( pID, zAttribute.isRequired() ) ) ) {
            LLsetID( pID );
        }
    }

    protected void LLsetID( Long pID ) {
        mID = pID;
    }

    private String mChanges;

    /**
     * Remove "Used For Query View" if needed
     */
    public String getChanges() {
        return mChanges;
    }

    /**
     * Remove "Used For Query View" if needed
     */
    public void setChanges( String pChanges ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aChanges );
        if ( verifyMutabilityOnChange( zAttribute, getChanges(), pChanges = zAttribute.normalize( pChanges, zAttribute.isRequired() ) ) ) {
            LLsetChanges( pChanges );
        }
    }

    /**
     * Remove "Used For Query View" if needed
     */
    protected void LLsetChanges( String pChanges ) {
        mChanges = pChanges;
    }

    private String mCreatorFullName;

    public String getCreatorFullName() {
        return mCreatorFullName;
    }

    public void setCreatorFullName( String pCreatorFullName ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aCreatorFullName );
        if ( verifyMutabilityOnChange( zAttribute, getCreatorFullName(),
                                       pCreatorFullName = zAttribute.normalize( pCreatorFullName, zAttribute.isRequired() ) ) ) {
            LLsetCreatorFullName( pCreatorFullName );
        }
    }

    protected void LLsetCreatorFullName( String pCreatorFullName ) {
        mCreatorFullName = pCreatorFullName;
    }

    private String mDescription;

    public String getDescription() {
        return mDescription;
    }

    public void setDescription( String pDescription ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aDescription );
        if ( verifyMutabilityOnChange( zAttribute, getDescription(), pDescription = zAttribute.normalize( pDescription, zAttribute.isRequired() ) ) ) {
            LLsetDescription( pDescription );
        }
    }

    protected void LLsetDescription( String pDescription ) {
        mDescription = pDescription;
    }

    /**
     * First three lines of Description. Creates extra lines if Description is less than three.
     */
    abstract public String getDescriptionThreeLines();

    private Boolean mIsDone;

    public Boolean getIsDone() {
        return mIsDone;
    }

    public void setIsDone( Boolean pIsDone ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aIsDone );
        if ( verifyMutabilityOnChange( zAttribute, getIsDone(), pIsDone = zAttribute.normalize( pIsDone, zAttribute.isRequired() ) ) ) {
            LLsetIsDone( pIsDone );
        }
    }

    protected void LLsetIsDone( Boolean pIsDone ) {
        mIsDone = pIsDone;
    }

    private String mName;

    public String getName() {
        return mName;
    }

    public void setName( String pName ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aName );
        if ( verifyMutabilityOnChange( zAttribute, getName(), pName = zAttribute.normalize( pName, zAttribute.isRequired() ) ) ) {
            LLsetName( pName );
        }
    }

    protected void LLsetName( String pName ) {
        mName = pName;
    }

    private Float mPriority;

    public Float getPriority() {
        return mPriority;
    }

    public void setPriority( Float pPriority ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aPriority );
        if ( verifyMutabilityOnChange( zAttribute, getPriority(), pPriority = zAttribute.normalize( pPriority, zAttribute.isRequired() ) ) ) {
            LLsetPriority( pPriority );
        }
    }

    protected void LLsetPriority( Float pPriority ) {
        mPriority = pPriority;
    }

    private String mPriorityLastChangedBy;

    public String getPriorityLastChangedBy() {
        return mPriorityLastChangedBy;
    }

    public void setPriorityLastChangedBy( String pPriorityLastChangedBy ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aPriorityLastChangedBy );
        if ( verifyMutabilityOnChange( zAttribute, getPriorityLastChangedBy(),
                                       pPriorityLastChangedBy = zAttribute.normalize( pPriorityLastChangedBy, zAttribute.isRequired() ) ) ) {
            LLsetPriorityLastChangedBy( pPriorityLastChangedBy );
        }
    }

    protected void LLsetPriorityLastChangedBy( String pPriorityLastChangedBy ) {
        mPriorityLastChangedBy = pPriorityLastChangedBy;
    }

    abstract public String getPriorityToDisplay();

    private Boolean mShowDone;

    /**
     * Used in query screen. If checked, it shows the done as well as the not done stories.
     */
    public Boolean getShowDone() {
        return mShowDone;
    }

    /**
     * Used in query screen. If checked, it shows the done as well as the not done stories.
     */
    public void setShowDone( Boolean pShowDone ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aShowDone );
        if ( verifyMutabilityOnChange( zAttribute, getShowDone(), pShowDone = zAttribute.normalize( pShowDone, zAttribute.isRequired() ) ) ) {
            LLsetShowDone( pShowDone );
        }
    }

    /**
     * Used in query screen. If checked, it shows the done as well as the not done stories.
     */
    protected void LLsetShowDone( Boolean pShowDone ) {
        mShowDone = pShowDone;
    }

    private String mStoryTemplateName;

    public String getStoryTemplateName() {
        return mStoryTemplateName;
    }

    public void setStoryTemplateName( String pStoryTemplateName ) {
        VoAttribute<StoryView> zAttribute = getVoAttribute( aStoryTemplateName );
        if ( verifyMutabilityOnChange( zAttribute, getStoryTemplateName(),
                                       pStoryTemplateName = zAttribute.normalize( pStoryTemplateName, zAttribute.isRequired() ) ) ) {
            LLsetStoryTemplateName( pStoryTemplateName );
        }
    }

    protected void LLsetStoryTemplateName( String pStoryTemplateName ) {
        mStoryTemplateName = pStoryTemplateName;
    }
}

Commits for litesoft/trunk/Java/DATT/src/org/litesoft/datt/client/boviews/StoryViewGO.java

Diff revisions: vs.
Revision Author Commited Message
948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

565 Diff Diff markcmarkc Sun 13 Nov, 2011 21:45:35 +0000
502 Diff Diff markcmarkc Mon 12 Sep, 2011 00:46:45 +0000
430 GeorgeS picture GeorgeS Sat 20 Aug, 2011 19:46:21 +0000