public abstract class AbstractElement extends java.lang.Object implements Element
Element.CalculatedElement, Element.ConstantElement, Element.FunctionElement, Element.GroupElement, Element.SimpleElement
Modifier and Type | Field and Description |
---|---|
protected javax.swing.Icon |
icon |
protected static Logger |
LOGGER |
Modifier | Constructor and Description |
---|---|
protected |
AbstractElement(java.lang.String name) |
protected |
AbstractElement(java.lang.String name,
java.lang.Object value) |
protected |
AbstractElement(java.lang.String name,
java.lang.Object value,
java.lang.String iconName) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
Element |
cloneElement() |
int |
compareTo(java.lang.Object other) |
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
Component |
getAditionalPanel(JExpressionBuilder expressionBuilder) |
ExpressionBuilderConfig |
getConfig() |
java.lang.String |
getDescription() |
javax.swing.Icon |
getIcon() |
java.lang.String |
getIconName() |
java.lang.String |
getLabel() |
java.lang.String |
getName() |
java.lang.String |
getRenderedValue() |
java.lang.Object |
getValue() |
java.util.Collection<Element> |
getValues() |
boolean |
hasMoreValues() |
boolean |
isEnabled() |
void |
reload() |
Element |
setConfig(ExpressionBuilderConfig config) |
protected void |
setName(java.lang.String name) |
java.lang.String |
toString() |
void |
used() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
label
cloneQuietly, cloneQuietly
protected AbstractElement(java.lang.String name)
protected AbstractElement(java.lang.String name, java.lang.Object value)
protected AbstractElement(java.lang.String name, java.lang.Object value, java.lang.String iconName)
public Element setConfig(ExpressionBuilderConfig config)
public ExpressionBuilderConfig getConfig()
protected void setName(java.lang.String name)
public java.lang.Object getValue()
getValue
in interface LabeledValue
public java.util.Collection<Element> getValues()
public boolean hasMoreValues()
hasMoreValues
in interface Element
public java.lang.String getRenderedValue()
getRenderedValue
in interface Element
public java.lang.String getDescription()
getDescription
in interface Element
public java.lang.String getLabel()
getLabel
in interface LabeledValue
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public java.lang.String getIconName()
getIconName
in interface Element
public Component getAditionalPanel(JExpressionBuilder expressionBuilder)
getAditionalPanel
in interface Element
public java.lang.String toString()
toString
in interface LabeledValue
toString
in class java.lang.Object
public void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public Element cloneElement()
cloneElement
in interface Element