bibliothek.gui.dock.station.flap
Class FlapDropInfo

java.lang.Object
  extended by bibliothek.gui.dock.station.flap.FlapDropInfo

public class FlapDropInfo
extends Object

Information where to insert a Dockable into a FlapDockStation.

Author:
Benjamin Sigg

Constructor Summary
FlapDropInfo(Dockable dockable)
          Constructs a new info.
 
Method Summary
 Dockable getCombine()
          Returns the combine property.
 Dockable getDockable()
          Gets the Dockable which will be dropped or moved on the station.
 int getIndex()
          Gets the index property.
 boolean isDraw()
          Gets the draw property
 void setCombine(Dockable combine)
          Sets the combine property.
 void setDraw(boolean draw)
          Sets the draw property.
 void setIndex(int index)
          Sets the location where the Dockable will be inserted in respect to the list of buttons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlapDropInfo

public FlapDropInfo(Dockable dockable)
Constructs a new info.

Parameters:
dockable - the Dockable which will be inserted
Method Detail

getCombine

public Dockable getCombine()
Returns the combine property.

Returns:
the property
See Also:
setCombine(Dockable)

setCombine

public void setCombine(Dockable combine)
Sets the combine property. If this property is not null, then the station will combine the new Dockable with the combine.

Parameters:
combine - the Dockable with which the dragged Dockable should be combined

getDockable

public Dockable getDockable()
Gets the Dockable which will be dropped or moved on the station.

Returns:
the source

isDraw

public boolean isDraw()
Gets the draw property

Returns:
the property
See Also:
setDraw(boolean)

setDraw

public void setDraw(boolean draw)
Sets the draw property. If this property is true, the station will paint some information where the Dockable will be inserted. This information is only a help to the user.

Parameters:
draw - true if the station should paint something

getIndex

public int getIndex()
Gets the index property.

Returns:
the property
See Also:
setIndex(int)

setIndex

public void setIndex(int index)
Sets the location where the Dockable will be inserted in respect to the list of buttons. This property will be ignored if getCombine() is null.

Parameters:
index - the location