|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.colos.ejs.library.control.ControlElement org.colos.ejs.library.control.drawing3d.ControlElement3D
public abstract class ControlElement3D
Abstract superclass for display3d Elements (children of ControlElements3DParent)
Field Summary | |
---|---|
static int |
EL3D_NAME
|
static java.awt.Color |
NULL_COLOR
|
static int |
PARENT
|
static double |
TO_RADIANS
|
Fields inherited from class org.colos.ejs.library.control.ControlElement |
---|
ACTION, ACTION_ERROR, ACTION_SUCCESS, METHOD_FOR_VARIABLE, METHOD_TRIGGER, NAME, VARIABLE_CHANGED |
Constructor Summary | |
---|---|
ControlElement3D()
Constructor and utilities |
Method Summary | |
---|---|
boolean |
acceptsChild(ControlElement _child)
Whether this element can have children of the given type |
static Resolution |
decodeResolution(java.lang.String _value)
|
void |
destroy()
Clears any trace of myself (specially in the group) |
java.lang.String |
getDefaultValueString(int _index)
|
Element |
getElement()
|
int |
getFullPositionSpot()
|
int |
getFullSizeSpot()
|
java.lang.String |
getMenuNameEntry()
|
java.lang.Object |
getObject()
Returns the basic object that the ControlElement wrapps. |
abstract java.lang.String |
getObjectClassname()
Returns the expected class of the object that the ControlElement wrapps. |
ControlParentOfElement3D |
getParent()
|
int[] |
getPosSpot()
|
java.lang.String |
getPropertyCommonName(java.lang.String _property)
This is used by Ejs to obtain an alias for the property name in order to search for this alias in a common file of easily translatable entries used in the tables of properties for an element. |
java.lang.String |
getPropertyInfo(java.lang.String _property)
Returns information about a given property. |
java.util.List<java.lang.String> |
getPropertyList()
Returns the list of all properties that can be set for this ControlElement. |
int[] |
getSizeSpot()
|
Value |
getValue(int _index)
Gets the value of any internal variable. |
void |
interactionPerformed(InteractionEvent _event)
The method of a registered listener that will be called when an interaction takes place. |
Value |
parseConstant(java.lang.String _propertyType,
java.lang.String _value)
Checks if a value can be considered a valid constant value for a property If not, it returns null, meaning the value can be considered to be a GroupVariable |
void |
setDefaultValue(int _index)
|
void |
setParent(ControlParentOfElement3D _dp)
|
void |
setValue(int _index,
Value _value)
Sets the value of the registered variables. |
void |
updatePanel()
|
Methods inherited from class org.colos.ejs.library.control.ControlElement |
---|
addAction, addAction, addAction, addMenuEntries, editorIsReading, flush, getComponent, getGroup, getObject, getProperty, getSimulation, getValue, getVisual, implementsProperty, indexOf, initialize, invokeActions, invokeActions, isActive, onExit, propertyIndex, propertyIsTypeOf, propertyType, removeAction, removeAction, replaceVisual, reset, setActive, setFieldListValue, setFieldListValues, setGroup, setProperties, setProperty, setProperty, setPropertyEditor, setVariableEditor, toString, toStringValue, variableChanged, variableChangedDoNotUpdate, variableExtraChanged, variablePropertiesClear, variablesChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int EL3D_NAME
public static final int PARENT
public static final java.awt.Color NULL_COLOR
public static final double TO_RADIANS
Constructor Detail |
---|
public ControlElement3D()
Method Detail |
---|
public java.lang.Object getObject()
ControlElement
getObject
in class ControlElement
public abstract java.lang.String getObjectClassname()
ControlElement
getObjectClassname
in class ControlElement
public Element getElement()
public final int[] getPosSpot()
public final int[] getSizeSpot()
public final int getFullPositionSpot()
public final int getFullSizeSpot()
public final void setParent(ControlParentOfElement3D _dp)
public final ControlParentOfElement3D getParent()
public void destroy()
ControlElement
destroy
in class ControlElement
public java.lang.String getMenuNameEntry()
public boolean acceptsChild(ControlElement _child)
ControlElement
acceptsChild
in class ControlElement
_child
- ControlElement
public java.util.List<java.lang.String> getPropertyList()
ControlElement
getPropertyList
in class ControlElement
public java.lang.String getPropertyInfo(java.lang.String _property)
ControlElement
getPropertyInfo
in class ControlElement
public java.lang.String getPropertyCommonName(java.lang.String _property)
ControlElement
getPropertyCommonName
in class ControlElement
_property
- String
public void updatePanel()
public void setValue(int _index, Value _value)
ControlElement
setValue
in class ControlElement
public void setDefaultValue(int _index)
setDefaultValue
in class ControlElement
public java.lang.String getDefaultValueString(int _index)
getDefaultValueString
in class ControlElement
public Value getValue(int _index)
ControlElement
getValue
in class ControlElement
public void interactionPerformed(InteractionEvent _event)
InteractionListener
addInteractionListener
method.
interactionPerformed
in interface InteractionListener
_event
- InteractionEventpublic Value parseConstant(java.lang.String _propertyType, java.lang.String _value)
ControlElement
parseConstant
in class ControlElement
public static Resolution decodeResolution(java.lang.String _value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |