|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.ControlValuePath
This class encapsulates all information necessary to locate a control after a server round trip and synchronize its data model with the request values.
Field Summary | |
static java.lang.String |
KEY_COLUMN
Key for the ControlValuePath column attribute |
static java.lang.String |
KEY_CONTROL
Key for the controls name |
static java.lang.String |
KEY_ROW
Key for the ControlValuePath row attribute |
static java.lang.String |
KEY_SELECTMODE
Key for the ControlValuePath select mode attribute |
static java.lang.String |
KEY_TYPE
Key for the ControlValuePath type attribute |
private static java.lang.String |
PREFIX
Prefix |
private java.util.Properties |
props
Properties |
static java.lang.String |
TYPE_CHECKBOX
Indicator for a checkbox values |
static java.lang.String |
TYPE_CHECKBOX_ORIGINAL
Old value indicator for checkbox values. |
static java.lang.String |
TYPE_NESTEDCONTROL
Indicator for a nested control |
static java.lang.String |
TYPE_RADIO
Indicator for radio button (horizontal alignment) |
static java.lang.String |
TYPE_TEXT
Indicator for text values |
Constructor Summary | |
ControlValuePath()
Constructor |
|
ControlValuePath(Control ctrl)
Constructor |
|
ControlValuePath(java.lang.String ctrlname)
Constructor |
Method Summary | |
private void |
decode(java.lang.String path)
Decodes a String encoded Path |
private static java.lang.String |
encode(java.util.Properties props)
Creates a String for the path instance which can be used in HTML-Pages |
private static java.lang.String |
encode(java.lang.String propsList)
Creates a String for the path instance which can be used in HTML-Pages |
java.lang.String |
getControl()
|
java.lang.String |
getProperty(java.lang.String key)
Gets a property value |
static ControlValuePath |
parse(java.lang.String path)
Parses a ControlValuePath from the given Request Parameter key |
void |
reset()
Reset the parameter list |
void |
setControl(Control ctrl)
Set the Control |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets a property |
java.lang.String |
toString()
|
static java.lang.String |
toString(java.util.Properties props)
Creates a String for the path instance which can be used in HTML-Pages |
static java.lang.String |
toString(java.lang.String propsList)
Creates a String for the path instance which can be used in HTML-Pages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String PREFIX
public static final java.lang.String KEY_CONTROL
public static final java.lang.String KEY_TYPE
public static final java.lang.String KEY_ROW
public static final java.lang.String KEY_COLUMN
public static final java.lang.String KEY_SELECTMODE
public static final java.lang.String TYPE_TEXT
public static final java.lang.String TYPE_RADIO
public static final java.lang.String TYPE_NESTEDCONTROL
public static final java.lang.String TYPE_CHECKBOX_ORIGINAL
public static final java.lang.String TYPE_CHECKBOX
private java.util.Properties props
Constructor Detail |
public ControlValuePath()
public ControlValuePath(java.lang.String ctrlname)
ctrlname
- the name of the control for witch to create a ValuePathpublic ControlValuePath(Control ctrl)
ctrl
- the control for witch to create a ValuePathMethod Detail |
public static ControlValuePath parse(java.lang.String path)
path
- The request key
null
if the given request
key is not a valid path expressionprivate void decode(java.lang.String path)
path
- String encoded pathprivate static java.lang.String encode(java.util.Properties props)
props
- Property table
private static java.lang.String encode(java.lang.String propsList)
propsList
- Property table "key=value;key=value;key=value;...."
public void reset()
public void setControl(Control ctrl)
ctrl
- Control instancepublic java.lang.String getControl()
public void setProperty(java.lang.String key, java.lang.Object value)
key
- property keyvalue
- property valuepublic java.lang.String getProperty(java.lang.String key)
key
- property key
public static java.lang.String toString(java.util.Properties props)
props
- Property table
public static java.lang.String toString(java.lang.String propsList)
propsList
- Property table "key=value;key=value;key=value;...."
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |