bibliothek.gui.dock.themes
Class StationCombinerValue
java.lang.Object
bibliothek.gui.dock.themes.StationThemeItemValue<Combiner>
bibliothek.gui.dock.themes.StationCombinerValue
- All Implemented Interfaces:
- Combiner, CombinerValue, UIValue<Combiner>
public class StationCombinerValue
- extends StationThemeItemValue<Combiner>
- implements CombinerValue, Combiner
A StationCombinerValue encloses a Combiner and uses
the combiner as delegate. If the wrapper has no delegate, it uses
the DockUI to get a combiner from the current DockTheme.
- Author:
- Benjamin Sigg
| 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.util.UIValue |
set |
KIND_STATION
public static final Path KIND_STATION
- What kind of
UIValue this is
StationCombinerValue
public StationCombinerValue(String id,
DockStation station)
- Creates a new value.
- Parameters:
id - the identifier of this value, used to read a resource from the ThemeManagerstation - the owner of this object
prepare
public CombinerTarget prepare(CombinerSource source,
Enforcement force)
- Description copied from interface:
Combiner
- Prepares information telling how two
Dockables may be combined.
- Specified by:
prepare in interface Combiner
- Parameters:
source - the Dockables which may be combined, their parent station and
other helpful information.force - how much the caller of this method would like the method not to return a
value of null. Implementations should read the force
property, where a value of 1 means that this method must success, while 0
means that this method may or may not success. In general the modules in the framework expect that a value below
0.5 results in null, while a value above 0.5f results in a non-null
value.
- Returns:
- How to combine the
Dockables, may be null to indicate that
a combination is not desired
combine
public Dockable combine(CombinerSource source,
CombinerTarget target)
- Description copied from interface:
Combiner
- Merges two
Dockables into a new Dockable. This method may
set the DockController of the created element in order to initialize
it more efficiently.
- Specified by:
combine in interface Combiner
- Parameters:
source - information about the two Dockables that are going to be merged, not null. This
object may or may not have been created by this Combiner, some sanity checks are advised before using ittarget - information that was created by Combiner.prepare(CombinerSource, Enforcement) using source, not null
- Returns:
- the combined
Dockable, not null