|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.util.AbstractUIValue<V,U>
V
- the kind of values this UIValue
handlesU
- the kind of UIValue
that the UIProperties
will handle.
This class is either abstract, or a subclass of U
.public abstract class AbstractUIValue<V,U extends UIValue<V>>
An abstract implementation of UIValue
. This class contains more than
just one resource:
UIProperties
UIProperties
.
Constructor Summary | |
---|---|
AbstractUIValue(String id)
Creates a new UIValue . |
|
AbstractUIValue(String id,
Path kind)
Creates a new UIValue . |
|
AbstractUIValue(String id,
Path kind,
V backup)
Creates a new UIValue . |
|
AbstractUIValue(String id,
V backup)
Creates a new UIValue . |
Method Summary | |
---|---|
protected abstract void |
changed(V oldValue,
V newValue)
Called when the resource of this AbstractDockColor has changed |
V |
getBackup()
Gets the backup value. |
String |
getId()
Gets the identifier of this value. |
Path |
getKind()
Gets the kind of this value. |
V |
getValue()
Gets the override value. |
protected abstract U |
me()
Returns this . |
void |
set(V value)
Called when the underlying resource of this UIValue changes. |
void |
setBackup(V backup)
Sets the backup value. |
void |
setId(String id)
Changes the identifier of this value. |
void |
setKind(Path kind)
Changes the kind of this value. |
void |
setManager(UIProperties<V,U,?> manager)
Sets the manager which owns this UIValue , this will
automatically be added or removed from the current manager . |
void |
setValue(V value)
Sets the override value. |
void |
setValue(V value,
boolean forceNull)
Sets the override value. |
void |
update(UIProperties<V,U,?> manager)
Updates the value of this UIValue without actually installing this
on manager . |
V |
value()
Gets the first non- null value of the list
override , value , backup . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUIValue(String id)
UIValue
.
id
- the id of the resource for which this
should listen forpublic AbstractUIValue(String id, Path kind)
UIValue
.
id
- the id of the resource for which this
should listen forkind
- the kind of UIValue
this ispublic AbstractUIValue(String id, V backup)
UIValue
.
id
- the id of the resource for which this
should listen forbackup
- a backup resource, can be null
public AbstractUIValue(String id, Path kind, V backup)
UIValue
.
id
- the id of the resource for which this
should listen forkind
- the kind of UIValue
this is, can be null
backup
- a backup resource, can be null
Method Detail |
---|
protected abstract U me()
this
. This method can only be implemented when
the generic boundaries are met, so this methods ensures that this
is really an U
, or abstract
.
this
public void setId(String id)
id
- the new id, must not be null
public String getId()
null
public void setKind(Path kind)
UIProperties
to find out, which UIBridge
should be used to interact with
this UIValue
.
kind
- the new kind, not null
. The kind should be
a class or interfaces that is implemented by this UIValue
.public Path getKind()
setKind(Path)
.
null
public void setManager(UIProperties<V,U,?> manager)
UIValue
, this
will
automatically be added or removed from the current manager
.
manager
- the new manager, can be null
public void set(V value)
UIValue
UIValue
changes.
set
in interface UIValue<V>
value
- the new valuepublic void update(UIProperties<V,U,?> manager)
UIValue
without actually installing this
on manager
.
manager
- the manager from which to read the valuepublic V value()
null
value of the list
override
, value
, backup
.
null
protected abstract void changed(V oldValue, V newValue)
AbstractDockColor
has changed
oldValue
- the old value, can be null
newValue
- the new value, can be null
public void setValue(V value)
value
- the new override or null
public void setValue(V value, boolean forceNull)
value()
returns
null
, use forceNull
with care.
value
- the new value, can be null
forceNull
- if true
and value
is null
, then
the result of value()
is null
toopublic V getValue()
null
public void setBackup(V backup)
backup
- the backup or null
public V getBackup()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |