public abstract class LazyComponent extends JComponent
Modifier and Type | Field and Description |
---|---|
protected boolean |
initialized |
int_value, reference, type, value
Constructor and Description |
---|
LazyComponent() |
Modifier and Type | Method and Description |
---|---|
int |
getIntValue()
Returns the value of the target component, if its class is an integer class.
|
java.lang.Class |
getType()
Returns the type of the target component, as a Class.
|
java.lang.Object |
getValue()
Returns the value of the target component, if its type is an object reference
type.
|
protected abstract void |
initialize() |
duplicate, fork, getComponent, getElement, getFactoryValue, getReference, getValue, internalFork, reset, setReference, toString
public java.lang.Class getType()
Component
getType
in interface Component
getType
in class JComponent
public java.lang.Object getValue()
Component
If the target component is of an integral type,
NO_VALUE
} is returned.
getValue
in interface Component
getValue
in class JComponent
public int getIntValue()
Component
If the target component has an object reference type, Integer.MAX_VALUE is returned.
getIntValue
in interface Component
getIntValue
in class JComponent
protected abstract void initialize()