|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.datamixer.io.DMAttribute
| Field Summary | |
static int |
ACTION_SET_VALUE
|
static java.lang.String |
ACTION_SET_VALUE_NAME
|
static java.util.List |
ACTIONS
action names |
protected DatamixerCollection |
collection_
collection |
protected int |
dataType_
datatype |
protected DMElement |
element_
parent element |
protected java.text.Format |
format_
formatter |
protected java.lang.String |
formatPattern_
format string |
protected boolean |
initialized_
true if initialized |
protected DatamixerIterator |
iterator_
iterator |
protected java.lang.String |
name_
attribute name |
protected java.util.List |
nextListeners_
next listeners |
protected boolean |
repeat_
reset limit if true |
protected Value |
value_
value |
protected java.lang.String |
valueName_
value name |
| Constructor Summary | |
DMAttribute()
|
|
DMAttribute(java.lang.String name)
|
|
DMAttribute(java.lang.String name,
DatamixerIterator iter)
|
|
| Method Summary | |
java.lang.String |
actionToString(int action)
Returns the print name of action |
void |
addDatamixerListener(DatamixerListener listener,
int event,
int action)
Add listener. |
protected void |
doFireDatamixerEvent(DatamixerEvent event)
Allows subclasses to initialize event. |
protected void |
error(java.lang.String message)
|
void |
fireDatamixerEvent(int event)
Calls handleDatamixerEvent on listeners. |
java.util.List |
getActions()
Returns the list of available action names. |
DatamixerCollection |
getCollection()
|
int |
getDataType()
|
DMElement |
getElement()
|
java.lang.String |
getFormatPattern()
|
DatamixerIterator |
getIterator()
|
protected java.util.List |
getListeners(int event)
Calls handleGenerateEvent on listeners. |
java.lang.String |
getName()
|
boolean |
getRepeat()
Returns the repeat flag. |
boolean |
getUseCurrent()
|
Value |
getValue()
|
java.lang.String |
getValueName()
|
void |
handleDatamixerEvent(DatamixerEvent e)
Dispatches the event based on the event type and action. |
protected void |
initialize()
|
void |
removeDatamixerListener(DatamixerListener listener,
int event,
int action)
Remove listener. |
void |
setCollection(DatamixerCollection value)
|
void |
setDataType(int value)
|
void |
setElement(DMElement value)
|
void |
setFormatPattern(java.lang.String value)
|
void |
setIterator(DatamixerIterator value)
|
void |
setName(java.lang.String value)
|
void |
setRepeat(boolean value)
Sets the repeat flag. |
void |
setUseCurrent(boolean value)
|
void |
setValue(Value value)
sets value as the current value, and fires a |
void |
setValueName(java.lang.String id)
|
int |
stringToAction(java.lang.String s)
Returns the value of the action named actionName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ACTION_SET_VALUE
public static final java.lang.String ACTION_SET_VALUE_NAME
public static final java.util.List ACTIONS
protected DMElement element_
protected java.lang.String name_
protected int dataType_
protected Value value_
protected java.lang.String valueName_
protected DatamixerCollection collection_
protected DatamixerIterator iterator_
protected boolean repeat_
protected java.lang.String formatPattern_
protected java.text.Format format_
protected java.util.List nextListeners_
protected boolean initialized_
| Constructor Detail |
public DMAttribute()
public DMAttribute(java.lang.String name)
public DMAttribute(java.lang.String name,
DatamixerIterator iter)
| Method Detail |
public void handleDatamixerEvent(DatamixerEvent e)
throws DatamixerException
ACTION_SET_VALUE calls setValue(Value) with the value in the event.
handleDatamixerEvent in interface DatamixerListenerDatamixerExceptionpublic java.lang.String actionToString(int action)
action
actionToString in interface DatamixerListenerpublic int stringToAction(java.lang.String s)
actionName
stringToAction in interface DatamixerListenerpublic java.util.List getActions()
getActions in interface DatamixerListener
public void addDatamixerListener(DatamixerListener listener,
int event,
int action)
listener.
addDatamixerListener in interface DatamixerEventGenerator
public void removeDatamixerListener(DatamixerListener listener,
int event,
int action)
listener. action is ignored.
removeDatamixerListener in interface DatamixerEventGeneratorprotected java.util.List getListeners(int event)
handleGenerateEvent on listeners.
public void fireDatamixerEvent(int event)
throws DatamixerException
handleDatamixerEvent on listeners.
fireDatamixerEvent in interface DatamixerEventGeneratorDatamixerException
protected void doFireDatamixerEvent(DatamixerEvent event)
throws DatamixerException
event.
DatamixerExceptionprotected void initialize()
public DMElement getElement()
public void setElement(DMElement value)
public java.lang.String getName()
public void setName(java.lang.String value)
public int getDataType()
public void setDataType(int value)
public Value getValue()
throws DatamixerException
DatamixerException
public void setValue(Value value)
throws DatamixerException
value as the current value, and fires a next
event.
- Throws:
DatamixerException, - possibly thrown by the event handler.
DatamixerException
public DatamixerCollection getCollection()
public void setCollection(DatamixerCollection value)
public DatamixerIterator getIterator()
public void setIterator(DatamixerIterator value)
public boolean getRepeat()
public void setRepeat(boolean value)
public boolean getUseCurrent()
public void setUseCurrent(boolean value)
public java.lang.String getFormatPattern()
public void setFormatPattern(java.lang.String value)
public java.lang.String getValueName()
public void setValueName(java.lang.String id)
protected void error(java.lang.String message)
throws DatamixerException
DatamixerException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||