bibliothek.gui.dock.themes
Class StationSpanFactoryValue

java.lang.Object
  extended by bibliothek.gui.dock.themes.StationThemeItemValue<SpanFactory>
      extended by bibliothek.gui.dock.themes.StationSpanFactoryValue
All Implemented Interfaces:
SpanFactory, SpanFactoryValue, UIValue<SpanFactory>

public abstract class StationSpanFactoryValue
extends StationThemeItemValue<SpanFactory>
implements SpanFactoryValue, SpanFactory

A StationSpanFactoryValue offers access to a SpanFactory that is read from a ThemeManager.

Author:
Benjamin Sigg

Field Summary
static Path KIND_STATION
          What kind of UIValue this is
 
Fields inherited from interface bibliothek.gui.dock.themes.SpanFactoryValue
KIND_SPAN_FACTORY
 
Constructor Summary
StationSpanFactoryValue(String id, DockStation station)
          Creates a new value.
 
Method Summary
protected abstract  void changed()
          Called if the current SpanFactory changed.
 Span create(SpanCallback callback)
          Creates a new Span.
 void set(SpanFactory value)
          Called when the underlying resource of this UIValue changes.
 
Methods inherited from class bibliothek.gui.dock.themes.StationThemeItemValue
get, getDelegate, getStation, setController, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.themes.SpanFactoryValue
getStation
 

Field Detail

KIND_STATION

public static final Path KIND_STATION
What kind of UIValue this is

Constructor Detail

StationSpanFactoryValue

public StationSpanFactoryValue(String id,
                               DockStation station)
Creates a new value.

Parameters:
id - the identifier of this value, used to read a resource from the ThemeManager
station - the owner of this object
Method Detail

set

public void set(SpanFactory value)
Description copied from interface: UIValue
Called when the underlying resource of this UIValue changes.

Specified by:
set in interface UIValue<SpanFactory>
Overrides:
set in class StationThemeItemValue<SpanFactory>
Parameters:
value - the new value

changed

protected abstract void changed()
Called if the current SpanFactory changed.


create

public Span create(SpanCallback callback)
Description copied from interface: SpanFactory
Creates a new Span.

Specified by:
create in interface SpanFactory
Parameters:
callback - allows interaction between Span and DockStation.
Returns:
the new Span, not null