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
|
package com.temp.client.foundation.widget.input.support;
import com.temp.client.foundation.widget.*;
import com.temp.shared.externalization.*;
import com.temp.shared.utils.*;
/**
* An interface to a class that can be added to the FormEngine as part of the Focusable list.
* <p/>
* It operates in two distinct states:
* <p/>
* <li>Builder Mode - Where properties are specified (and certain methods are NOT accessable)</li>
* <li>Run Mode - Where everything is accessable (and the specification properties are NOT changeable)</li>
* <p/>
* The transition between the states is one way ('Builder' to 'Run') and is a result of the call to 'init'.
*/
public interface FormEngineMember extends Enableable
{
/**
* The 'Builder' to 'Run' state transition method fully "Builds" 'this'.
* <p/>
* Only callable ONCE and only in Builder Mode!
*/
void init(E13nResolver resolver);
// Callable anytime:
boolean isRunMode();
// Only callable in Run Mode:
/**
* Reset the value(s) to a <code>null</code> state.
*/
void reset();
/**
* revert to the "Base" value(s)
*/
void revert();
/**
* Return if the Current Value(s) are different than the Base Value(s)
*/
boolean isChanged();
/**
* Return if 'this' has Focus (or null indicating that the Focus state is not tracked)
*/
Boolean isFocused();
/**
* Return if the Current Value(s) are rejected by any of the ValueValidator(s)
*/
boolean isErrored();
/**
* Validate the Current Value(s), and "manage" the Error Label(s) appropriately.
*
* @return true if <code>isErrored() == false</code>.
*/
boolean validate();
/**
* Pull the Focus to 'this' (return false if 'this' is "thought" to be currently un-focusable, e.g. Disabled, or has no Focusable components)
*/
boolean setFocused();
E13nResolver getE13nResolver();
NameToID addNamedWidgetsTo(NameToID nameToID);
}
|
Revision |
Author |
Commited |
Message |
632
|
GeorgeS
|
Wed 18 Apr, 2012 18:11:29 +0000 |
|